Package ru.curs.celesta.score
Class IntegerColumn
- java.lang.Object
-
- ru.curs.celesta.score.NamedElement
-
- ru.curs.celesta.score.Column<Integer>
-
- ru.curs.celesta.score.IntegerColumn
-
- All Implemented Interfaces:
ColumnMeta<Integer>
public final class IntegerColumn extends Column<Integer>
Integer column.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ru.curs.celesta.score.ColumnMeta
ColumnMeta.Ordering
-
-
Field Summary
Fields Modifier and Type Field Description static String
CELESTA_TYPE
Celesta type of the column data.-
Fields inherited from class ru.curs.celesta.score.NamedElement
MAX_IDENTIFIER_LENGTH
-
-
Constructor Summary
Constructors Constructor Description IntegerColumn(TableElement table, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCelestaDefault()
DEFAULT value of the field in CelestaSQL language.String
getCelestaType()
Celesta data type that corresponds to the field.Integer
getDefaultValue()
Returns default value.Class<?>
getJavaClass()
Returns corresponding Java data type.SequenceElement
getSequence()
Returns sequence of the column.String
jdbcGetterName()
Name of jdbcGetter that should be used for getting column data.void
setCelestaDoc(String celestaDoc)
Sets value of document string.-
Methods inherited from class ru.curs.celesta.score.Column
delete, getOptions, getParentTable, isNullable, setNullableAndDefault, toString
-
Methods inherited from class ru.curs.celesta.score.NamedElement
equals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName
-
Methods inherited from interface ru.curs.celesta.score.ColumnMeta
asc, desc, getCelestaDoc, getName, ordering
-
-
-
-
Field Detail
-
CELESTA_TYPE
public static final String CELESTA_TYPE
Celesta type of the column data.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IntegerColumn
public IntegerColumn(TableElement table, String name) throws ParseException
- Throws:
ParseException
-
-
Method Detail
-
getDefaultValue
public Integer getDefaultValue()
Description copied from class:Column
Returns default value.- Specified by:
getDefaultValue
in classColumn<Integer>
-
getSequence
public SequenceElement getSequence()
Returns sequence of the column.- Returns:
-
jdbcGetterName
public String jdbcGetterName()
Description copied from interface:ColumnMeta
Name of jdbcGetter that should be used for getting column data.- Returns:
-
getCelestaType
public String getCelestaType()
Description copied from interface:ColumnMeta
Celesta data type that corresponds to the field.- Returns:
-
getJavaClass
public Class<?> getJavaClass()
Description copied from interface:ColumnMeta
Returns corresponding Java data type.- Returns:
-
getCelestaDefault
public String getCelestaDefault()
Description copied from class:Column
DEFAULT value of the field in CelestaSQL language.- Specified by:
getCelestaDefault
in classColumn<Integer>
-
setCelestaDoc
public void setCelestaDoc(String celestaDoc) throws ParseException
Description copied from class:NamedElement
Sets value of document string.- Overrides:
setCelestaDoc
in classNamedElement
- Parameters:
celestaDoc
- new value- Throws:
ParseException
- incorrect CelestaDoc
-
-