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, toStringequals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName, setCelestaDocasc, desc, getCelestaDoc, getName, orderingpublic static final String VARCHAR
public static final String TEXT
public StringColumn(TableElement table, String name) throws ParseException
ParseExceptionpublic static String unquoteString(String lexvalue) throws ParseException
lexvalue - quoted stringParseException - incorrect formatpublic static String quoteString(String lexvalue)
lexvalue - string for quotingpublic String getDefaultValue()
ColumngetDefaultValue 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()
ColumnMetapublic String getCelestaType()
ColumnMetapublic Class<?> getJavaClass()
ColumnMetapublic String getCelestaDefault()
ColumngetCelestaDefault in class Column<String>Copyright © 2020 CURS. All rights reserved.