Package ru.curs.celesta.score
Class BooleanColumn
- java.lang.Object
-
- ru.curs.celesta.score.NamedElement
-
- ru.curs.celesta.score.Column<Boolean>
-
- ru.curs.celesta.score.BooleanColumn
-
- All Implemented Interfaces:
ColumnMeta<Boolean>
public final class BooleanColumn extends Column<Boolean>
Boolean column (BIT type).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface ru.curs.celesta.score.ColumnMeta
ColumnMeta.Ordering
-
-
Field Summary
Fields Modifier and Type Field Description static StringCELESTA_TYPECelesta type of the column data.-
Fields inherited from class ru.curs.celesta.score.NamedElement
MAX_IDENTIFIER_LENGTH
-
-
Constructor Summary
Constructors Constructor Description BooleanColumn(TableElement table, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCelestaDefault()DEFAULT value of the field in CelestaSQL language.StringgetCelestaType()Celesta data type that corresponds to the field.BooleangetDefaultValue()Returns default value.Class<?>getJavaClass()Returns corresponding Java data type.StringjdbcGetterName()Name of jdbcGetter that should be used for getting column data.static BooleanparseSQLBool(String lexvalue)Parses a string in SQL definition DEFAULT to a boolean value.-
Methods inherited from class ru.curs.celesta.score.Column
delete, getOptions, getParentTable, isNullable, setNullableAndDefault, toString
-
Methods inherited from class ru.curs.celesta.score.NamedElement
equals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName, setCelestaDoc
-
Methods inherited from interface ru.curs.celesta.score.ColumnMeta
asc, desc, getCelestaDoc, getName, ordering
-
-
-
-
Field Detail
-
CELESTA_TYPE
public static final String CELESTA_TYPE
Celesta type of the column data.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BooleanColumn
public BooleanColumn(TableElement table, String name) throws ParseException
- Throws:
ParseException
-
-
Method Detail
-
parseSQLBool
public static Boolean parseSQLBool(String lexvalue) throws ParseException
Parses a string in SQL definition DEFAULT to a boolean value.- Parameters:
lexvalue- string definition- Returns:
- Throws:
ParseException- incorrect string format
-
getDefaultValue
public Boolean getDefaultValue()
Description copied from class:ColumnReturns default value.- Specified by:
getDefaultValuein classColumn<Boolean>
-
jdbcGetterName
public String jdbcGetterName()
Description copied from interface:ColumnMetaName of jdbcGetter that should be used for getting column data.- Returns:
-
getCelestaType
public String getCelestaType()
Description copied from interface:ColumnMetaCelesta data type that corresponds to the field.- Returns:
-
getJavaClass
public Class<?> getJavaClass()
Description copied from interface:ColumnMetaReturns corresponding Java data type.- Returns:
-
getCelestaDefault
public String getCelestaDefault()
Description copied from class:ColumnDEFAULT value of the field in CelestaSQL language.- Specified by:
getCelestaDefaultin classColumn<Boolean>
-
-