com.j256.ormlite.field.types
Class BaseDateType
java.lang.Object
com.j256.ormlite.field.types.BaseDataType
com.j256.ormlite.field.types.BaseDateType
- All Implemented Interfaces:
- DataPersister, FieldConverter
- Direct Known Subclasses:
- DateLongType, DateStringType, DateType
public abstract class BaseDateType
- extends BaseDataType
Base class for all of the Date
class types.
- Author:
- graywatson
Methods inherited from class com.j256.ormlite.field.types.BaseDataType |
convertIdNumber, dataIsEqual, generateId, getAssociatedClasses, getDefaultWidth, getSqlType, isAppropriateId, isArgumentHolderRequired, isComparable, isEscapedDefaultValue, isEscapedValue, isPrimitive, isSelfGeneratedId, isStreamType, isValidForField, isValidGeneratedType, javaToSqlArg, makeConfigObject, parseDefaultString, resultToJava, sqlArgToJava |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
defaultDateFormatConfig
public static final BaseDateType.DateStringFormatConfig defaultDateFormatConfig
BaseDateType
protected BaseDateType(SqlType sqlType,
Class<?>[] classes)
convertDateStringConfig
protected static BaseDateType.DateStringFormatConfig convertDateStringConfig(FieldType fieldType)
parseDateString
protected static Date parseDateString(BaseDateType.DateStringFormatConfig formatConfig,
String dateStr)
throws ParseException
- Throws:
ParseException
normalizeDateString
protected static String normalizeDateString(BaseDateType.DateStringFormatConfig formatConfig,
String dateStr)
throws ParseException
- Throws:
ParseException
isValidForVersion
public boolean isValidForVersion()
- Description copied from interface:
DataPersister
- Return true if this is a valid field for the
DatabaseField.version()
.
- Specified by:
isValidForVersion
in interface DataPersister
- Overrides:
isValidForVersion
in class BaseDataType
moveToNextValue
public Object moveToNextValue(Object currentValue)
- Description copied from interface:
DataPersister
- Move the current-value to the next value. Used for the version field.
- Specified by:
moveToNextValue
in interface DataPersister
- Overrides:
moveToNextValue
in class BaseDataType
This content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.