com.mysema.query.sql.types
Interface Type<T>

Type Parameters:
T -
All Known Implementing Classes:
AbstractNumberType, BigDecimalType, BlobType, BooleanType, BytesType, ByteType, CharacterType, ClobType, DateTimeType, DateType, DoubleType, EnumByNameType, EnumByOrdinalType, FloatType, InputStreamType, IntegerType, LocalDateTimeType, LocalDateType, LocalTimeType, LongType, LongVarBinaryBytesType, ObjectType, ShortType, StringType, TimestampType, TimeType, URLType, UtilDateType

public interface Type<T>

Defines the de/serialization of a typed Java object from a ResultSet or to a PreparedStatement

Author:
tiwe

Method Summary
 Class<T> getReturnedClass()
           
 int[] getSQLTypes()
           
 T getValue(ResultSet rs, int startIndex)
           
 void setValue(PreparedStatement st, int startIndex, T value)
           
 

Method Detail

getSQLTypes

int[] getSQLTypes()

getReturnedClass

Class<T> getReturnedClass()

getValue

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

setValue

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


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