| |
|
| java.lang.Object com.triactive.jdo.store.Column
Column | public class Column (Code) | | A column in a database table.
Column objects are used primarily for generating the DDL for a CREATE TABLE
statement or for validating against an existing column in the database.
All columns are deemed to be serving as backing for a particular Java type.
The Java type and other column attributes are used, usually by a
ColumnMapping, to help determine a suitable corresponding SQL type.
The
Column.setTypeInfo method must be called at some point to establish the
column's SQL type.
author: Mike Martin version: $Revision: 1.6 $ |
EXACT_PRECISION | final protected static int EXACT_PRECISION(Code) | | |
FIXED_LENGTH | final public static int FIXED_LENGTH(Code) | | |
LENGTH_NOT_SET | final public static int LENGTH_NOT_SET(Code) | | |
LENGTH_TYPE_MASK | final protected static int LENGTH_TYPE_MASK(Code) | | |
MAXIMUM_LENGTH | final public static int MAXIMUM_LENGTH(Code) | | |
NULLABLE | final protected static int NULLABLE(Code) | | |
PRIMARY_KEY_PART | final protected static int PRIMARY_KEY_PART(Code) | | |
UNIQUE | final protected static int UNIQUE(Code) | | |
UNLIMITED_LENGTH | final public static int UNLIMITED_LENGTH(Code) | | |
flags | protected int flags(Code) | | |
precision | protected int precision(Code) | | |
scale | protected int scale(Code) | | |
getLengthType | public int getLengthType()(Code) | | |
getPrecision | final public int getPrecision()(Code) | | |
getSQLDefinition | public String getSQLDefinition()(Code) | | Returns a SQL DDL string defining this column as would be included in a
CREATE TABLE statement.
The SQL DDL defining this column. |
getScale | final public int getScale()(Code) | | |
hashCode | public int hashCode()(Code) | | |
isExactPrecision | final public boolean isExactPrecision()(Code) | | |
isNullable | final public boolean isNullable()(Code) | | |
isPrimaryKeyPart | final public boolean isPrimaryKeyPart()(Code) | | |
isUnique | final public boolean isUnique()(Code) | | |
setExactPrecision | final public Column setExactPrecision(int precision)(Code) | | |
setFixedLength | final public Column setFixedLength(int length)(Code) | | |
setMaximumLength | final public Column setMaximumLength(int length)(Code) | | |
setMinimumPrecision | final public Column setMinimumPrecision(int precision)(Code) | | |
setPrimaryKeyPart | final public Column setPrimaryKeyPart()(Code) | | |
setUnlimitedLength | final public Column setUnlimitedLength()(Code) | | |
validate | public void validate(ColumnInfo ci)(Code) | | Asserts that an existing database column matches, or is effectively
compatible with, the column described by this Column object.
Parameters: ci - Metadata on the existing column obtained from JDBC. exception: SchemaValidationException - If the existing column is not compatible with this Column object. |
|
|
|