Package mil.nga.geopackage.persister
Class DatePersister
- java.lang.Object
-
- com.j256.ormlite.field.BaseFieldConverter
-
- com.j256.ormlite.field.types.BaseDataType
-
- com.j256.ormlite.field.types.StringType
-
- mil.nga.geopackage.persister.DatePersister
-
- All Implemented Interfaces:
DataPersister
,FieldConverter
public class DatePersister extends StringType
Date Persister for OrmLite to translate between a Java Date and a UTC String- Since:
- 1.2.1
- Author:
- osbornb
-
-
Field Summary
-
Fields inherited from class com.j256.ormlite.field.types.StringType
DEFAULT_WIDTH
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DatePersister
getSingleton()
Get the singleton instanceObject
javaToSqlArg(FieldType fieldType, Object javaObject)
Object
parseDefaultString(FieldType fieldType, String defaultStr)
Object
sqlArgToJava(FieldType fieldType, Object sqlArg, int columnPos)
-
Methods inherited from class com.j256.ormlite.field.types.StringType
getDefaultWidth, resultToSqlArg
-
Methods inherited from class com.j256.ormlite.field.types.BaseDataType
convertIdNumber, dataIsEqual, generateId, getAssociatedClasses, getAssociatedClassNames, getPrimaryClass, getSqlOtherType, getSqlType, isAppropriateId, isArgumentHolderRequired, isComparable, isEscapedDefaultValue, isEscapedValue, isPrimitive, isSelfGeneratedId, isValidForField, isValidForVersion, isValidGeneratedType, moveToNextValue, resultStringToJava
-
Methods inherited from class com.j256.ormlite.field.BaseFieldConverter
isStreamType, makeConfigObject, resultToJava
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.j256.ormlite.field.FieldConverter
isStreamType, makeConfigObject, resultToJava
-
-
-
-
Method Detail
-
getSingleton
public static DatePersister getSingleton()
Get the singleton instance- Returns:
- instance
-
parseDefaultString
public Object parseDefaultString(FieldType fieldType, String defaultStr)
- Specified by:
parseDefaultString
in interfaceFieldConverter
- Overrides:
parseDefaultString
in classStringType
-
javaToSqlArg
public Object javaToSqlArg(FieldType fieldType, Object javaObject)
- Specified by:
javaToSqlArg
in interfaceFieldConverter
- Overrides:
javaToSqlArg
in classBaseFieldConverter
-
sqlArgToJava
public Object sqlArgToJava(FieldType fieldType, Object sqlArg, int columnPos) throws SQLException
- Specified by:
sqlArgToJava
in interfaceFieldConverter
- Overrides:
sqlArgToJava
in classBaseFieldConverter
- Throws:
SQLException
-
-