Package com.querydsl.sql.types
Class DateTimeType
java.lang.Object
com.querydsl.sql.types.AbstractType<T>
com.querydsl.sql.types.AbstractJodaTimeDateTimeType<org.joda.time.DateTime>
com.querydsl.sql.types.DateTimeType
- All Implemented Interfaces:
Type<org.joda.time.DateTime>
DateTimeType maps DateTime
to Timestamp on the JDBC level- Author:
- tiwe
-
Field Summary
Fields inherited from class com.querydsl.sql.types.AbstractJodaTimeDateTimeType
dateFormatter, dateTimeFormatter, timeFormatter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLiteral(org.joda.time.DateTime value) Get the literal representationClass<org.joda.time.DateTime>Get the returned typeorg.joda.time.DateTimeGet the object from the result setvoidsetValue(PreparedStatement st, int startIndex, org.joda.time.DateTime value) Set the object to the statementMethods inherited from class com.querydsl.sql.types.AbstractJodaTimeDateTimeType
utcMethods inherited from class com.querydsl.sql.types.AbstractType
getSQLTypes
-
Constructor Details
-
DateTimeType
public DateTimeType() -
DateTimeType
public DateTimeType(int type)
-
-
Method Details
-
getLiteral
Description copied from interface:TypeGet the literal representation- Specified by:
getLiteralin interfaceType<org.joda.time.DateTime>- Overrides:
getLiteralin classAbstractType<org.joda.time.DateTime>- Parameters:
value- value- Returns:
- literal representation
-
getReturnedClass
Description copied from interface:TypeGet the returned type- Returns:
- returned class
-
getValue
Description copied from interface:TypeGet the object from the result set- Parameters:
rs- result setstartIndex- column index in result set- Returns:
- value
- Throws:
SQLException
-
setValue
public void setValue(PreparedStatement st, int startIndex, org.joda.time.DateTime value) throws SQLException Description copied from interface:TypeSet the object to the statement- Parameters:
st- statementstartIndex- column index in statementvalue- value to be set- Throws:
SQLException
-