public final class DateTimeColumn extends Column<Date>
ColumnMeta.Ordering| Modifier and Type | Field and Description |
|---|---|
static String |
CELESTA_TYPE
Celesta type of the column data.
|
MAX_IDENTIFIER_LENGTH| Constructor and Description |
|---|
DateTimeColumn(TableElement table,
String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCelestaDefault()
DEFAULT value of the field in CelestaSQL language.
|
String |
getCelestaType()
Celesta data type that corresponds to the field.
|
Date |
getDefaultValue()
Returns default value.
|
Class<?> |
getJavaClass()
Returns corresponding Java data type.
|
boolean |
isGetdate()
Whether the construction GETDATE() is used as a default value.
|
String |
jdbcGetterName()
Name of jdbcGetter that should be used for getting column data.
|
static Date |
parseISODate(String lexvalue)
Parses the date in YYYYMMDD format and translates it to Java object.
|
delete, getOptions, getParentTable, isNullable, setNullableAndDefault, toStringequals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName, setCelestaDocasc, desc, getCelestaDoc, getName, orderingpublic static final String CELESTA_TYPE
public DateTimeColumn(TableElement table, String name) throws ParseException
ParseExceptionpublic static Date parseISODate(String lexvalue) throws ParseException
lexvalue - text value.ParseException - in case if the text value doesn't correspond to
YYYYMMDD pattern.public Date getDefaultValue()
ColumngetDefaultValue in class Column<Date>public boolean isGetdate()
public String jdbcGetterName()
ColumnMetapublic String getCelestaType()
ColumnMetapublic Class<?> getJavaClass()
ColumnMetapublic String getCelestaDefault()
ColumngetCelestaDefault in class Column<Date>Copyright © 2023 CURS. All rights reserved.