|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.axiondb.Column
public class 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 DataType in 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 |
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 Column s are equal if they have the same name. |
Map |
getConfiguration()
|
DataType |
getDataType()
Get the DataType of 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
DataType
in this column's configuration
public static final String DEFAULT_VALUE_CONFIG_KEY
default value
in 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 null
type
- the DataType
of 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 null
type
- the DataType
of this column, which MUST NOT be
null
config
- name-value pairs that configure this columndefaultValue
- the default value
for this column, which may
be null
NullPointerException
- if either name or type is null
Method Detail |
---|
public boolean equals(Object that)
Column
s are equal if they have the same name.
equals
in class Object
public Map getConfiguration()
public DataType getDataType()
DataType
of this column.
public Selectable getDefault()
public String getName()
public int getScale()
public int getSize()
public String getSqlType()
public boolean hasDefault()
public int hashCode()
hashCode
in class Object
public void setScale(Integer size)
public void setSize(Integer size)
public void setSqlType(String type)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |