com.mysema.query.sql.types
Class EnumByOrdinalType<T extends Enum<T>>

java.lang.Object
  extended by com.mysema.query.sql.types.EnumByOrdinalType<T>
Type Parameters:
T -
All Implemented Interfaces:
Type<T>

public class EnumByOrdinalType<T extends Enum<T>>
extends Object
implements Type<T>

Author:
tiwe

Constructor Summary
EnumByOrdinalType(Class<T> type)
           
 
Method Summary
 Class<T> getReturnedClass()
           
 int[] getSQLTypes()
           
 T getValue(ResultSet rs, int startIndex)
           
 void setValue(PreparedStatement st, int startIndex, T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumByOrdinalType

public EnumByOrdinalType(Class<T> type)
Method Detail

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-2010 Mysema Ltd. All Rights Reserved.