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, resultStringToJava
isStreamType, javaToSqlArg, makeConfigObject, resultToJava, sqlArgToJava
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isStreamType, javaToSqlArg, makeConfigObject, parseDefaultString, resultToJava, resultToSqlArg, sqlArgToJava
protected BaseDateType(SqlType sqlType)
protected static DateStringFormatConfig convertDateStringConfig(FieldType fieldType, DateStringFormatConfig defaultDateFormatConfig)
protected static Date parseDateString(DateStringFormatConfig formatConfig, String dateStr) throws ParseException
ParseException
protected static String normalizeDateString(DateStringFormatConfig formatConfig, String dateStr) throws ParseException
ParseException
public boolean isValidForVersion()
DataPersister
DatabaseField.version()
.isValidForVersion
in interface DataPersister
isValidForVersion
in class BaseDataType
public Object moveToNextValue(Object currentValue)
BaseDataType
moveToNextValue
in interface DataPersister
moveToNextValue
in class BaseDataType
public boolean isValidForField(Field field)
DataPersister
isValidForField
in interface DataPersister
isValidForField
in class BaseDataType
protected DateStringFormatConfig getDefaultDateFormatConfig()
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.