com.ibatis.sqlmap.engine.type

Class CustomTypeHandler

public class CustomTypeHandler extends BaseTypeHandler implements TypeHandler

Custom type handler for adding a TypeHandlerCallback
Constructor Summary
CustomTypeHandler(TypeHandlerCallback callback)
Constructor to provide a TypeHandlerCallback instance
Method Summary
ObjectgetResult(ResultSet rs, String columnName)
ObjectgetResult(ResultSet rs, int columnIndex)
ObjectgetResult(CallableStatement cs, int columnIndex)
voidsetParameter(PreparedStatement ps, int i, Object parameter, String jdbcType)
ObjectvalueOf(String s)

Constructor Detail

CustomTypeHandler

public CustomTypeHandler(TypeHandlerCallback callback)
Constructor to provide a TypeHandlerCallback instance

Parameters: callback - the TypeHandlerCallback instance

Method Detail

getResult

public Object getResult(ResultSet rs, String columnName)

getResult

public Object getResult(ResultSet rs, int columnIndex)

getResult

public Object getResult(CallableStatement cs, int columnIndex)

setParameter

public void setParameter(PreparedStatement ps, int i, Object parameter, String jdbcType)

valueOf

public Object valueOf(String s)
Copyright © 2011. All Rights Reserved.