Class HibernateFileIdType
- java.lang.Object
-
- com.tagtraum.beatunes.library.type.HibernateFileIdType
-
- All Implemented Interfaces:
org.hibernate.usertype.CompositeUserType
public class HibernateFileIdType extends Object implements org.hibernate.usertype.CompositeUserType
HibernateFileId type.- Author:
- Hendrik Schreiber
-
-
Constructor Summary
Constructors Constructor Description HibernateFileIdType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
assemble(Serializable serializable, org.hibernate.engine.spi.SessionImplementor sessionImplementor, Object o)
Object
deepCopy(Object object)
Serializable
disassemble(Object object, org.hibernate.engine.spi.SessionImplementor sessionImplementor)
boolean
equals(Object object, Object object1)
String[]
getPropertyNames()
org.hibernate.type.Type[]
getPropertyTypes()
Object
getPropertyValue(Object component, int property)
int
hashCode(Object object)
boolean
isMutable()
Object
nullSafeGet(ResultSet resultSet, String[] strings, org.hibernate.engine.spi.SessionImplementor sessionImplementor, Object object)
void
nullSafeSet(PreparedStatement preparedStatement, Object object, int index, org.hibernate.engine.spi.SessionImplementor sessionImplementor)
Object
replace(Object o, Object o1, org.hibernate.engine.spi.SessionImplementor sessionImplementor, Object o2)
Class
returnedClass()
void
setPropertyValue(Object component, int property, Object value)
-
-
-
Method Detail
-
getPropertyTypes
public org.hibernate.type.Type[] getPropertyTypes()
- Specified by:
getPropertyTypes
in interfaceorg.hibernate.usertype.CompositeUserType
-
getPropertyNames
public String[] getPropertyNames()
- Specified by:
getPropertyNames
in interfaceorg.hibernate.usertype.CompositeUserType
-
returnedClass
public Class returnedClass()
- Specified by:
returnedClass
in interfaceorg.hibernate.usertype.CompositeUserType
-
equals
public boolean equals(Object object, Object object1) throws org.hibernate.HibernateException
- Specified by:
equals
in interfaceorg.hibernate.usertype.CompositeUserType
- Throws:
org.hibernate.HibernateException
-
hashCode
public int hashCode(Object object) throws org.hibernate.HibernateException
- Specified by:
hashCode
in interfaceorg.hibernate.usertype.CompositeUserType
- Throws:
org.hibernate.HibernateException
-
nullSafeGet
public Object nullSafeGet(ResultSet resultSet, String[] strings, org.hibernate.engine.spi.SessionImplementor sessionImplementor, Object object) throws org.hibernate.HibernateException, SQLException
- Specified by:
nullSafeGet
in interfaceorg.hibernate.usertype.CompositeUserType
- Throws:
org.hibernate.HibernateException
SQLException
-
nullSafeSet
public void nullSafeSet(PreparedStatement preparedStatement, Object object, int index, org.hibernate.engine.spi.SessionImplementor sessionImplementor) throws org.hibernate.HibernateException, SQLException
- Specified by:
nullSafeSet
in interfaceorg.hibernate.usertype.CompositeUserType
- Throws:
org.hibernate.HibernateException
SQLException
-
deepCopy
public Object deepCopy(Object object) throws org.hibernate.HibernateException
- Specified by:
deepCopy
in interfaceorg.hibernate.usertype.CompositeUserType
- Throws:
org.hibernate.HibernateException
-
isMutable
public boolean isMutable()
- Specified by:
isMutable
in interfaceorg.hibernate.usertype.CompositeUserType
-
disassemble
public Serializable disassemble(Object object, org.hibernate.engine.spi.SessionImplementor sessionImplementor) throws org.hibernate.HibernateException
- Specified by:
disassemble
in interfaceorg.hibernate.usertype.CompositeUserType
- Throws:
org.hibernate.HibernateException
-
assemble
public Object assemble(Serializable serializable, org.hibernate.engine.spi.SessionImplementor sessionImplementor, Object o) throws org.hibernate.HibernateException
- Specified by:
assemble
in interfaceorg.hibernate.usertype.CompositeUserType
- Throws:
org.hibernate.HibernateException
-
replace
public Object replace(Object o, Object o1, org.hibernate.engine.spi.SessionImplementor sessionImplementor, Object o2) throws org.hibernate.HibernateException
- Specified by:
replace
in interfaceorg.hibernate.usertype.CompositeUserType
- Throws:
org.hibernate.HibernateException
-
getPropertyValue
public Object getPropertyValue(Object component, int property) throws org.hibernate.HibernateException
- Specified by:
getPropertyValue
in interfaceorg.hibernate.usertype.CompositeUserType
- Throws:
org.hibernate.HibernateException
-
-