V
- Java class of column valuepublic abstract class Column<V> extends NamedElement implements ColumnMeta<V>
ColumnMeta.Ordering
MAX_IDENTIFIER_LENGTH
Modifier and Type | Method and Description |
---|---|
void |
delete()
Deletes the column.
|
abstract String |
getCelestaDefault()
DEFAULT value of the field in CelestaSQL language.
|
abstract V |
getDefaultValue()
Returns default value.
|
List<String> |
getOptions()
Returns options (the value of
option property) for current field. |
TableElement |
getParentTable()
Returns table that current column belongs to.
|
boolean |
isNullable()
Returns the value of Nullable property.
|
void |
setNullableAndDefault(boolean nullable,
String defaultValue)
Sets property Nullable and default value.
|
String |
toString() |
equals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName, setCelestaDoc
asc, desc, getCelestaDoc, getCelestaType, getJavaClass, getName, jdbcGetterName, ordering
public List<String> getOptions()
option
property) for current field.
It is applicable only for text and Integer fields.CelestaException
- in case if options are provided incorrectly.public final TableElement getParentTable()
public final void setNullableAndDefault(boolean nullable, String defaultValue) throws ParseException
nullable
- property NullabledefaultValue
- default valueParseException
- in case if DEFAULT value has an incorrect format.public final boolean isNullable()
isNullable
in interface ColumnMeta<V>
public final void delete() throws ParseException
ParseException
- if a part of the primary key, or a foreign key, or an index
is being deleted.public abstract V getDefaultValue()
public abstract String getCelestaDefault()
Copyright © 2022 CURS. All rights reserved.