public class DateType extends BaseDateType
Date object.
NOTE: This is not the same as the Date class that is handled by SqlDateType.
BaseDateType.DateStringFormatConfigdefaultDateFormatConfig| Modifier | Constructor and Description |
|---|---|
protected |
DateType(SqlType sqlType,
Class<?>[] classes) |
| Modifier and Type | Method and Description |
|---|---|
protected BaseDateType.DateStringFormatConfig |
getDefaultDateFormatConfig()
Return the default date format configuration.
|
static DateType |
getSingleton() |
boolean |
isArgumentHolderRequired()
Must use
ArgumentHolder when querying for values of this type. |
Object |
javaToSqlArg(FieldType fieldType,
Object javaObject)
Convert a Java object and return the appropriate argument to a SQL insert or update statement.
|
Object |
parseDefaultString(FieldType fieldType,
String defaultStr)
Convert a default string object and return the appropriate argument to a SQL insert or update statement.
|
Object |
resultToSqlArg(FieldType fieldType,
DatabaseResults results,
int columnPos)
Return the SQL argument object extracted from the results associated with column in position columnPos.
|
Object |
sqlArgToJava(FieldType fieldType,
Object sqlArg,
int columnPos)
Return the object converted from the SQL arg to java.
|
convertDateStringConfig, isValidForField, isValidForVersion, moveToNextValue, 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 DateType getSingleton()
public Object parseDefaultString(FieldType fieldType, String defaultStr) throws SQLException
FieldConverterSQLExceptionpublic Object resultToSqlArg(FieldType fieldType, DatabaseResults results, int columnPos) throws SQLException
FieldConverterfieldType - Associated FieldType which may be null.SQLException - If there is a problem accessing the results data.public Object sqlArgToJava(FieldType fieldType, Object sqlArg, int columnPos)
FieldConvertersqlArgToJava in interface FieldConvertersqlArgToJava in class BaseFieldConverterfieldType - 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 BaseFieldConverterpublic boolean isArgumentHolderRequired()
DataPersisterArgumentHolder when querying for values of this type.isArgumentHolderRequired in interface DataPersisterisArgumentHolderRequired in class BaseDataTypeprotected BaseDateType.DateStringFormatConfig getDefaultDateFormatConfig()
This documentation is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.