org.apache.ibatis.type
Class BaseTypeHandler
java.lang.Object
org.apache.ibatis.type.BaseTypeHandler
- All Implemented Interfaces:
- TypeHandler
- Direct Known Subclasses:
- BigDecimalTypeHandler, BigIntegerTypeHandler, BlobTypeHandler, BooleanTypeHandler, ByteArrayTypeHandler, ByteTypeHandler, ClobTypeHandler, DateOnlyTypeHandler, DateTypeHandler, DoubleTypeHandler, EnumTypeHandler, FloatTypeHandler, IntegerTypeHandler, LongTypeHandler, NClobTypeHandler, NStringTypeHandler, ObjectTypeHandler, ShortTypeHandler, SqlDateTypeHandler, SqlTimestampTypeHandler, SqlTimeTypeHandler, StringTypeHandler, TimeOnlyTypeHandler, UnknownTypeHandler
public abstract class BaseTypeHandler
- extends Object
- implements TypeHandler
|
Method Summary |
abstract Object |
getNullableResult(CallableStatement cs,
int columnIndex)
|
abstract Object |
getNullableResult(ResultSet rs,
String columnName)
|
Object |
getResult(CallableStatement cs,
int columnIndex)
|
Object |
getResult(ResultSet rs,
String columnName)
|
abstract void |
setNonNullParameter(PreparedStatement ps,
int i,
Object parameter,
JdbcType jdbcType)
|
void |
setParameter(PreparedStatement ps,
int i,
Object parameter,
JdbcType jdbcType)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseTypeHandler
public BaseTypeHandler()
setParameter
public void setParameter(PreparedStatement ps,
int i,
Object parameter,
JdbcType jdbcType)
throws SQLException
- Specified by:
setParameter in interface TypeHandler
- Throws:
SQLException
getResult
public Object getResult(ResultSet rs,
String columnName)
throws SQLException
- Specified by:
getResult in interface TypeHandler
- Throws:
SQLException
getResult
public Object getResult(CallableStatement cs,
int columnIndex)
throws SQLException
- Specified by:
getResult in interface TypeHandler
- Throws:
SQLException
setNonNullParameter
public abstract void setNonNullParameter(PreparedStatement ps,
int i,
Object parameter,
JdbcType jdbcType)
throws SQLException
- Throws:
SQLException
getNullableResult
public abstract Object getNullableResult(ResultSet rs,
String columnName)
throws SQLException
- Throws:
SQLException
getNullableResult
public abstract Object getNullableResult(CallableStatement cs,
int columnIndex)
throws SQLException
- Throws:
SQLException
Copyright © 2010-2011 MyBatis.org. All Rights Reserved.