|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.envers.entities.RevisionTypeType
public class RevisionTypeType
A hibernate type for the RevisionType
enum.
Constructor Summary | |
---|---|
RevisionTypeType()
|
Method Summary | |
---|---|
Object |
assemble(Serializable cached,
Object owner)
Reconstruct an object from the cacheable representation. |
Object |
deepCopy(Object value)
Return a deep copy of the persistent state, stopping at entities and at collections. |
Serializable |
disassemble(Object value)
Transform the object into its cacheable representation. |
boolean |
equals(Object x,
Object y)
Compare two instances of the class mapped by this type for persistence "equality". |
int |
hashCode(Object x)
Get a hashcode for the instance, consistent with persistence "equality" |
boolean |
isMutable()
Are objects of this type mutable? |
RevisionType |
nullSafeGet(ResultSet resultSet,
String[] names,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset. |
void |
nullSafeSet(PreparedStatement preparedStatement,
Object value,
int index)
Write an instance of the mapped class to a prepared statement. |
Object |
replace(Object original,
Object target,
Object owner)
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. |
Class |
returnedClass()
The class returned by nullSafeGet(). |
int[] |
sqlTypes()
Return the SQL type codes for the columns mapped by this type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RevisionTypeType()
Method Detail |
---|
public int[] sqlTypes()
UserType
sqlTypes
in interface UserType
Types
public Class returnedClass()
UserType
returnedClass
in interface UserType
public RevisionType nullSafeGet(ResultSet resultSet, String[] names, Object owner) throws HibernateException, SQLException
UserType
nullSafeGet
in interface UserType
resultSet
- a JDBC result setnames
- the column namesowner
- the containing entity
HibernateException
SQLException
public void nullSafeSet(PreparedStatement preparedStatement, Object value, int index) throws HibernateException, SQLException
UserType
nullSafeSet
in interface UserType
preparedStatement
- a JDBC prepared statementvalue
- the object to writeindex
- statement parameter index
HibernateException
SQLException
public Object deepCopy(Object value) throws HibernateException
UserType
deepCopy
in interface UserType
value
- the object to be cloned, which may be null
HibernateException
public boolean isMutable()
UserType
isMutable
in interface UserType
public Object assemble(Serializable cached, Object owner) throws HibernateException
UserType
assemble
in interface UserType
cached
- the object to be cachedowner
- the owner of the cached object
HibernateException
public Serializable disassemble(Object value) throws HibernateException
UserType
disassemble
in interface UserType
value
- the object to be cached
HibernateException
public Object replace(Object original, Object target, Object owner) throws HibernateException
UserType
replace
in interface UserType
original
- the value from the detached entity being mergedtarget
- the value in the managed entity
HibernateException
public int hashCode(Object x) throws HibernateException
UserType
hashCode
in interface UserType
HibernateException
public boolean equals(Object x, Object y) throws HibernateException
UserType
equals
in interface UserType
HibernateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |