|
||||||||||
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_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 |
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 Column s are equal if they have the same name. |
Map |
getConfiguration()
|
DataType |
getDataType()
Get the DataType of 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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
public static final String IDENTITY_GENERATION_TYPE
public static final String GENERATED_ALWAYS
public static final String GENERATED_BY_DEFAULT
public static final String GENERATED_COLUMN_TYPE
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 final Map getConfiguration()
public final DataType getDataType()
DataType
of this column.
public final Selectable getDefault()
public final String getName()
public int getScale()
public int getSize()
public String getSqlType()
public boolean hasDefault()
public boolean isIdentityColumn()
public boolean isGeneratedAlways()
public boolean isGeneratedByDefault()
public boolean isDerivedColumn()
public void setGeneratedColType(String type)
public String getGeneratedColType()
public final String getIdentityType()
public void setIdentityType(String type)
public int hashCode()
hashCode
in class Object
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 |