public class TimeStampStringType extends DateStringType
Timestamp
object as a String.DEFAULT_WIDTH
Modifier | Constructor and Description |
---|---|
protected |
TimeStampStringType(SqlType sqlType,
Class<?>[] classes)
Here for others to subclass.
|
Modifier and Type | Method and Description |
---|---|
static TimeStampStringType |
getSingleton() |
boolean |
isValidForField(Field field)
Return true if the field is appropriate for this persister otherwise false.
|
Object |
javaToSqlArg(FieldType fieldType,
Object javaObject)
Convert a Java object and return the appropriate argument to a SQL insert or update statement.
|
Object |
moveToNextValue(Object currentValue)
Move the current-value to the next value.
|
Object |
sqlArgToJava(FieldType fieldType,
Object sqlArg,
int columnPos)
Return the object converted from the SQL arg to java.
|
getDefaultWidth, getPrimaryClass, makeConfigObject, parseDefaultString, resultStringToJava, resultToSqlArg
convertDateStringConfig, getDefaultDateFormatConfig, isValidForVersion, normalizeDateString, parseDateString
convertIdNumber, dataIsEqual, generateId, getAssociatedClasses, getAssociatedClassNames, getSqlOtherType, getSqlType, isAppropriateId, isArgumentHolderRequired, isComparable, isEscapedDefaultValue, isEscapedValue, isPrimitive, isSelfGeneratedId, isValidGeneratedType
isStreamType, resultToJava
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isStreamType, resultToJava
public static TimeStampStringType getSingleton()
public Object sqlArgToJava(FieldType fieldType, Object sqlArg, int columnPos) throws SQLException
FieldConverter
sqlArgToJava
in interface FieldConverter
sqlArgToJava
in class DateStringType
fieldType
- Associated FieldType which may be null.sqlArg
- SQL argument converted with FieldConverter.resultToSqlArg(FieldType, DatabaseResults, int)
which will not be
null.SQLException
- If there are problems with the conversion.public Object javaToSqlArg(FieldType fieldType, Object javaObject)
FieldConverter
javaToSqlArg
in interface FieldConverter
javaToSqlArg
in class DateStringType
public boolean isValidForField(Field field)
DataPersister
isValidForField
in interface DataPersister
isValidForField
in class BaseDateType
public Object moveToNextValue(Object currentValue)
BaseDataType
moveToNextValue
in interface DataPersister
moveToNextValue
in class BaseDateType
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.