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