java.lang.Object
org.tentackle.sql.datatypes.AbstractDataType<T>
org.tentackle.sql.datatypes.AbstractDateTimeType<T>
- Type Parameters:
T- the java type
- All Implemented Interfaces:
DataType<T>
- Direct Known Subclasses:
DateType,InstantType,LocalDateTimeType,LocalDateType,LocalTimeType,OffsetDateTimeType,OffsetTimeType,TimestampType,TimeType,ZonedDateTimeType
Base class for date- or time-related data types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether this is a date and/or time type.valueOfLiteralToCode(String str, Integer index) Creates the java code to apply the valueOf method to a String.Methods inherited from class org.tentackle.sql.datatypes.AbstractDataType
equals, getColumnAlias, getColumnCount, getColumnGetter, getColumnSuffix, getColumnValue, getCommentSuffix, getDataTypeConstant, getScale, getSize, getSortableColumns, getVariant, hashCode, isBool, isDowncastNecessary, isJavaTypeGenerified, isLiteralSupported, isMapNullSupported, isModelProvidingInnerType, isMutable, isNumeric, isPredefined, isPrimitive, isTimezoneApplicable, isUTCSupported, set, toLiteral, toNonPrimitive, toPrimitive, toString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.tentackle.sql.DataType
get, getJavaType, getSqlType, set, valueOf
-
Constructor Details
-
AbstractDateTimeType
public AbstractDateTimeType()
-
-
Method Details
-
isDateOrTime
public boolean isDateOrTime()Description copied from interface:DataTypeReturns whether this is a date and/or time type.- Specified by:
isDateOrTimein interfaceDataType<T>- Overrides:
isDateOrTimein classAbstractDataType<T>- Returns:
- true if time, date or timestamp
-
valueOfLiteralToCode
Description copied from interface:DataTypeCreates the java code to apply the valueOf method to a String.- Specified by:
valueOfLiteralToCodein interfaceDataType<T>- Overrides:
valueOfLiteralToCodein classAbstractDataType<T>- Parameters:
str- the literal to be parsedindex- the column index, null if applies to object of this type- Returns:
- the java code
-