org.hibernate.type

Class MetaType

Implemented Interfaces:
Serializable, Type

public class MetaType
extends AbstractType

Author:
Gavin King

Constructor Summary

MetaType(Map values, Type baseType)

Method Summary

Object
deepCopy(Object value, EntityMode entityMode, SessionFactoryImplementor factory)
Object
fromXMLNode(Node xml, Mapping factory)
Object
fromXMLString(String xml, Mapping factory)
int
getColumnSpan(Mapping mapping)
String
getName()
Class
getReturnedClass()
boolean
isDirty(Object old, Object current, boolean[] checkable, SessionImplementor session)
boolean
isMutable()
Object
nullSafeGet(ResultSet rs, String name, SessionImplementor session, Object owner)
Object
nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner)
void
nullSafeSet(PreparedStatement st, Object value, int index, boolean[] settable, SessionImplementor session)
void
nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session)
Object
replace(Object original, Object target, SessionImplementor session, Object owner, Map copyCache)
void
setToXMLNode(Node node, Object value, SessionFactoryImplementor factory)
int[]
sqlTypes(Mapping mapping)
boolean[]
toColumnNullness(Object value, Mapping mapping)
String
toLoggableString(Object value, SessionFactoryImplementor factory)
String
toXMLString(Object value, SessionFactoryImplementor factory)

Methods inherited from class org.hibernate.type.AbstractType

assemble, beforeAssemble, compare, disassemble, getHashCode, getHashCode, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isEqual, isEqual, isModified, isSame, isXMLElement, replace, replaceNode, resolve, semiResolve

Constructor Details

MetaType

public MetaType(Map values,
                Type baseType)

Method Details

deepCopy

public Object deepCopy(Object value,
                       EntityMode entityMode,
                       SessionFactoryImplementor factory)
            throws HibernateException
Specified by:
deepCopy in interface Type

fromXMLNode

public Object fromXMLNode(Node xml,
                          Mapping factory)
            throws HibernateException
Specified by:
fromXMLNode in interface Type

fromXMLString

public Object fromXMLString(String xml,
                            Mapping factory)
            throws HibernateException

getColumnSpan

public int getColumnSpan(Mapping mapping)
            throws MappingException
Specified by:
getColumnSpan in interface Type

getName

public String getName()
Specified by:
getName in interface Type

getReturnedClass

public Class getReturnedClass()
Specified by:
getReturnedClass in interface Type

isDirty

public boolean isDirty(Object old,
                       Object current,
                       boolean[] checkable,
                       SessionImplementor session)
            throws HibernateException
Specified by:
isDirty in interface Type

isMutable

public boolean isMutable()
Specified by:
isMutable in interface Type

nullSafeGet

public Object nullSafeGet(ResultSet rs,
                          String name,
                          SessionImplementor session,
                          Object owner)
            throws HibernateException,
                   SQLException
Specified by:
nullSafeGet in interface Type

nullSafeGet

public Object nullSafeGet(ResultSet rs,
                          String[] names,
                          SessionImplementor session,
                          Object owner)
            throws HibernateException,
                   SQLException
Specified by:
nullSafeGet in interface Type

nullSafeSet

public void nullSafeSet(PreparedStatement st,
                        Object value,
                        int index,
                        boolean[] settable,
                        SessionImplementor session)
            throws HibernateException,
                   SQLException
Specified by:
nullSafeSet in interface Type

nullSafeSet

public void nullSafeSet(PreparedStatement st,
                        Object value,
                        int index,
                        SessionImplementor session)
            throws HibernateException,
                   SQLException
Specified by:
nullSafeSet in interface Type

replace

public Object replace(Object original,
                      Object target,
                      SessionImplementor session,
                      Object owner,
                      Map copyCache)
Specified by:
replace in interface Type

setToXMLNode

public void setToXMLNode(Node node,
                         Object value,
                         SessionFactoryImplementor factory)
            throws HibernateException
Specified by:
setToXMLNode in interface Type

sqlTypes

public int[] sqlTypes(Mapping mapping)
            throws MappingException
Specified by:
sqlTypes in interface Type

toColumnNullness

public boolean[] toColumnNullness(Object value,
                                  Mapping mapping)
Specified by:
toColumnNullness in interface Type

toLoggableString

public String toLoggableString(Object value,
                               SessionFactoryImplementor factory)
            throws HibernateException
Specified by:
toLoggableString in interface Type

toXMLString

public String toXMLString(Object value,
                          SessionFactoryImplementor factory)
            throws HibernateException