- java.lang.Object
-
- org.tentackle.sql.datatypes.AbstractDataType<T>
-
- org.tentackle.sql.datatypes.AbstractNumberType<java.lang.Short>
-
- org.tentackle.sql.datatypes.ShortType
-
- org.tentackle.sql.datatypes.ShortPrimitiveType
-
- All Implemented Interfaces:
DataType<java.lang.Short>
@Service(DataType.class) public class ShortPrimitiveType extends ShortType
Datatype for the primitive typeshort.
-
-
Constructor Summary
Constructors Constructor Description ShortPrimitiveType()
-
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.ShortType
get, getSqlType, isDowncastNecessary, set, toPrimitive, valueOf
-
Methods inherited from class org.tentackle.sql.datatypes.AbstractNumberType
isNumeric
-
Methods inherited from class org.tentackle.sql.datatypes.AbstractDataType
equals, getColumnCount, getColumnGetter, getColumnSuffix, getColumnValue, getCommentSuffix, getDataTypeConstant, getScale, getSize, getVariant, hashCode, isBool, isDateOrTime, isJavaTypeGenerified, isLiteralSupported, isMapNullSupported, isModelProvidingInnerType, isMutable, 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.Short>- Overrides:
getJavaTypein classShortType- Returns:
- the type
-
isPrimitive
public boolean isPrimitive()
Description copied from interface:DataTypeReturns whether type is a primitive.- Specified by:
isPrimitivein interfaceDataType<java.lang.Short>- Overrides:
isPrimitivein classAbstractDataType<java.lang.Short>- 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.Short>- Overrides:
toNonPrimitivein classAbstractDataType<java.lang.Short>- Returns:
- the non-primitive type, this type if it is already a non-primitive
-
-