public class UtilDateType extends AbstractDateTimeType<Date>
UtilDateType maps Date to Timestamp on the JDBC leveldateFormatter, dateTimeFormatter, timeFormatter| Constructor and Description |
|---|
UtilDateType() |
UtilDateType(int type) |
| Modifier and Type | Method and Description |
|---|---|
String |
getLiteral(Date value)
Get the literal representation
|
Class<Date> |
getReturnedClass()
Get the returned type
|
Date |
getValue(ResultSet rs,
int startIndex)
Get the object from the result set
|
void |
setValue(PreparedStatement st,
int startIndex,
Date value)
Set the object to the statement
|
utcgetSQLTypespublic String getLiteral(Date value)
TypegetLiteral in interface Type<Date>getLiteral in class AbstractType<Date>value - valuepublic Date getValue(ResultSet rs, int startIndex) throws SQLException
Typers - result setstartIndex - column index in result setSQLExceptionpublic Class<Date> getReturnedClass()
Typepublic void setValue(PreparedStatement st, int startIndex, Date value) throws SQLException
Typest - statementstartIndex - column index in statementvalue - value to be setSQLExceptionCopyright © 2007–2020 Querydsl. All rights reserved.