Package ru.curs.celesta.score
Class DateTimeColumn
- All Implemented Interfaces:
ColumnMeta<Date>
Date column (DATETIME).
-
Nested Class Summary
Nested classes/interfaces inherited from interface ru.curs.celesta.score.ColumnMeta
ColumnMeta.Ordering -
Field Summary
FieldsFields inherited from class ru.curs.celesta.score.NamedElement
MAX_IDENTIFIER_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDEFAULT value of the field in CelestaSQL language.Celesta data type that corresponds to the field.Returns default value.Class<?> Returns corresponding Java data type.booleanWhether the construction GETDATE() is used as a default value.Name of jdbcGetter that should be used for getting column data.static DateparseISODate(String lexvalue) Parses the date in YYYYMMDD format and translates it to Java object.Methods inherited from class ru.curs.celesta.score.Column
delete, getOptions, getParentTable, isNullable, setNullableAndDefault, toStringMethods inherited from class ru.curs.celesta.score.NamedElement
equals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName, setCelestaDocMethods inherited from interface ru.curs.celesta.score.ColumnMeta
asc, desc, getCelestaDoc, getName, ordering
-
Field Details
-
CELESTA_TYPE
Celesta type of the column data.- See Also:
-
-
Constructor Details
-
DateTimeColumn
- Throws:
ParseException
-
-
Method Details
-
parseISODate
Parses the date in YYYYMMDD format and translates it to Java object.- Parameters:
lexvalue- text value.- Returns:
- Throws:
ParseException- in case if the text value doesn't correspond to YYYYMMDD pattern.
-
getDefaultValue
Description copied from class:ColumnReturns default value.- Specified by:
getDefaultValuein classColumn<Date>
-
isGetdate
public boolean isGetdate()Whether the construction GETDATE() is used as a default value.- Returns:
-
jdbcGetterName
Description copied from interface:ColumnMetaName of jdbcGetter that should be used for getting column data.- Returns:
-
getCelestaType
Description copied from interface:ColumnMetaCelesta data type that corresponds to the field.- Returns:
-
getJavaClass
Description copied from interface:ColumnMetaReturns corresponding Java data type.- Returns:
-
getCelestaDefault
Description copied from class:ColumnDEFAULT value of the field in CelestaSQL language.- Specified by:
getCelestaDefaultin classColumn<Date>
-