public class SerializableTypeHandler extends Object implements org.apache.ibatis.type.TypeHandler
Modifier and Type | Class and Description |
---|---|
static class |
SerializableTypeHandler.DeserializationException
Marker exception to allow deserialization issues to be dealt with by calling code.
|
static class |
SerializableTypeHandler.SerializationException
Marker exception to allow serialization issues to be dealt with by calling code.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SERIALIZABLE_TYPE |
Constructor and Description |
---|
SerializableTypeHandler() |
Modifier and Type | Method and Description |
---|---|
Object |
getResult(CallableStatement cs,
int columnIndex) |
Object |
getResult(ResultSet rs,
int columnIndex) |
Object |
getResult(ResultSet rs,
String columnName) |
static int |
getSerializableType() |
void |
setParameter(PreparedStatement ps,
int i,
Object parameter,
org.apache.ibatis.type.JdbcType jdbcType) |
static void |
setSerializableType(int serializableType) |
Object |
valueOf(String s) |
public static final int DEFAULT_SERIALIZABLE_TYPE
public static void setSerializableType(int serializableType)
Types
public static int getSerializableType()
public Object getResult(ResultSet rs, String columnName) throws SQLException
getResult
in interface org.apache.ibatis.type.TypeHandler
SerializableTypeHandler.DeserializationException
- if the object could not be deserializedSQLException
public Object getResult(ResultSet rs, int columnIndex) throws SQLException
getResult
in interface org.apache.ibatis.type.TypeHandler
SQLException
public void setParameter(PreparedStatement ps, int i, Object parameter, org.apache.ibatis.type.JdbcType jdbcType) throws SQLException
setParameter
in interface org.apache.ibatis.type.TypeHandler
SQLException
public Object getResult(CallableStatement cs, int columnIndex) throws SQLException
getResult
in interface org.apache.ibatis.type.TypeHandler
SQLException
Copyright © 2005–2015 Alfresco Software. All rights reserved.