Package ru.curs.celesta.score
Class StringColumn
- All Implemented Interfaces:
ColumnMeta<String>
String column.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ru.curs.celesta.score.ColumnMeta
ColumnMeta.Ordering -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCelesta type of the column data for long string.static final StringCelesta type of the column data for short string.Fields inherited from class ru.curs.celesta.score.NamedElement
MAX_IDENTIFIER_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDEFAULT value of the field in CelestaSQL language.Celesta data type that corresponds to the field.Returns default value.Class<?> Returns corresponding Java data type.intMaximal length of the text field.booleanisMax()Indicates that on the field definition MAX parameter was provided instead of the length.Name of jdbcGetter that should be used for getting column data.static StringquoteString(String lexvalue) Quotes a string.voidSets length of the text field.static StringunquoteString(String lexvalue) Unquotes a string that is quoted.Methods inherited from class ru.curs.celesta.score.Column
delete, getOptions, getParentTable, isNullable, setNullableAndDefault, toStringMethods inherited from class ru.curs.celesta.score.NamedElement
equals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName, setCelestaDocMethods inherited from interface ru.curs.celesta.score.ColumnMeta
asc, desc, getCelestaDoc, getName, ordering
-
Field Details
-
VARCHAR
Celesta type of the column data for short string.- See Also:
-
TEXT
Celesta type of the column data for long string.- See Also:
-
-
Constructor Details
-
StringColumn
- Throws:
ParseException
-
-
Method Details
-
unquoteString
Unquotes a string that is quoted.- Parameters:
lexvalue- quoted string- Throws:
ParseException- incorrect format
-
quoteString
Quotes a string.- Parameters:
lexvalue- string for quoting
-
getDefaultValue
Description copied from class:ColumnReturns default value.- Specified by:
getDefaultValuein classColumn<String>
-
getLength
public int getLength()Maximal length of the text field. It should not be taken into account ifisMax()==true.- Returns:
-
isMax
public boolean isMax()Indicates that on the field definition MAX parameter was provided instead of the length.- Returns:
-
setLength
Sets length of the text field.- Parameters:
length- new length- Throws:
ParseException- if zero or negative length is specified.
-
jdbcGetterName
Description copied from interface:ColumnMetaName of jdbcGetter that should be used for getting column data.- Returns:
-
getCelestaType
Description copied from interface:ColumnMetaCelesta data type that corresponds to the field.- Returns:
-
getJavaClass
Description copied from interface:ColumnMetaReturns corresponding Java data type.- Returns:
-
getCelestaDefault
Description copied from class:ColumnDEFAULT value of the field in CelestaSQL language.- Specified by:
getCelestaDefaultin classColumn<String>
-