public abstract class BaseDateType extends BaseDataType
Date class types.| Modifier | Constructor and Description |
|---|---|
protected |
BaseDateType(SqlType sqlType) |
protected |
BaseDateType(SqlType sqlType,
Class<?>[] classes) |
| Modifier and Type | Method and Description |
|---|---|
protected static DateStringFormatConfig |
convertDateStringConfig(FieldType fieldType,
DateStringFormatConfig defaultDateFormatConfig) |
protected DateStringFormatConfig |
getDefaultDateFormatConfig()
Get the default date format configuration.
|
boolean |
isValidForField(Field field)
Return true if the field is appropriate for this persister otherwise false.
|
boolean |
isValidForVersion()
Return true if this is a valid field for the
DatabaseField.version(). |
Object |
moveToNextValue(Object currentValue)
Move the current-value to the next value.
|
protected static String |
normalizeDateString(DateStringFormatConfig formatConfig,
String dateStr) |
protected static Date |
parseDateString(DateStringFormatConfig formatConfig,
String dateStr) |
convertIdNumber, dataIsEqual, generateId, getAssociatedClasses, getAssociatedClassNames, getDefaultWidth, getPrimaryClass, getSqlOtherType, getSqlType, isAppropriateId, isArgumentHolderRequired, isComparable, isEscapedDefaultValue, isEscapedValue, isPrimitive, isSelfGeneratedId, isValidGeneratedType, resultStringToJavaisStreamType, javaToSqlArg, makeConfigObject, resultToJava, sqlArgToJavaclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisStreamType, javaToSqlArg, makeConfigObject, parseDefaultString, resultToJava, resultToSqlArg, sqlArgToJavaprotected BaseDateType(SqlType sqlType)
protected static DateStringFormatConfig convertDateStringConfig(FieldType fieldType, DateStringFormatConfig defaultDateFormatConfig)
protected static Date parseDateString(DateStringFormatConfig formatConfig, String dateStr) throws ParseException
ParseExceptionprotected static String normalizeDateString(DateStringFormatConfig formatConfig, String dateStr) throws ParseException
ParseExceptionpublic boolean isValidForVersion()
DataPersisterDatabaseField.version().isValidForVersion in interface DataPersisterisValidForVersion in class BaseDataTypepublic Object moveToNextValue(Object currentValue)
BaseDataTypemoveToNextValue in interface DataPersistermoveToNextValue in class BaseDataTypepublic boolean isValidForField(Field field)
DataPersisterisValidForField in interface DataPersisterisValidForField in class BaseDataTypeprotected DateStringFormatConfig getDefaultDateFormatConfig()
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.