java.lang.Object
org.tentackle.sql.datatypes.AbstractDataType<Character>
org.tentackle.sql.datatypes.CharacterType
org.tentackle.sql.datatypes.CharacterPrimitiveType
Datatype for the primitive type
char.-
Field Summary
Fields inherited from class org.tentackle.sql.datatypes.AbstractDataType
maxLinesInLiteral -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the Java type.booleanReturns whether this type supports mapping null values to some well-defined constant.booleanReturns whether type is a primitive.DataType<?> Gets the non-primitive type if this is a primitive.Methods inherited from class org.tentackle.sql.datatypes.CharacterType
get, getMappedNullValue, getSqlType, set, toPrimitive, valueOf, valueOfLiteralToCodeMethods inherited from class org.tentackle.sql.datatypes.AbstractDataType
assertColumnCountNotBackendSpecific, createColumnNames, createColumnNamesAsString, equals, getColumnAlias, getColumnCount, getColumnGetter, getColumnSuffix, getColumnValue, getCommentSuffix, getDataTypeConstant, getScale, getSize, getSortableColumns, getVariant, hashCode, isBool, isColumnCountBackendSpecific, isDateOrTime, isDowncastNecessary, isJavaTypeGenerified, isLiteralSupported, isModelProvidingInnerType, isMutable, isNumeric, isPredefined, isTimezoneApplicable, isUTCSupported, set, toLiteral, toString, toString, valueStringToCode
-
Constructor Details
-
CharacterPrimitiveType
public CharacterPrimitiveType()Creates the datatype for the primitive typechar.
-
-
Method Details
-
getJavaType
Description copied from interface:DataTypeGets the name of the Java type.- Specified by:
getJavaTypein interfaceDataType<Character>- Overrides:
getJavaTypein classCharacterType- Returns:
- the type
-
isPrimitive
public boolean isPrimitive()Description copied from interface:DataTypeReturns whether type is a primitive.- Specified by:
isPrimitivein interfaceDataType<Character>- Overrides:
isPrimitivein classAbstractDataType<Character>- Returns:
- true if primitive
-
toNonPrimitive
Description copied from interface:DataTypeGets the non-primitive type if this is a primitive.- Specified by:
toNonPrimitivein interfaceDataType<Character>- Overrides:
toNonPrimitivein classAbstractDataType<Character>- Returns:
- the non-primitive type, this type if it is already a non-primitive
-
isMapNullSupported
public boolean isMapNullSupported()Description copied from interface:DataTypeReturns whether this type supports mapping null values to some well-defined constant.- Specified by:
isMapNullSupportedin interfaceDataType<Character>- Overrides:
isMapNullSupportedin classCharacterType- Returns:
- true if mapNull supported
-