类 BlobSerializableType
- java.lang.Object
- org.springframework.orm.hibernate3.support.AbstractLobType
- org.springframework.orm.hibernate3.support.BlobSerializableType
- 所有已实现的接口:
UserType
@Deprecated public class BlobSerializableType extends AbstractLobType
已过时。as of Spring 4.3, in favor of Hibernate 4.x/5.xHibernate UserType implementation for arbitrary objects that get serialized 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.
- 从以下版本开始:
- 1.2
- 作者:
- Juergen Hoeller
- 另请参阅:
LocalSessionFactoryBean.setLobHandler(org.springframework.jdbc.support.lob.LobHandler)
字段概要
从类继承的字段 org.springframework.orm.hibernate3.support.AbstractLobType
logger
构造器概要
构造器 限定符 构造器 说明 BlobSerializableType()
已过时。Constructor used by Hibernate: fetches config-time LobHandler and config-time JTA TransactionManager from LocalSessionFactoryBean.protected
BlobSerializableType(LobHandler lobHandler, TransactionManager jtaTransactionManager)
已过时。Constructor used for testing: takes an explicit LobHandler and an explicit JTA TransactionManager (can benull
).
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 Object
deepCopy(Object value)
已过时。This implementation returns the passed-in value as-is.boolean
isMutable()
已过时。This implementation returns false.protected Object
nullSafeGetInternal(ResultSet rs, String[] names, Object owner, LobHandler lobHandler)
已过时。Template method to extract a value from the given result set.protected void
nullSafeSetInternal(PreparedStatement ps, int index, Object value, LobCreator lobCreator)
已过时。Template method to set the given parameter value on the given statement.Class<?>
returnedClass()
已过时。int[]
sqlTypes()
已过时。从类继承的方法 org.springframework.orm.hibernate3.support.AbstractLobType
assemble, disassemble, equals, hashCode, nullSafeGet, nullSafeSet, replace
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.hibernate.usertype.UserType
nullSafeGet, nullSafeSet
构造器详细资料
BlobSerializableType
public BlobSerializableType()
已过时。Constructor used by Hibernate: fetches config-time LobHandler and config-time JTA TransactionManager from LocalSessionFactoryBean.
BlobSerializableType
protected BlobSerializableType(LobHandler lobHandler, TransactionManager jtaTransactionManager)
已过时。Constructor used for testing: takes an explicit LobHandler and an explicit JTA TransactionManager (can benull
).
方法详细资料
sqlTypes
public int[] sqlTypes()
已过时。
returnedClass
public Class<?> returnedClass()
已过时。
isMutable
public boolean isMutable()
已过时。从类复制的说明:AbstractLobType
This implementation returns false.- 指定者:
isMutable
在接口中UserType
- 覆盖:
isMutable
在类中AbstractLobType
deepCopy
public Object deepCopy(Object value) throws HibernateException
已过时。从类复制的说明:AbstractLobType
This implementation returns the passed-in value as-is.- 指定者:
deepCopy
在接口中UserType
- 覆盖:
deepCopy
在类中AbstractLobType
- 抛出:
HibernateException
nullSafeGetInternal
protected Object nullSafeGetInternal(ResultSet rs, String[] names, Object owner, LobHandler lobHandler) throws SQLException, IOException, HibernateException
已过时。从类复制的说明:AbstractLobType
Template method to extract a value from the given result set.- 指定者:
nullSafeGetInternal
在类中AbstractLobType
- 参数:
rs
- the ResultSet to extract fromnames
- the column namesowner
- the containing entitylobHandler
- the LobHandler to use- 返回:
- the extracted value
- 抛出:
SQLException
- if thrown by JDBC methodsIOException
- if thrown by streaming methodsHibernateException
- in case of any other exceptions
nullSafeSetInternal
protected void nullSafeSetInternal(PreparedStatement ps, int index, Object value, LobCreator lobCreator) throws SQLException, IOException
已过时。从类复制的说明:AbstractLobType
Template method to set the given parameter value on the given statement.- 指定者:
nullSafeSetInternal
在类中AbstractLobType
- 参数:
ps
- the PreparedStatement to set onindex
- the statement parameter indexvalue
- the value to setlobCreator
- the LobCreator to use- 抛出:
SQLException
- if thrown by JDBC methodsIOException
- if thrown by streaming methods