public interface Column
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 |
---|---|
static Object |
AUTO_NUMBER
Meaningless placeholder object for inserting values in an autonumber
column.
|
static 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 |
---|---|
int |
getColumnIndex() |
ColumnValidator |
getColumnValidator()
Gets currently configured ColumnValidator (always non-
null ). |
ComplexColumnInfo<? extends ComplexValue> |
getComplexInfo()
Returns extended functionality for "complex" columns.
|
Database |
getDatabase() |
short |
getLength() |
short |
getLengthInUnits() |
String |
getName() |
byte |
getPrecision() |
PropertyMap |
getProperties() |
Object |
getRowValue(Map<String,?> rowMap) |
Object |
getRowValue(Object[] rowArray) |
byte |
getScale() |
int |
getSQLType() |
Table |
getTable() |
DataType |
getType() |
Column |
getVersionHistoryColumn()
Returns the column which tracks the version history for an "append only"
column.
|
boolean |
isAppendOnly()
Whether or not this column is "append only" (its history is tracked by a
separate version history column).
|
boolean |
isAutoNumber() |
boolean |
isCalculated()
Returns whether or not this is a calculated column.
|
boolean |
isCompressedUnicode() |
boolean |
isHyperlink()
Returns whether or not this is a hyperlink column (only possible for
columns of type MEMO).
|
boolean |
isVariableLength() |
void |
setColumnValidator(ColumnValidator newValidator)
Sets a new ColumnValidator.
|
Object |
setRowValue(Map<String,Object> rowMap,
Object value) |
Object |
setRowValue(Object[] rowArray,
Object value) |
static final Object AUTO_NUMBER
static final Object KEEP_VALUE
Table getTable()
Database getDatabase()
String getName()
boolean isVariableLength()
boolean isAutoNumber()
int getColumnIndex()
DataType getType()
int getSQLType() throws IOException
IOException
boolean isCompressedUnicode()
byte getPrecision()
byte getScale()
short getLength()
short getLengthInUnits()
boolean isAppendOnly()
boolean isHyperlink()
boolean isCalculated()
ComplexColumnInfo<? extends ComplexValue> getComplexInfo()
PropertyMap getProperties() throws IOException
IOException
Column getVersionHistoryColumn()
ColumnValidator getColumnValidator()
null
).void setColumnValidator(ColumnValidator newValidator)
null
, resets to the value
returned from the Database's ColumnValidatorFactory (if the factory
returns null
, then the default is used). Autonumber columns
cannot have a validator instance other than the default.IllegalArgumentException
- if an attempt is made to set a
non-null
ColumnValidator instance on an autonumber columnCopyright © 2005–2024 OpenHMS. All rights reserved.