T
- public class EnumByNameType<T extends Enum<T>> extends AbstractType<T>
EnumByNameType
maps Enum types to their String names on the JDBC levelConstructor and Description |
---|
EnumByNameType(Class<T> type) |
EnumByNameType(int jdbcType,
Class<T> type) |
Modifier and Type | Method and Description |
---|---|
Class<T> |
getReturnedClass()
Get the returned type
|
T |
getValue(ResultSet rs,
int startIndex)
Get the object from the result set
|
void |
setValue(PreparedStatement st,
int startIndex,
T value)
Set the object to the statement
|
getLiteral, getSQLTypes
public Class<T> getReturnedClass()
Type
public T getValue(ResultSet rs, int startIndex) throws SQLException
Type
rs
- result setstartIndex
- column index in result setSQLException
public void setValue(PreparedStatement st, int startIndex, T value) throws SQLException
Type
st
- statementstartIndex
- column index in statementvalue
- value to be setSQLException
Copyright © 2007–2016 Querydsl. All rights reserved.