|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.test.annotations.type.MyOidType
public class MyOidType
Field Summary | |
---|---|
static String[] |
PROPERTY_NAMES
|
static Type[] |
TYPES
|
Constructor Summary | |
---|---|
MyOidType()
|
Method Summary | |
---|---|
Object |
assemble(Serializable cached,
SessionImplementor aSessionImplementor,
Object aObject)
Reconstruct an object from the cacheable representation. |
Object |
deepCopy(Object aObject)
Return a deep copy of the persistent state, stopping at entities and at collections. |
Serializable |
disassemble(Object value,
SessionImplementor aSessionImplementor)
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". |
String[] |
getPropertyNames()
Get the "property names" that may be used in a query. |
Type[] |
getPropertyTypes()
Get the corresponding "property types". |
Object |
getPropertyValue(Object aObject,
int i)
Get the value of a property. |
int |
hashCode(Object aObject)
Get a hashcode for the instance, consistent with persistence "equality" |
boolean |
isMutable()
Check if objects of this type mutable. |
Object |
nullSafeGet(ResultSet aResultSet,
String[] names,
SessionImplementor aSessionImplementor,
Object aObject)
Retrieve an instance of the mapped class from a JDBC resultset. |
void |
nullSafeSet(PreparedStatement aPreparedStatement,
Object value,
int index,
SessionImplementor aSessionImplementor)
Write an instance of the mapped class to a prepared statement. |
Object |
replace(Object original,
Object target,
SessionImplementor aSessionImplementor,
Object aObject2)
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(). |
void |
setPropertyValue(Object aObject,
int i,
Object aObject1)
Set the value of a property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String[] PROPERTY_NAMES
public static final Type[] TYPES
Constructor Detail |
---|
public MyOidType()
Method Detail |
---|
public String[] getPropertyNames()
CompositeUserType
getPropertyNames
in interface CompositeUserType
public Type[] getPropertyTypes()
CompositeUserType
getPropertyTypes
in interface CompositeUserType
public Object getPropertyValue(Object aObject, int i) throws HibernateException
CompositeUserType
getPropertyValue
in interface CompositeUserType
aObject
- an instance of class mapped by this "type"
HibernateException
public void setPropertyValue(Object aObject, int i, Object aObject1) throws HibernateException
CompositeUserType
setPropertyValue
in interface CompositeUserType
aObject
- an instance of class mapped by this "type"aObject1
- the value to set
HibernateException
public Class returnedClass()
CompositeUserType
returnedClass
in interface CompositeUserType
public boolean equals(Object x, Object y) throws HibernateException
CompositeUserType
equals
in interface CompositeUserType
HibernateException
public int hashCode(Object aObject) throws HibernateException
CompositeUserType
hashCode
in interface CompositeUserType
HibernateException
public Object nullSafeGet(ResultSet aResultSet, String[] names, SessionImplementor aSessionImplementor, Object aObject) throws HibernateException, SQLException
CompositeUserType
nullSafeGet
in interface CompositeUserType
aResultSet
- a JDBC result setnames
- the column namesaObject
- the containing entity
HibernateException
SQLException
public void nullSafeSet(PreparedStatement aPreparedStatement, Object value, int index, SessionImplementor aSessionImplementor) throws HibernateException, SQLException
CompositeUserType
nullSafeSet
in interface CompositeUserType
aPreparedStatement
- a JDBC prepared statementvalue
- the object to writeindex
- statement parameter index
HibernateException
SQLException
public Object deepCopy(Object aObject) throws HibernateException
CompositeUserType
deepCopy
in interface CompositeUserType
aObject
- generally a collection element or entity field
HibernateException
public boolean isMutable()
CompositeUserType
isMutable
in interface CompositeUserType
public Serializable disassemble(Object value, SessionImplementor aSessionImplementor) throws HibernateException
CompositeUserType
disassemble
in interface CompositeUserType
value
- the object to be cached
HibernateException
public Object assemble(Serializable cached, SessionImplementor aSessionImplementor, Object aObject) throws HibernateException
CompositeUserType
assemble
in interface CompositeUserType
cached
- the object to be cachedaObject
- the owner of the cached object
HibernateException
public Object replace(Object original, Object target, SessionImplementor aSessionImplementor, Object aObject2) throws HibernateException
CompositeUserType
replace
in interface CompositeUserType
HibernateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |