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

java.lang.Object
  extended by 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

Constructor Summary
EnumByNameType(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

EnumByNameType

public EnumByNameType(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-2011 Mysema Ltd. All Rights Reserved.