Table has a list of Column instances describing the table schema.
A Column instance is not thread-safe (see Database for more thread-safety details).
| Modifier and Type | Field and Description |
|---|---|
| public static final Object | AUTO_NUMBER
Meaningless placeholder object for inserting values in an autonumber column. |
| public static final Object | KEEP_VALUE
Meaningless placeholder object for updating rows which indicates that a given column should keep its existing value. |
| Modifier and Type | Method and Description |
|---|---|
| public int | getColumnIndex()
Returns the position of this column within its table, i.e. the index at which this column's value is stored in
the |
| public ColumnValidator | |
| public ComplexColumnInfo | |
| public Database | Returns: the database to which this column's table belongsReturns the database to which this column's table belongs. |
| public short | Returns: the length of this column in bytes, as stored in the databaseReturns the length of this column in bytes, as stored in the database. |
| public short | Returns: the length of this column in "units" appropriate for its type (e.g. characters for TEXT columns), which may differ fromgetLength() for columns whose storage unit is wider than one byteReturns the length of this column in "units" appropriate for its type (e.g. characters for TEXT columns), which
may differ from |
| public String | |
| public byte | Returns: the numeric precision of this column (only meaningful for DataTypes NUMERIC and MONEY)Returns the numeric precision of this column (only meaningful for DataTypes NUMERIC and MONEY). |
| public PropertyMap | |
| public Object | getRowValue(Object[]
a row value array, indexed by rowArray)getColumnIndex()Returns this column's value at the position given by |
| public Object | getRowValue(Map<String, ?>
a row value map, keyed by column name rowMap)Returns this column's value, keyed by |
| public byte | Returns: the numeric scale of this column (only meaningful for DataTypes NUMERIC and MONEY)Returns the numeric scale of this column (only meaningful for DataTypes NUMERIC and MONEY). |
| public int | |
| public Table | Returns: the table to which this column belongsReturns the table to which this column belongs. |
| public DataType | |
| public Column | getVersionHistoryColumn()
Returns the column which tracks the version history for an "append only" column. |
| public boolean | isAppendOnly()
Whether or not this column is "append only" (its history is tracked by a separate version history column). |
| public boolean | Returns: true if this is an autonumber column, whose values are assigned automatically by the databaseReturns |
| public boolean | |
| public boolean | Returns: true if this text column uses compressed unicode storage, false otherwise (not
applicable to non-text columns)Returns |
| public boolean | isHyperlink()
Returns whether or not this is a hyperlink column (only possible for columns of type MEMO). |
| public boolean | Returns: true if this column's values are variable-length (e.g. TEXT, MEMO, BINARY), false if
fixed-length (e.g. LONG, DOUBLE)Returns |
| public void | |
| public Object | Returns: the previous value at that positiona row value array, indexed by rowArray, Object getColumnIndex()the new value for this column value)Sets this column's value at the position given by |
| public Object |
| AUTO_NUMBER | back to summary |
|---|---|
| public static final Object AUTO_NUMBER Meaningless placeholder object for inserting values in an autonumber column. it is not required that this value be used (any passed in value is ignored), but using this placeholder may make code more obvious. | |
| KEEP_VALUE | back to summary |
|---|---|
| public static final Object KEEP_VALUE Meaningless placeholder object for updating rows which indicates that a given column should keep its existing value. | |
| getColumnIndex | back to summary |
|---|---|
| public int getColumnIndex() Returns the position of this column within its table, i.e. the index at which this column's value is stored in
the | |
| getColumnValidator | back to summary |
|---|---|
| public ColumnValidator getColumnValidator() Gets currently configured ColumnValidator (always non- | |
| getComplexInfo | back to summary |
|---|---|
| public ComplexColumnInfo Returns extended functionality for "complex" columns. | |
| getDatabase | back to summary |
|---|---|
| public Database getDatabase() Returns the database to which this column's table belongs.
| |
| getLength | back to summary |
|---|---|
| public short getLength() Returns the length of this column in bytes, as stored in the database.
| |
| getLengthInUnits | back to summary |
|---|---|
| public short getLengthInUnits() Returns the length of this column in "units" appropriate for its type (e.g. characters for TEXT columns), which
may differ from
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of this column.
| |
| getPrecision | back to summary |
|---|---|
| public byte getPrecision() Returns the numeric precision of this column (only meaningful for DataTypes NUMERIC and MONEY).
| |
| getProperties | back to summary |
|---|---|
| public PropertyMap getProperties() throws IOException Returns the properties for this column.
| |
| getRowValue | back to summary |
|---|---|
| public Object getRowValue(Object[] rowArray) Returns this column's value at the position given by
| |
| getRowValue | back to summary |
|---|---|
| public Object getRowValue(Map<String, ?> rowMap) Returns this column's value, keyed by | |
| getScale | back to summary |
|---|---|
| public byte getScale() Returns the numeric scale of this column (only meaningful for DataTypes NUMERIC and MONEY).
| |
| getSQLType | back to summary |
|---|---|
| public int getSQLType() throws IOException Returns the
| |
| getTable | back to summary |
|---|---|
| public Table getTable() Returns the table to which this column belongs.
| |
| getType | back to summary |
|---|---|
| public DataType getType() Returns the data type of this column.
| |
| getVersionHistoryColumn | back to summary |
|---|---|
| public Column getVersionHistoryColumn() Returns the column which tracks the version history for an "append only" column. | |
| isAppendOnly | back to summary |
|---|---|
| public boolean isAppendOnly() Whether or not this column is "append only" (its history is tracked by a separate version history column). | |
| isAutoNumber | back to summary |
|---|---|
| public boolean isAutoNumber() Returns
| |
| isCalculated | back to summary |
|---|---|
| public boolean isCalculated() Returns whether or not this is a calculated column. Note that jackess won't interpret the calculation expression (but the field can be written directly). | |
| isCompressedUnicode | back to summary |
|---|---|
| public boolean isCompressedUnicode() Returns
| |
| isHyperlink | back to summary |
|---|---|
| public boolean isHyperlink() Returns whether or not this is a hyperlink column (only possible for columns of type MEMO). | |
| isVariableLength | back to summary |
|---|---|
| public boolean isVariableLength() Returns
| |
| setColumnValidator | back to summary |
|---|---|
| public void setColumnValidator(ColumnValidator newValidator) Sets a new ColumnValidator. If
| |
| setRowValue | back to summary |
|---|---|
| public Object setRowValue(Object[] rowArray, Object value) Sets this column's value at the position given by
| |
| setRowValue | back to summary |
|---|---|
| public Object setRowValue(Map<String, Object> rowMap, Object value) Sets this column's value, keyed by | |