net.sf.dewdrop.sqlml
Class Sequence

java.lang.Object
  extended bynet.sf.dewdrop.sqlml.SqlmlComponent
      extended bynet.sf.dewdrop.sqlml.SchemaComponent
          extended bynet.sf.dewdrop.sqlml.Sequence

public class Sequence
extends SchemaComponent

Author:
Les Hazlewood

Field Summary
protected  int incrementBy
           
protected  int maxVal
           
protected  int startVal
           
 
Fields inherited from class net.sf.dewdrop.sqlml.SchemaComponent
description, name
 
Fields inherited from class net.sf.dewdrop.sqlml.SqlmlComponent
indentLevel, logger
 
Constructor Summary
Sequence()
           
 
Method Summary
 boolean equals(Object o)
           
 int getIncrementBy()
          A value of -1 means an incrementBy value was not specified, so don't print one out during sql generation.
 int getMaxVal()
          A value of -1 means a max value was not specified, so don't print one out during sql generation.
 int getStartVal()
          A value of -1 means a start value was not specified, so don't print one out during sql generation.
 void onWriteSql(Writer out, Configuration cfg)
           
 void setIncrementBy(int incrementBy)
           
 void setMaxVal(int maxVal)
           
 void setStartVal(int startVal)
           
 
Methods inherited from class net.sf.dewdrop.sqlml.SchemaComponent
getDescription, getName, setDescription, setName
 
Methods inherited from class net.sf.dewdrop.sqlml.SqlmlComponent
getIndentLevel, i18n, i18n, i18n, setIndentLevel, toSql, toSql, toSql, toString, writeSql, writeSql, writeSql
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

startVal

protected int startVal

maxVal

protected int maxVal

incrementBy

protected int incrementBy
Constructor Detail

Sequence

public Sequence()
Method Detail

getStartVal

public int getStartVal()
A value of -1 means a start value was not specified, so don't print one out during sql generation.


setStartVal

public void setStartVal(int startVal)

getMaxVal

public int getMaxVal()
A value of -1 means a max value was not specified, so don't print one out during sql generation.


setMaxVal

public void setMaxVal(int maxVal)

getIncrementBy

public int getIncrementBy()
A value of -1 means an incrementBy value was not specified, so don't print one out during sql generation.


setIncrementBy

public void setIncrementBy(int incrementBy)

equals

public boolean equals(Object o)
Overrides:
equals in class SchemaComponent

onWriteSql

public void onWriteSql(Writer out,
                       Configuration cfg)
Specified by:
onWriteSql in class SqlmlComponent
See Also:
SqlmlComponent.writeSql(java.io.Writer)