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