butler.ext.sequence
Class SequenceColumn

java.lang.Object
  extended by butler.sql.metadata.Column
      extended by butler.ext.sequence.SequenceColumn

public class SequenceColumn
extends Column

Column with a auto-generated sequence value.

Author:
Fredrik Bertilsson

Constructor Summary
SequenceColumn(Column col)
           
SequenceColumn(Column col, SequenceGenerator generator)
           
 
Method Summary
 java.lang.String getCreateSQL()
           
 SequenceGenerator getGenerator()
           
 boolean isNullable()
          Returns if the column is nullable or not.
 void setTable(Table tab)
           
 
Methods inherited from class butler.sql.metadata.Column
copy, createDatatype, eq, equals, equals, ge, get, getCaption, getColumn, getColumnSize, getDatatype, getDecimalDigits, getDefaultValue, getHelp, getLocalizableCaption, getName, getSQL, getSQL, getSQL, getTable, getTableName, getType, gt, hashCode, isEditable, isInPrimaryKey, isPhysical, le, like, lt, ne, set, setCaption, setDatatype, setDefaultValue, setEditable, setInPrimaryKey, setNullable, toString, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SequenceColumn

public SequenceColumn(Column col,
                      SequenceGenerator generator)
               throws java.lang.Exception
Throws:
java.lang.Exception

SequenceColumn

public SequenceColumn(Column col)
               throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setTable

public void setTable(Table tab)
              throws java.lang.Exception
Overrides:
setTable in class Column
Throws:
java.lang.Exception

getGenerator

public SequenceGenerator getGenerator()

getCreateSQL

public java.lang.String getCreateSQL()
                              throws java.lang.Exception
Overrides:
getCreateSQL in class Column
Throws:
java.lang.Exception

isNullable

public boolean isNullable()
Description copied from class: Column
Returns if the column is nullable or not.

Overrides:
isNullable in class Column