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

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

public class EnumAsObjectType<T extends Enum<T>>
extends AbstractType<T>

Author:
tiwe

Constructor Summary
EnumAsObjectType(Class<T> type)
           
EnumAsObjectType(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

EnumAsObjectType

public EnumAsObjectType(Class<T> type)

EnumAsObjectType

public EnumAsObjectType(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.