Class RevisionTypeType
- java.lang.Object
-
- org.hibernate.envers.internal.entities.RevisionTypeType
-
- All Implemented Interfaces:
Serializable,org.hibernate.usertype.UserType<RevisionType>
public class RevisionTypeType extends Object implements org.hibernate.usertype.UserType<RevisionType>, Serializable
A hibernate type for theRevisionTypeenum.- Author:
- Adam Warski (adam at warski dot org)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RevisionTypeType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RevisionTypeassemble(Serializable cached, Object owner)RevisionTypedeepCopy(RevisionType value)Serializabledisassemble(RevisionType value)booleanequals(RevisionType x, RevisionType y)intgetSqlType()inthashCode(RevisionType x)booleanisMutable()RevisionTypenullSafeGet(ResultSet rs, int position, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner)voidnullSafeSet(PreparedStatement preparedStatement, RevisionType value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session)RevisionTypereplace(RevisionType original, RevisionType target, Object owner)Class<RevisionType>returnedClass()
-
-
-
Method Detail
-
getSqlType
public int getSqlType()
- Specified by:
getSqlTypein interfaceorg.hibernate.usertype.UserType<RevisionType>
-
returnedClass
public Class<RevisionType> returnedClass()
- Specified by:
returnedClassin interfaceorg.hibernate.usertype.UserType<RevisionType>
-
nullSafeGet
public RevisionType nullSafeGet(ResultSet rs, int position, org.hibernate.engine.spi.SharedSessionContractImplementor session, Object owner) throws SQLException
- Specified by:
nullSafeGetin interfaceorg.hibernate.usertype.UserType<RevisionType>- Throws:
SQLException
-
nullSafeSet
public void nullSafeSet(PreparedStatement preparedStatement, RevisionType value, int index, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.HibernateException, SQLException
- Specified by:
nullSafeSetin interfaceorg.hibernate.usertype.UserType<RevisionType>- Throws:
org.hibernate.HibernateExceptionSQLException
-
deepCopy
public RevisionType deepCopy(RevisionType value) throws org.hibernate.HibernateException
- Specified by:
deepCopyin interfaceorg.hibernate.usertype.UserType<RevisionType>- Throws:
org.hibernate.HibernateException
-
isMutable
public boolean isMutable()
- Specified by:
isMutablein interfaceorg.hibernate.usertype.UserType<RevisionType>
-
assemble
public RevisionType assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException
- Specified by:
assemblein interfaceorg.hibernate.usertype.UserType<RevisionType>- Throws:
org.hibernate.HibernateException
-
disassemble
public Serializable disassemble(RevisionType value) throws org.hibernate.HibernateException
- Specified by:
disassemblein interfaceorg.hibernate.usertype.UserType<RevisionType>- Throws:
org.hibernate.HibernateException
-
replace
public RevisionType replace(RevisionType original, RevisionType target, Object owner) throws org.hibernate.HibernateException
- Specified by:
replacein interfaceorg.hibernate.usertype.UserType<RevisionType>- Throws:
org.hibernate.HibernateException
-
hashCode
public int hashCode(RevisionType x) throws org.hibernate.HibernateException
- Specified by:
hashCodein interfaceorg.hibernate.usertype.UserType<RevisionType>- Throws:
org.hibernate.HibernateException
-
equals
public boolean equals(RevisionType x, RevisionType y) throws org.hibernate.HibernateException
- Specified by:
equalsin interfaceorg.hibernate.usertype.UserType<RevisionType>- Throws:
org.hibernate.HibernateException
-
-