Method Summary |
|
public void | copy(Column from) Copy information from the given column to this one. |
public boolean | equalsColumn(Column col) Tests compatibility. |
public String | getComment() |
public int | getDecimalDigits() Return the number of decimal digits for the column, if applicable. |
public Object | getDefault() Return the default value set for this column, if any. |
public String | getDefaultString() Return the default value set for the column, if any. |
public String | getDescription() Useful for debugging. |
public boolean | getFlag(int flag) Flags are used for bookkeeping information. |
public String | getFullName() Return the column's full name, in the form <table>.<name>. |
public int | getIndex() Return the column's 0-based index in the owning table. |
public int | getJavaType() The Java type the data in this column is treated as, from
JavaTypes or
JavaSQLTypes . |
public String | getName() Return the column's name. |
public String | getSchemaName() The column's schema name. |
public int | getSize() Return the column's size. |
public Table | getTable() Return the table for the column. |
public String | getTableName() The column's table name. |
public String | getTarget() The name of the column this column joins to, if any. |
public String | getTargetField() The name of the field this column joins to, if any. |
public int | getType() Return the column's SQL type. |
public String | getTypeName() The database-specific SQL type of this column. |
public VersionStrategy | getVersionStrategy() |
public boolean | hasComment() |
public boolean | isAutoAssigned() Whether this column is auto-assigned a value on insert. |
public boolean | isCompatible(int type, String typeName, int size, int decimals) Return true if this column is compatible with the given JDBC type
from
Types and size. |
public boolean | isLob() Whether this column is a LOB. |
public boolean | isNotNull() Return true if this is a NOT NULL column. |
public boolean | isNotNullExplicit() Whether the not-null property has been set. |
public boolean | isPrimaryKey() Return true if this column belongs to the table's primary key. |
public boolean | isRelationId() Whether this column stores some form of serialized identity value for
a related record. |
public boolean | isXML() Whether this column is an XML type. |
void | remove() Called when the column is removed from its table. |
public void | resetTableName(String name) |
public void | setAutoAssigned(boolean autoAssign) Whether this column is auto-incrementing. |
public void | setComment(String comment) |
public void | setDecimalDigits(int digits) Set the number of decimal digits for the column. |
public void | setDefault(Object def) Set the default value for the column. |
public void | setDefaultString(String def) Set the default value for the column. |
public void | setFlag(int flag, boolean on) Flags are used for bookkeeping information. |
void | setIndex(int index) Set the column's 0-based index in the owning table. |
public void | setJavaType(int type) The Java type the data in this column is treated as, from
JavaTypes or
JavaSQLTypes . |
public void | setName(String name) Set the column's name. |
public void | setNotNull(boolean notNull) Set whether this is a NOT NULL column. |
void | setPrimaryKey(boolean pk) Set whether this column belongs to the table's primary key. |
public void | setRelationId(boolean rel) Whether this column stores some form of serialized identity value for
a related record. |
public void | setSchemaName(String name) The column's schema name. |
public void | setSize(int size) Set the column's size. |
public void | setTableName(String name) The column's table name. |
public void | setTarget(String target) The name of the column this column joins to, if any. |
public void | setTargetField(String target) The name of the field this column joins to, if any. |
public void | setType(int sqlType) Set the column's SQL type. |
public void | setTypeName(String typeName) The database-specific SQL type of this column. |
public void | setVersionStrategy(VersionStrategy strategy) |
public String | toString() Returns the column name. |