com.mysema.query.sql.types
Class EnumByNameType<T extends Enum<T>>
java.lang.Object
com.mysema.query.sql.types.EnumByNameType<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- Type<T>
public class EnumByNameType<T extends Enum<T>>
- extends Object
- implements Type<T>
- Author:
- tiwe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnumByNameType
public EnumByNameType(Class<T> type)
getReturnedClass
public Class<T> getReturnedClass()
- Specified by:
getReturnedClass
in interface Type<T extends Enum<T>>
getSQLTypes
public int[] getSQLTypes()
- Specified by:
getSQLTypes
in interface Type<T extends Enum<T>>
getValue
public T getValue(ResultSet rs,
int startIndex)
throws SQLException
- Specified by:
getValue
in interface Type<T extends Enum<T>>
- Throws:
SQLException
setValue
public void setValue(PreparedStatement st,
int startIndex,
T value)
throws SQLException
- Specified by:
setValue
in interface Type<T extends Enum<T>>
- Throws:
SQLException
Copyright © 2007-2011 Mysema Ltd. All Rights Reserved.