public final class StringColumn extends Column<String>
ColumnMeta.Ordering
Modifier and Type | Field and Description |
---|---|
static String |
TEXT
Celesta type of the column data for long string.
|
static String |
VARCHAR
Celesta type of the column data for short string.
|
MAX_IDENTIFIER_LENGTH
Constructor and Description |
---|
StringColumn(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.
|
String |
getDefaultValue()
Returns default value.
|
Class<?> |
getJavaClass()
Returns corresponding Java data type.
|
int |
getLength()
Maximal length of the text field.
|
boolean |
isMax()
Indicates that on the field definition MAX parameter was provided
instead of the length.
|
String |
jdbcGetterName()
Name of jdbcGetter that should be used for getting column data.
|
static String |
quoteString(String lexvalue)
Quotes a string.
|
void |
setLength(String length)
Sets length of the text field.
|
static String |
unquoteString(String lexvalue)
Unquotes a string that is quoted.
|
delete, getOptions, getParentTable, isNullable, setNullableAndDefault, toString
equals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName, setCelestaDoc
asc, desc, getCelestaDoc, getName, ordering
public static final String VARCHAR
public static final String TEXT
public StringColumn(TableElement table, String name) throws ParseException
ParseException
public static String unquoteString(String lexvalue) throws ParseException
lexvalue
- quoted stringParseException
- incorrect formatpublic static String quoteString(String lexvalue)
lexvalue
- string for quotingpublic String getDefaultValue()
Column
getDefaultValue
in class Column<String>
public int getLength()
isMax()==true
.public boolean isMax()
public void setLength(String length) throws ParseException
length
- new lengthParseException
- if zero or negative length is specified.public String jdbcGetterName()
ColumnMeta
public String getCelestaType()
ColumnMeta
public Class<?> getJavaClass()
ColumnMeta
public String getCelestaDefault()
Column
getCelestaDefault
in class Column<String>
Copyright © 2022 CURS. All rights reserved.