java.lang.Object | ||
↳ | org.springframework.orm.hibernate3.support.AbstractLobType | |
↳ | org.springframework.orm.hibernate3.support.ClobStringType |
Hibernate UserType implementation for Strings that get mapped to CLOBs. Retrieves the LobHandler to use from LocalSessionFactoryBean at config time.
Particularly useful for storing Strings with more than 4000 characters in an Oracle database (only possible via CLOBs), in combination with OracleLobHandler.
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 CLOB: For databases like MySQL and MS SQL Server, any large enough character type will work.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.springframework.orm.hibernate3.support.AbstractLobType
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor used by Hibernate: fetches config-time LobHandler and
config-time JTA TransactionManager from LocalSessionFactoryBean.
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor used for testing: takes an explicit LobHandler
and an explicit JTA TransactionManager (can be
null ). |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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
org.springframework.orm.hibernate3.support.AbstractLobType
| |||||||||||
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
).
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 |
---|
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 |
---|