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
|
utc
getSQLTypes
public String getLiteral(Calendar value)
Type
getLiteral
in interface Type<Calendar>
getLiteral
in class AbstractType<Calendar>
value
- valuepublic Calendar getValue(ResultSet rs, int startIndex) throws SQLException
Type
rs
- result setstartIndex
- column index in result setSQLException
public Class<Calendar> getReturnedClass()
Type
public void setValue(PreparedStatement st, int startIndex, Calendar value) throws SQLException
Type
st
- statementstartIndex
- column index in statementvalue
- value to be setSQLException
Copyright © 2007–2016 Querydsl. All rights reserved.