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