public class DateTimeType extends AbstractJodaTimeDateTimeType<org.joda.time.DateTime>
DateTimeType maps DateTime
to Timestamp on the JDBC leveldateFormatter, dateTimeFormatter, timeFormatter| Constructor and Description |
|---|
DateTimeType() |
DateTimeType(int type) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLiteral(org.joda.time.DateTime value)
Get the literal representation
|
java.lang.Class<org.joda.time.DateTime> |
getReturnedClass()
Get the returned type
|
org.joda.time.DateTime |
getValue(java.sql.ResultSet rs,
int startIndex)
Get the object from the result set
|
void |
setValue(java.sql.PreparedStatement st,
int startIndex,
org.joda.time.DateTime value)
Set the object to the statement
|
utcgetSQLTypespublic java.lang.String getLiteral(org.joda.time.DateTime value)
TypegetLiteral in interface Type<org.joda.time.DateTime>getLiteral in class AbstractType<org.joda.time.DateTime>value - valuepublic java.lang.Class<org.joda.time.DateTime> getReturnedClass()
Typepublic org.joda.time.DateTime getValue(java.sql.ResultSet rs,
int startIndex)
throws java.sql.SQLException
Typers - result setstartIndex - column index in result setjava.sql.SQLExceptionpublic void setValue(java.sql.PreparedStatement st,
int startIndex,
org.joda.time.DateTime value)
throws java.sql.SQLException
Typest - statementstartIndex - column index in statementvalue - value to be setjava.sql.SQLExceptionCopyright © 2007–2021 Querydsl. All rights reserved.