org.hibernate.type
MaterializedClobType
@Deprecated public class StringClobType extends java.lang.Object implements UserType, java.io.Serializable
Constructor and Description |
---|
StringClobType()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
assemble(java.io.Serializable cached,
java.lang.Object owner)
Deprecated.
Reconstruct an object from the cacheable representation.
|
java.lang.Object |
deepCopy(java.lang.Object value)
Deprecated.
Return a deep copy of the persistent state, stopping at entities and at
collections.
|
java.io.Serializable |
disassemble(java.lang.Object value)
Deprecated.
Transform the object into its cacheable representation.
|
boolean |
equals(java.lang.Object x,
java.lang.Object y)
Deprecated.
Compare two instances of the class mapped by this type for persistence "equality".
|
int |
hashCode(java.lang.Object x)
Deprecated.
Get a hashcode for the instance, consistent with persistence "equality"
|
boolean |
isMutable()
Deprecated.
Are objects of this type mutable?
|
java.lang.Object |
nullSafeGet(java.sql.ResultSet rs,
java.lang.String[] names,
java.lang.Object owner)
Deprecated.
Retrieve an instance of the mapped class from a JDBC resultset.
|
void |
nullSafeSet(java.sql.PreparedStatement st,
java.lang.Object value,
int index)
Deprecated.
Write an instance of the mapped class to a prepared statement.
|
java.lang.Object |
replace(java.lang.Object original,
java.lang.Object target,
java.lang.Object owner)
Deprecated.
During merge, replace the existing (target) value in the entity we are merging to
with a new (original) value from the detached entity we are merging.
|
java.lang.Class |
returnedClass()
Deprecated.
The class returned by nullSafeGet().
|
int[] |
sqlTypes()
Deprecated.
Return the SQL type codes for the columns mapped by this type.
|
public int[] sqlTypes()
UserType
public java.lang.Class returnedClass()
UserType
returnedClass
in interface UserType
public boolean equals(java.lang.Object x, java.lang.Object y) throws HibernateException
UserType
equals
in interface UserType
HibernateException
public int hashCode(java.lang.Object x) throws HibernateException
UserType
hashCode
in interface UserType
HibernateException
public java.lang.Object nullSafeGet(java.sql.ResultSet rs, java.lang.String[] names, java.lang.Object owner) throws HibernateException, java.sql.SQLException
UserType
nullSafeGet
in interface UserType
rs
- a JDBC result setnames
- the column namesowner
- the containing entityHibernateException
java.sql.SQLException
public void nullSafeSet(java.sql.PreparedStatement st, java.lang.Object value, int index) throws HibernateException, java.sql.SQLException
UserType
nullSafeSet
in interface UserType
st
- a JDBC prepared statementvalue
- the object to writeindex
- statement parameter indexHibernateException
java.sql.SQLException
public java.lang.Object deepCopy(java.lang.Object value) throws HibernateException
UserType
deepCopy
in interface UserType
value
- the object to be cloned, which may be nullHibernateException
public boolean isMutable()
UserType
public java.io.Serializable disassemble(java.lang.Object value) throws HibernateException
UserType
disassemble
in interface UserType
value
- the object to be cachedHibernateException
public java.lang.Object assemble(java.io.Serializable cached, java.lang.Object owner) throws HibernateException
UserType
assemble
in interface UserType
cached
- the object to be cachedowner
- the owner of the cached objectHibernateException
public java.lang.Object replace(java.lang.Object original, java.lang.Object target, java.lang.Object owner) throws HibernateException
UserType
replace
in interface UserType
original
- the value from the detached entity being mergedtarget
- the value in the managed entityHibernateException
Copyright © 2014. All Rights Reserved.