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, toString
equals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName, setCelestaDoc
asc, desc, getCelestaDoc, getName, ordering
public static final int MAX_PRECISION
public static final String CELESTA_TYPE
public DecimalColumn(TableElement table, String name, int precision, int scale) throws ParseException
ParseException
public BigDecimal getDefaultValue()
Column
getDefaultValue
in class Column<BigDecimal>
public String getCelestaDefault()
Column
getCelestaDefault
in class Column<BigDecimal>
public String jdbcGetterName()
ColumnMeta
public String getCelestaType()
ColumnMeta
public Class<?> getJavaClass()
ColumnMeta
public int getPrecision()
public void setPrecision(int precision)
precision
- precisionpublic int getScale()
public void setScale(int scale)
scale
- scaleCopyright © 2022 CURS. All rights reserved.