|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.axiondb.Column
Describes a column within a Table.
| Field Summary | |
static String |
COLUMN_PRECISION_CONFIG_KEY
Key for setting and retrieving the Precision in this column's configuration |
static String |
COLUMN_SCALE_CONFIG_KEY
Key for setting and retrieving the Scale in this column's configuration |
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 valuein this
column's configuration |
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 |
getName()
Get the name of this column. |
int |
getScale()
|
int |
getSize()
|
String |
getSqlType()
|
boolean |
hasDefault()
|
int |
hashCode()
|
void |
setScale(Integer size)
|
void |
setSize(Integer size)
|
void |
setSqlType(String type)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String COLUMN_PRECISION_CONFIG_KEY
public static final String COLUMN_SCALE_CONFIG_KEY
public static final String COLUMN_SQL_TYPE_CONFIG_KEY
public static final String DATA_TYPE_CONFIG_KEY
DataTypein this column's configuration
public static final String DEFAULT_VALUE_CONFIG_KEY
default valuein this
column's configuration
public static final String NAME_CONFIG_KEY
| Constructor Detail |
public Column(String name,
DataType type)
throws NullPointerException
name - the name of this column, which MUST NOT be nulltype - the DataTypeof this column, which MUST NOT be
null
NullPointerException - if either parameter is null
public Column(String name,
DataType type,
Selectable defaultValue)
throws NullPointerException
name - the name of this column, which MUST NOT be nulltype - the DataTypeof this column, which MUST NOT be
nulldefaultValue - the default valuefor this column, which may
be null
NullPointerException - if either name or type is null| Method Detail |
public boolean equals(Object that)
Columns are equal if they have the same name.
public Map getConfiguration()
public DataType getDataType()
DataTypeof this column.
public Selectable getDefault()
public String getName()
public int getScale()
public int getSize()
public String getSqlType()
public boolean hasDefault()
public int hashCode()
public void setScale(Integer size)
public void setSize(Integer size)
public void setSqlType(String type)
public String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||