public final class DecimalColumn extends Column<BigDecimal>
ColumnMeta.Ordering| Modifier and Type | Field and Description |
|---|---|
static String |
CELESTA_TYPE
Celesta type of the column data.
|
static int |
MAX_PRECISION |
MAX_IDENTIFIER_LENGTH| Constructor and Description |
|---|
DecimalColumn(TableElement table,
String name,
int precision,
int scale) |
| 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.
|
BigDecimal |
getDefaultValue()
Returns default value.
|
Class<?> |
getJavaClass()
Returns corresponding Java data type.
|
int |
getPrecision()
Returns precision.
|
int |
getScale()
Returns scale.
|
String |
jdbcGetterName()
Name of jdbcGetter that should be used for getting column data.
|
void |
setPrecision(int precision)
Sets precision.
|
void |
setScale(int scale)
Sets scale.
|
delete, getOptions, getParentTable, isNullable, setNullableAndDefault, toStringequals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName, setCelestaDocasc, desc, getCelestaDoc, getName, orderingpublic static final int MAX_PRECISION
public static final String CELESTA_TYPE
public DecimalColumn(TableElement table, String name, int precision, int scale) throws ParseException
ParseExceptionpublic BigDecimal getDefaultValue()
ColumngetDefaultValue in class Column<BigDecimal>public String getCelestaDefault()
ColumngetCelestaDefault in class Column<BigDecimal>public String jdbcGetterName()
ColumnMetapublic String getCelestaType()
ColumnMetapublic Class<?> getJavaClass()
ColumnMetapublic int getPrecision()
public void setPrecision(int precision)
precision - precisionpublic int getScale()
public void setScale(int scale)
scale - scaleCopyright © 2020 CURS. All rights reserved.