|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Column
Access database column definition. A 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).
| Field Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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)
|
| Field Detail |
|---|
static final Object AUTO_NUMBER
static final Object KEEP_VALUE
| Method Detail |
|---|
Table getTable()
Database getDatabase()
String getName()
boolean isVariableLength()
boolean isAutoNumber()
int getColumnIndex()
DataType getType()
int getSQLType()
throws SQLException
SQLExceptionboolean isCompressedUnicode()
byte getPrecision()
byte getScale()
short getLength()
short getLengthInUnits()
boolean isAppendOnly()
boolean isHyperlink()
boolean isCalculated()
ComplexColumnInfo<? extends ComplexValue> getComplexInfo()
PropertyMap getProperties()
throws IOException
IOExceptionColumn 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 column
Object setRowValue(Object[] rowArray,
Object value)
Object setRowValue(Map<String,Object> rowMap,
Object value)
Object getRowValue(Object[] rowArray)
Object getRowValue(Map<String,?> rowMap)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||