public class TimeStampType extends DateType
Timestamp object.BaseDateType.DateStringFormatConfigdefaultDateFormatConfig| Modifier | Constructor and Description |
|---|---|
protected |
TimeStampType(SqlType sqlType,
Class<?>[] classes)
Here for others to subclass.
|
| Modifier and Type | Method and Description |
|---|---|
static TimeStampType |
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.
|
getDefaultDateFormatConfig, isArgumentHolderRequired, parseDefaultString, resultToSqlArgconvertDateStringConfig, isValidForVersion, normalizeDateString, parseDateStringconvertIdNumber, dataIsEqual, generateId, getAssociatedClasses, getAssociatedClassNames, getDefaultWidth, getPrimaryClass, getSqlOtherType, getSqlType, isAppropriateId, isComparable, isEscapedDefaultValue, isEscapedValue, isPrimitive, isSelfGeneratedId, isValidGeneratedType, makeConfigObject, resultStringToJavaisStreamType, resultToJavaclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisStreamType, resultToJavapublic static TimeStampType getSingleton()
public Object sqlArgToJava(FieldType fieldType, Object sqlArg, int columnPos)
FieldConvertersqlArgToJava in interface FieldConvertersqlArgToJava in class DateTypefieldType - Associated FieldType which may be null.sqlArg - SQL argument converted with FieldConverter.resultToSqlArg(FieldType, DatabaseResults, int) which will not be
null.public Object javaToSqlArg(FieldType fieldType, Object javaObject)
FieldConverterjavaToSqlArg in interface FieldConverterjavaToSqlArg in class DateTypepublic boolean isValidForField(Field field)
DataPersisterisValidForField in interface DataPersisterisValidForField in class BaseDateTypepublic Object moveToNextValue(Object currentValue)
BaseDataTypemoveToNextValue in interface DataPersistermoveToNextValue in class BaseDateTypeThis documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.