java.lang.Object | |||
↳ | BaseTypeHandler | ||
↳ | org.springframework.orm.ibatis.support.AbstractLobTypeHandler | ||
↳ | org.springframework.orm.ibatis.support.BlobByteArrayTypeHandler |
iBATIS TypeHandler implementation for byte arrays that get mapped to BLOBs. Retrieves the LobHandler to use from SqlMapClientFactoryBean at config time.
Can also be defined in generic iBATIS mappings, as DefaultLobCreator will work with most JDBC-compliant database drivers. In this case, the field type does not have to be BLOB: For databases like MySQL and MS SQL Server, any large enough binary type will work.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.orm.ibatis.support.AbstractLobTypeHandler
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor used by iBATIS: fetches config-time LobHandler from
SqlMapClientFactoryBean.
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor used for testing: takes an explicit LobHandler.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Template method to extract a value from the given result set.
| |||||||||||
Template method to set the given value on the given statement.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.orm.ibatis.support.AbstractLobTypeHandler
| |||||||||||
From class
java.lang.Object
|
Constructor used by iBATIS: fetches config-time LobHandler from SqlMapClientFactoryBean.
Constructor used for testing: takes an explicit LobHandler.
Template method to extract a value from the given result set.
rs | the ResultSet to extract from |
---|---|
index | the index in the ResultSet |
lobHandler | the LobHandler to use |
SQLException |
---|
Template method to set the given value on the given statement.
ps | the PreparedStatement to set on |
---|---|
index | the statement parameter index |
value | the parameter value to set |
jdbcType | the JDBC type of the parameter |
lobCreator | the LobCreator to use |
SQLException |
---|