- java.lang.Object
-
- org.tentackle.sql.datatypes.AbstractDataType<java.lang.Boolean>
-
- org.tentackle.sql.datatypes.BooleanType
-
- org.tentackle.sql.datatypes.BooleanPrimitiveType
-
- All Implemented Interfaces:
DataType<java.lang.Boolean>
@Service(DataType.class) public class BooleanPrimitiveType extends BooleanType
Datatype for the primitive typeboolean.
-
-
Constructor Summary
Constructors Constructor Description BooleanPrimitiveType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetJavaType()Gets the name of the Java type.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.BooleanType
get, getSqlType, isBool, set, toPrimitive, valueOf
-
Methods inherited from class org.tentackle.sql.datatypes.AbstractDataType
equals, getColumnCount, getColumnGetter, getColumnSuffix, getColumnValue, getCommentSuffix, getDataTypeConstant, getScale, getSize, getVariant, hashCode, isDateOrTime, isDowncastNecessary, isJavaTypeGenerified, isLiteralSupported, isMapNullSupported, 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.Boolean>- Overrides:
getJavaTypein classBooleanType- Returns:
- the type
-
isPrimitive
public boolean isPrimitive()
Description copied from interface:DataTypeReturns whether type is a primitive.- Specified by:
isPrimitivein interfaceDataType<java.lang.Boolean>- Overrides:
isPrimitivein classAbstractDataType<java.lang.Boolean>- 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.Boolean>- Overrides:
toNonPrimitivein classAbstractDataType<java.lang.Boolean>- Returns:
- the non-primitive type, this type if it is already a non-primitive
-
-