|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface should be implemented by user-defined "types".
A "type" class is not the actual property type - it
is a class that knows how to serialize instances of another
class to and from JDBC.
This interface
for more complex cases,
Type| Method Summary | |
Object |
deepCopy(Object value)
Return a deep copy of the persistent state, stopping at entities and at collections. |
boolean |
equals(Object x,
Object y)
Compare two instances of the class mapped by this type for persistence "equality". |
boolean |
isMutable()
Are objects of this type mutable? |
Object |
nullSafeGet(ResultSet rs,
String[] names,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset. |
void |
nullSafeSet(PreparedStatement st,
Object value,
int index)
Write an instance of the mapped class to a prepared statement. |
Class |
returnedClass()
The class returned by nullSafeGet(). |
int[] |
sqlTypes()
Return the SQL type codes for the columns mapped by this type. |
| Method Detail |
public int[] sqlTypes()
Typespublic Class returnedClass()
public boolean equals(Object x, Object y) throws HibernateException
x - y -
HibernateExceptionpublic Object nullSafeGet(ResultSet rs, String[] names, Object owner) throws HibernateException, SQLException
rs - a JDBC result setnames - the column namesowner - the containing entity
HibernateException
SQLExceptionpublic void nullSafeSet(PreparedStatement st, Object value, int index) throws HibernateException, SQLException
st - a JDBC prepared statementvalue - the object to writeindex - statement parameter index
HibernateException
SQLExceptionpublic Object deepCopy(Object value) throws HibernateException
HibernateExceptionpublic boolean isMutable()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||