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

java.lang.Object
  extended by com.mysema.query.sql.types.AbstractType<T>
      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 AbstractType<T>

Author:
tiwe

Constructor Summary
EnumByNameType(Class<T> type)
           
EnumByNameType(int jdbcType, Class<T> type)
           
 
Method Summary
 Class<T> getReturnedClass()
           
 T getValue(ResultSet rs, int startIndex)
           
 void setValue(PreparedStatement st, int startIndex, T value)
           
 
Methods inherited from class com.mysema.query.sql.types.AbstractType
getSQLTypes
 
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)

EnumByNameType

public EnumByNameType(int jdbcType,
                      Class<T> type)
Method Detail

getReturnedClass

public Class<T> getReturnedClass()

getValue

public T getValue(ResultSet rs,
                  int startIndex)
                           throws SQLException
Throws:
SQLException

setValue

public void setValue(PreparedStatement st,
                     int startIndex,
                     T value)
              throws SQLException
Throws:
SQLException


Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.