java.lang.Object | |
↳ | org.springframework.orm.hibernate3.support.AbstractLobType |
Known Direct Subclasses |
Abstract base class for Hibernate UserType implementations that map to LOBs. Retrieves the LobHandler to use from LocalSessionFactoryBean at config time.
For writing LOBs, either an active Spring transaction synchronization or an active JTA transaction (with "jtaTransactionManager" specified on LocalSessionFactoryBean or a Hibernate TransactionManagerLookup configured through the corresponding Hibernate property) is required.
Offers template methods for setting parameters and getting result values, passing in the LobHandler or LobCreator to use.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
logger |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor used by Hibernate: fetches config-time LobHandler and
config-time JTA TransactionManager from LocalSessionFactoryBean.
| |||||||||||
Constructor used for testing: takes an explicit LobHandler
and an explicit JTA TransactionManager (can be
null ). |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This implementation returns the passed-in value as-is.
| |||||||||||
This implementation returns the passed-in value as-is.
| |||||||||||
This implementation returns the passed-in value as-is.
| |||||||||||
This implementation delegates to the Hibernate EqualsHelper.
| |||||||||||
This implementation returns the hashCode of the given objectz.
| |||||||||||
This implementation returns false.
| |||||||||||
This implementation delegates to nullSafeGetInternal,
passing in the LobHandler of this type.
| |||||||||||
This implementation delegates to nullSafeSetInternal,
passing in a transaction-synchronized LobCreator for the
LobHandler of this type.
| |||||||||||
This implementation returns the passed-in original as-is.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Template method to extract a value from the given result set.
| |||||||||||
Template method to set the given parameter value on the given statement.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Constructor used by Hibernate: fetches config-time LobHandler and config-time JTA TransactionManager from LocalSessionFactoryBean.
Constructor used for testing: takes an explicit LobHandler
and an explicit JTA TransactionManager (can be null
).
This implementation returns the passed-in value as-is.
HibernateException |
---|
This implementation returns the passed-in value as-is.
HibernateException |
---|
This implementation returns the passed-in value as-is.
HibernateException |
---|
This implementation delegates to the Hibernate EqualsHelper.
HibernateException |
---|
This implementation returns the hashCode of the given objectz.
HibernateException |
---|
This implementation returns false.
This implementation delegates to nullSafeGetInternal, passing in the LobHandler of this type.
HibernateException | |
---|---|
SQLException |
This implementation delegates to nullSafeSetInternal, passing in a transaction-synchronized LobCreator for the LobHandler of this type.
HibernateException | |
---|---|
SQLException |
This implementation returns the passed-in original as-is.
HibernateException |
---|
Template method to extract a value from the given result set.
rs | the ResultSet to extract from |
---|---|
names | the column names |
owner | the containing entity |
lobHandler | the LobHandler to use |
SQLException | if thrown by JDBC methods |
---|---|
IOException | if thrown by streaming methods |
in case of any other exceptions | |
HibernateException |
Template method to set the given parameter value on the given statement.
ps | the PreparedStatement to set on |
---|---|
index | the statement parameter index |
value | the value to set |
lobCreator | the LobCreator to use |
SQLException | if thrown by JDBC methods |
---|---|
IOException | if thrown by streaming methods |
in case of any other exceptions | |
HibernateException |