| java.lang.Object org.springframework.orm.hibernate3.support.AbstractLobType org.springframework.orm.hibernate3.support.BlobByteArrayType
BlobByteArrayType | public class BlobByteArrayType extends AbstractLobType (Code) | | Hibernate UserType implementation for byte arrays that get mapped to BLOBs.
Retrieves the LobHandler to use from LocalSessionFactoryBean at config time.
Can also be defined in generic Hibernate 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.
author: Juergen Hoeller since: 1.2 See Also: org.springframework.orm.hibernate3.LocalSessionFactoryBean.setLobHandler |
Constructor Summary | |
public | BlobByteArrayType() Constructor used by Hibernate: fetches config-time LobHandler and
config-time JTA TransactionManager from LocalSessionFactoryBean. | protected | BlobByteArrayType(LobHandler lobHandler, TransactionManager jtaTransactionManager) Constructor used for testing: takes an explicit LobHandler
and an explicit JTA TransactionManager (can be null ). |
BlobByteArrayType | protected BlobByteArrayType(LobHandler lobHandler, TransactionManager jtaTransactionManager)(Code) | | Constructor used for testing: takes an explicit LobHandler
and an explicit JTA TransactionManager (can be null ).
|
isMutable | public boolean isMutable()(Code) | | |
sqlTypes | public int[] sqlTypes()(Code) | | |
Fields inherited from org.springframework.orm.hibernate3.support.AbstractLobType | final protected Log logger(Code)(Java Doc)
|
Methods inherited from org.springframework.orm.hibernate3.support.AbstractLobType | public Object assemble(Serializable cached, Object owner) throws HibernateException(Code)(Java Doc) public Object deepCopy(Object value) throws HibernateException(Code)(Java Doc) public Serializable disassemble(Object value) throws HibernateException(Code)(Java Doc) public boolean equals(Object x, Object y) throws HibernateException(Code)(Java Doc) public int hashCode(Object x) throws HibernateException(Code)(Java Doc) public boolean isMutable()(Code)(Java Doc) final public Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException(Code)(Java Doc) abstract protected Object nullSafeGetInternal(ResultSet rs, String[] names, Object owner, LobHandler lobHandler) throws SQLException, IOException, HibernateException(Code)(Java Doc) final public void nullSafeSet(PreparedStatement st, Object value, int index) throws HibernateException, SQLException(Code)(Java Doc) abstract protected void nullSafeSetInternal(PreparedStatement ps, int index, Object value, LobCreator lobCreator) throws SQLException, IOException, HibernateException(Code)(Java Doc) public Object replace(Object original, Object target, Object owner) throws HibernateException(Code)(Java Doc)
|
|
|