public class LocalDateTimeType extends AbstractDateTimeType<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 |
---|---|
String |
getLiteral(org.joda.time.LocalDateTime value)
Get the literal representation
|
Class<org.joda.time.LocalDateTime> |
getReturnedClass()
Get the returned type
|
org.joda.time.LocalDateTime |
getValue(ResultSet rs,
int index)
Get the object from the result set
|
void |
setValue(PreparedStatement st,
int index,
org.joda.time.LocalDateTime value)
Set the object to the statement
|
utc
getSQLTypes
public LocalDateTimeType()
public LocalDateTimeType(int type)
public 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 Class<org.joda.time.LocalDateTime> getReturnedClass()
Type
public org.joda.time.LocalDateTime getValue(ResultSet rs, int index) throws SQLException
Type
rs
- result setindex
- column index in result setSQLException
public void setValue(PreparedStatement st, int index, org.joda.time.LocalDateTime value) throws SQLException
Type
st
- statementindex
- column index in statementvalue
- value to be setSQLException
Copyright © 2007–2016 Querydsl. All rights reserved.