Package com.querydsl.sql.types
Class EnumByOrdinalType<T extends Enum<T>>
java.lang.Object
com.querydsl.sql.types.AbstractType<T>
com.querydsl.sql.types.EnumByOrdinalType<T>
- Type Parameters:
T-
- All Implemented Interfaces:
Type<T>
EnumByOrdinalType maps Enum types to their Integer ordinals on the JDBC level- Author:
- tiwe
-
Constructor Summary
ConstructorsConstructorDescriptionEnumByOrdinalType(int jdbcType, Class<T> type) EnumByOrdinalType(Class<T> type) -
Method Summary
Modifier and TypeMethodDescriptionGet the returned typeGet the object from the result setvoidsetValue(PreparedStatement st, int startIndex, T value) Set the object to the statementMethods inherited from class com.querydsl.sql.types.AbstractType
getLiteral, getSQLTypes
-
Constructor Details
-
EnumByOrdinalType
-
EnumByOrdinalType
-
-
Method Details
-
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
Description copied from interface:TypeSet the object to the statement- Parameters:
st- statementstartIndex- column index in statementvalue- value to be set- Throws:
SQLException
-