org.axiondb
public class Column extends Object implements Serializable
Version: $Revision: 1.34 $ $Date: 2005/12/20 18:32:40 $
Field Summary | |
---|---|
static String | COLUMN_SQL_TYPE_CONFIG_KEY
Key for setting and retrieving the sqlType in this column's configuration |
static String | DATA_TYPE_CONFIG_KEY
Key for setting and retrieving the DataTypein this column's configuration |
static String | DEFAULT_VALUE_CONFIG_KEY
Key for setting and retrieving the default value in this
column's configuration |
static String | GENERATED_ALWAYS |
static String | GENERATED_BY_DEFAULT |
static String | GENERATED_COLUMN_TYPE
Key for setting and retrieving generated column expression |
static String | IDENTITY_GENERATION_TYPE
Key for setting and retrieving the Identity column generation type |
static String | NAME_CONFIG_KEY
Key for setting and retrieving the name in this column's configuration |
Constructor Summary | |
---|---|
Column(String name, DataType type)
Create column with the given name and type .
| |
Column(String name, DataType type, Selectable defaultValue)
Create column with the given name and type .
|
Method Summary | |
---|---|
boolean | equals(Object that) Two Columns are equal if they have the same name. |
Map | getConfiguration() |
DataType | getDataType()
Get the DataTypeof this column. |
Selectable | getDefault() |
String | getGeneratedColType() |
String | getIdentityType() |
String | getName()
Get the name of this column. |
int | getScale() |
int | getSize() |
String | getSqlType() |
boolean | hasDefault() |
int | hashCode() |
boolean | isDerivedColumn() |
boolean | isGeneratedAlways() |
boolean | isGeneratedByDefault() |
boolean | isIdentityColumn() |
void | setGeneratedColType(String type) |
void | setIdentityType(String type) |
void | setSqlType(String type) |
String | toString() |
default value
in this
column's configurationParameters: name the name of this column, which MUST NOT be null
type the DataTypeof this column, which MUST NOT be
null
Throws: NullPointerException if either parameter is null
Parameters: name the name of this column, which MUST NOT be null
type the DataTypeof this column, which MUST NOT be
null
config name-value pairs that configure this column defaultValue the default value
for this column, which may
be null
Throws: NullPointerException if either name or type is null