|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.hibernate.type.AbstractType net.sf.hibernate.type.MetaType
Constructor Summary | |
MetaType(Map values,
Type baseType)
|
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", ie. |
Object |
fromString(String xml)
Parse the XML representation of an instance. |
int |
getColumnSpan(Mapping mapping)
How many columns are used to persist this type. |
String |
getName()
Returns the abbreviated name of the type. |
Class |
getReturnedClass()
The class returned by nullSafeGet() methods. |
boolean |
hasNiceEquals()
Does this type implement a well-behaved equals() method. |
boolean |
isMutable()
Are objects of this type mutable. |
Object |
nullSafeGet(ResultSet rs,
String[] names,
SessionImplementor session,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset. |
Object |
nullSafeGet(ResultSet rs,
String name,
SessionImplementor session,
Object owner)
Retrieve an instance of the mapped class from a JDBC resultset. |
void |
nullSafeSet(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Write an instance of the mapped class to a prepared statement. |
int[] |
sqlTypes(Mapping mapping)
Return the SQL type codes for the columns mapped by this type. |
String |
toString(Object value,
SessionFactoryImplementor factory)
A representation of the value to be embedded in an XML element. |
Methods inherited from class net.sf.hibernate.type.AbstractType |
assemble, copy, disassemble, equals, hashCode, hydrate, isAssociationType, isComponentType, isDirty, isEntityType, isModified, isObjectType, isPersistentCollectionType, resolveIdentifier |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MetaType(Map values, Type baseType)
Method Detail |
public int[] sqlTypes(Mapping mapping) throws MappingException
Type
MappingException
Types
public int getColumnSpan(Mapping mapping) throws MappingException
Type
MappingException
public Class getReturnedClass()
Type
public boolean equals(Object x, Object y) throws HibernateException
Type
x
- y
-
HibernateException
public Object nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException
Type
rs
- names
- the column namessession
- owner
- the parent entity
HibernateException
SQLException
alternative, 2-phase property initialization
public Object nullSafeGet(ResultSet rs, String name, SessionImplementor session, Object owner) throws HibernateException, SQLException
Type
rs
- name
- the column namesession
- owner
- the parent entity
SQLException
HibernateException
public void nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session) throws HibernateException, SQLException
Type
st
- value
- the object to writeindex
- statement parameter indexsession
-
SQLException
HibernateException
public String toString(Object value, SessionFactoryImplementor factory) throws HibernateException
Type
value
- factory
-
HibernateException
public Object fromString(String xml) throws HibernateException
Type
xml
-
HibernateException
public String getName()
Type
public Object deepCopy(Object value) throws HibernateException
Type
value
- generally a collection element or entity field
HibernateException
public boolean isMutable()
Type
public boolean hasNiceEquals()
Type
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |