- java.lang.Object
-
- org.tentackle.sql.datatypes.AbstractDataType<java.lang.Character>
-
- org.tentackle.sql.datatypes.CharacterType
-
- org.tentackle.sql.datatypes.CharacterPrimitiveType
-
- All Implemented Interfaces:
DataType<java.lang.Character>
@Service(DataType.class) public class CharacterPrimitiveType extends CharacterType
Datatype for the primitive typechar.
-
-
Constructor Summary
Constructors Constructor Description CharacterPrimitiveType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetJavaType()Gets the name of the Java type.booleanisMapNullSupported()Returns whether this type supports mapping null values to some well-defined constant.booleanisPrimitive()Returns whether type is a primitive.DataType<?>toNonPrimitive()Gets the non-primitive type if this is a primitive.-
Methods inherited from class org.tentackle.sql.datatypes.CharacterType
get, getSqlType, set, toPrimitive, valueOf
-
Methods inherited from class org.tentackle.sql.datatypes.AbstractDataType
equals, getColumnCount, getColumnGetter, getColumnSuffix, getColumnValue, getCommentSuffix, getDataTypeConstant, getScale, getSize, getVariant, hashCode, isBool, isDateOrTime, isDowncastNecessary, isJavaTypeGenerified, isLiteralSupported, isModelProvidingInnerType, isMutable, isNumeric, isPredefined, isUTCSupported, set, toLiteral, toString, toString, valueOfLiteralToCode
-
-
-
-
Method Detail
-
getJavaType
public java.lang.String getJavaType()
Description copied from interface:DataTypeGets the name of the Java type.- Specified by:
getJavaTypein interfaceDataType<java.lang.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<java.lang.Character>- Overrides:
isPrimitivein classAbstractDataType<java.lang.Character>- Returns:
- true if primitive
-
toNonPrimitive
public DataType<?> toNonPrimitive()
Description copied from interface:DataTypeGets the non-primitive type if this is a primitive.- Specified by:
toNonPrimitivein interfaceDataType<java.lang.Character>- Overrides:
toNonPrimitivein classAbstractDataType<java.lang.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<java.lang.Character>- Overrides:
isMapNullSupportedin classCharacterType- Returns:
- true if mapNull supported
-
-