public class RevisionTypeType extends java.lang.Object implements UserType, java.io.Serializable
RevisionType enum.| Constructor and Description |
|---|
RevisionTypeType() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
assemble(java.io.Serializable cached,
java.lang.Object owner)
Reconstruct an object from the cacheable representation.
|
java.lang.Object |
deepCopy(java.lang.Object value)
Return a deep copy of the persistent state, stopping at entities and at
collections.
|
java.io.Serializable |
disassemble(java.lang.Object value)
Transform the object into its cacheable representation.
|
boolean |
equals(java.lang.Object x,
java.lang.Object y)
Compare two instances of the class mapped by this type for persistence "equality".
|
int |
hashCode(java.lang.Object x)
Get a hashcode for the instance, consistent with persistence "equality"
|
boolean |
isMutable()
Are objects of this type mutable?
|
RevisionType |
nullSafeGet(java.sql.ResultSet resultSet,
java.lang.String[] names,
SharedSessionContractImplementor session,
java.lang.Object owner)
Retrieve an instance of the mapped class from a JDBC resultset.
|
void |
nullSafeSet(java.sql.PreparedStatement preparedStatement,
java.lang.Object value,
int index,
SharedSessionContractImplementor session)
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)
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()
The class returned by nullSafeGet().
|
int[] |
sqlTypes()
Return the SQL type codes for the columns mapped by this type.
|
public int[] sqlTypes()
UserTypepublic java.lang.Class returnedClass()
UserTypereturnedClass in interface UserTypepublic RevisionType nullSafeGet(java.sql.ResultSet resultSet, java.lang.String[] names, SharedSessionContractImplementor session, java.lang.Object owner) throws HibernateException, java.sql.SQLException
UserTypenullSafeGet in interface UserTyperesultSet - a JDBC result setnames - the column namesowner - the containing entity @return ObjectHibernateExceptionjava.sql.SQLExceptionpublic void nullSafeSet(java.sql.PreparedStatement preparedStatement,
java.lang.Object value,
int index,
SharedSessionContractImplementor session)
throws HibernateException,
java.sql.SQLException
UserTypenullSafeSet in interface UserTypepreparedStatement - a JDBC prepared statementvalue - the object to writeindex - statement parameter indexHibernateExceptionjava.sql.SQLExceptionpublic java.lang.Object deepCopy(java.lang.Object value)
throws HibernateException
UserTypedeepCopy in interface UserTypevalue - the object to be cloned, which may be nullHibernateExceptionpublic boolean isMutable()
UserTypepublic java.lang.Object assemble(java.io.Serializable cached,
java.lang.Object owner)
throws HibernateException
UserTypeassemble in interface UserTypecached - the object to be cachedowner - the owner of the cached objectHibernateExceptionpublic java.io.Serializable disassemble(java.lang.Object value)
throws HibernateException
UserTypedisassemble in interface UserTypevalue - the object to be cachedHibernateExceptionpublic java.lang.Object replace(java.lang.Object original,
java.lang.Object target,
java.lang.Object owner)
throws HibernateException
UserTypereplace in interface UserTypeoriginal - the value from the detached entity being mergedtarget - the value in the managed entityHibernateExceptionpublic int hashCode(java.lang.Object x)
throws HibernateException
UserTypehashCode in interface UserTypeHibernateExceptionpublic boolean equals(java.lang.Object x,
java.lang.Object y)
throws HibernateException
UserTypeequals in interface UserTypeHibernateExceptionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.