| java.lang.Object org.springframework.orm.hibernate3.support.AbstractLobType
All known Subclasses: org.springframework.orm.hibernate3.support.BlobByteArrayType, org.springframework.orm.hibernate3.support.ClobStringType, org.springframework.orm.hibernate3.support.BlobSerializableType, org.springframework.orm.hibernate3.support.BlobStringType,
Field Summary | |
final protected Log | logger |
Constructor Summary | |
protected | AbstractLobType() Constructor used by Hibernate: fetches config-time LobHandler and
config-time JTA TransactionManager from LocalSessionFactoryBean. | protected | AbstractLobType(LobHandler lobHandler, TransactionManager jtaTransactionManager) Constructor used for testing: takes an explicit LobHandler
and an explicit JTA TransactionManager (can be null ). |
Method Summary | |
public Object | assemble(Serializable cached, Object owner) This implementation returns the passed-in value as-is. | public Object | deepCopy(Object value) This implementation returns the passed-in value as-is. | public Serializable | disassemble(Object value) This implementation returns the passed-in value as-is. | public boolean | equals(Object x, Object y) This implementation delegates to the Hibernate EqualsHelper. | public int | hashCode(Object x) This implementation returns the hashCode of the given objectz. | public boolean | isMutable() This implementation returns false. | final public Object | nullSafeGet(ResultSet rs, String[] names, Object owner) This implementation delegates to nullSafeGetInternal,
passing in the LobHandler of this type. | abstract protected Object | nullSafeGetInternal(ResultSet rs, String[] names, Object owner, LobHandler lobHandler) Template method to extract a value from the given result set. | final public void | nullSafeSet(PreparedStatement st, Object value, int index) This implementation delegates to nullSafeSetInternal,
passing in a transaction-synchronized LobCreator for the
LobHandler of this type. | abstract protected void | nullSafeSetInternal(PreparedStatement ps, int index, Object value, LobCreator lobCreator) Template method to set the given parameter value on the given statement. | public Object | replace(Object original, Object target, Object owner) This implementation returns the passed-in original as-is. |
logger | final protected Log logger(Code) | | |
AbstractLobType | protected AbstractLobType(LobHandler lobHandler, TransactionManager jtaTransactionManager)(Code) | | Constructor used for testing: takes an explicit LobHandler
and an explicit JTA TransactionManager (can be null ).
|
assemble | public Object assemble(Serializable cached, Object owner) throws HibernateException(Code) | | This implementation returns the passed-in value as-is.
|
deepCopy | public Object deepCopy(Object value) throws HibernateException(Code) | | This implementation returns the passed-in value as-is.
|
disassemble | public Serializable disassemble(Object value) throws HibernateException(Code) | | This implementation returns the passed-in value as-is.
|
equals | public boolean equals(Object x, Object y) throws HibernateException(Code) | | This implementation delegates to the Hibernate EqualsHelper.
See Also: org.hibernate.util.EqualsHelper.equals |
hashCode | public int hashCode(Object x) throws HibernateException(Code) | | This implementation returns the hashCode of the given objectz.
|
isMutable | public boolean isMutable()(Code) | | This implementation returns false.
|
nullSafeGetInternal | abstract protected Object nullSafeGetInternal(ResultSet rs, String[] names, Object owner, LobHandler lobHandler) throws SQLException, IOException, HibernateException(Code) | | Template method to extract a value from the given result set.
Parameters: rs - the ResultSet to extract from Parameters: names - the column names Parameters: owner - the containing entity Parameters: lobHandler - the LobHandler to use the extracted value throws: SQLException - if thrown by JDBC methods throws: IOException - if thrown by streaming methods throws: HibernateException - in case of any other exceptions |
nullSafeSetInternal | abstract protected void nullSafeSetInternal(PreparedStatement ps, int index, Object value, LobCreator lobCreator) throws SQLException, IOException, HibernateException(Code) | | Template method to set the given parameter value on the given statement.
Parameters: ps - the PreparedStatement to set on Parameters: index - the statement parameter index Parameters: value - the value to set Parameters: lobCreator - the LobCreator to use throws: SQLException - if thrown by JDBC methods throws: IOException - if thrown by streaming methods throws: HibernateException - in case of any other exceptions |
replace | public Object replace(Object original, Object target, Object owner) throws HibernateException(Code) | | This implementation returns the passed-in original as-is.
|
|
|