| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.type.AbstractType
org.hibernate.type.AbstractLobType
org.hibernate.type.SerializableToBlobType
public class SerializableToBlobType
| Field Summary | |
|---|---|
| static String | CLASS_NAMEclass name of the serialisable class | 
| Constructor Summary | |
|---|---|
| SerializableToBlobType() | |
| Method Summary | |
|---|---|
|  Object | deepCopy(Object value,
         EntityMode entityMode,
         SessionFactoryImplementor factory)Return a deep copy of the persistent state, stopping at entities and at collections. | 
|  Object | fromXMLNode(org.dom4j.Node xml,
            Mapping factory)Parse the XML representation of an instance. | 
|  Object | get(ResultSet rs,
    String name) | 
|  int | getHashCode(Object x,
            EntityMode entityMode,
            SessionFactoryImplementor session)Get a hash code, consistent with persistence "equality". | 
|  Class | getReturnedClass()The class returned by Type.nullSafeGet(java.sql.ResultSet, java.lang.String[], org.hibernate.engine.SessionImplementor, java.lang.Object)methods. | 
|  boolean | isEqual(Object x,
        Object y,
        EntityMode entityMode,
        SessionFactoryImplementor factory)Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent state). | 
|  boolean | isMutable()Are objects of this type mutable. | 
|  Object | replace(Object original,
        Object target,
        SessionImplementor session,
        Object owner,
        Map copyCache)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. | 
|  void | set(PreparedStatement st,
    Object value,
    int index,
    SessionImplementor session) | 
|  void | setParameterValues(Properties parameters)Gets called by Hibernate to pass the configured type parameters to the implementation. | 
|  void | setToXMLNode(org.dom4j.Node node,
             Object value,
             SessionFactoryImplementor factory)A representation of the value to be embedded in an XML element. | 
|  int[] | sqlTypes(Mapping mapping)Return the JDBC types codes (per Types) for the columns mapped by this type. | 
|  boolean[] | toColumnNullness(Object value,
                 Mapping mapping)Given an instance of the type, return an array of boolean, indicating which mapped columns would be null. | 
|  String | toLoggableString(Object value,
                 SessionFactoryImplementor factory)A representation of the value to be embedded in a log file. | 
| Methods inherited from class org.hibernate.type.AbstractLobType | 
|---|
| getColumnSpan, getHashCode, getName, isDirty, isEqual, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSet | 
| Methods inherited from class org.hibernate.type.AbstractType | 
|---|
| assemble, beforeAssemble, compare, disassemble, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isModified, isSame, isXMLElement, replace, replaceNode, resolve, semiResolve | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String CLASS_NAME
| Constructor Detail | 
|---|
public SerializableToBlobType()
| Method Detail | 
|---|
public int[] sqlTypes(Mapping mapping)
               throws MappingException
TypeTypes) for the columns mapped by this type.
sqlTypes in interface Typemapping - The mapping object :/
MappingException - Generally indicates an issue accessing the passed mapping object.public Class getReturnedClass()
TypeType.nullSafeGet(java.sql.ResultSet, java.lang.String[], org.hibernate.engine.SessionImplementor, java.lang.Object) methods. This is used to  establish the class of an array of
 this type.
getReturnedClass in interface Type
public boolean isEqual(Object x,
                       Object y,
                       EntityMode entityMode,
                       SessionFactoryImplementor factory)
Type
isEqual in interface TypeisEqual in class AbstractTypex - The first valuey - The second valueentityMode - The entity mode of the values.factory - The session factory
public int getHashCode(Object x,
                       EntityMode entityMode,
                       SessionFactoryImplementor session)
Type#hashCode.
getHashCode in interface TypegetHashCode in class AbstractTypex - The value for which to retrieve a hash codeentityMode - The entity mode of the value.session - The session factory
public Object get(ResultSet rs,
                  String name)
           throws SQLException
get in class AbstractLobTypeSQLException
public void set(PreparedStatement st,
                Object value,
                int index,
                SessionImplementor session)
         throws SQLException
set in class AbstractLobTypeSQLException
public void setToXMLNode(org.dom4j.Node node,
                         Object value,
                         SessionFactoryImplementor factory)
                  throws HibernateException
Type
setToXMLNode in interface TypeHibernateException
public String toLoggableString(Object value,
                               SessionFactoryImplementor factory)
                        throws HibernateException
Type
toLoggableString in interface TypeHibernateException
public Object fromXMLNode(org.dom4j.Node xml,
                          Mapping factory)
                   throws HibernateException
Type
fromXMLNode in interface TypeHibernateException
public Object deepCopy(Object value,
                       EntityMode entityMode,
                       SessionFactoryImplementor factory)
                throws HibernateException
Type
deepCopy in interface Typevalue - generally a collection element or entity field
HibernateExceptionpublic boolean isMutable()
Type
isMutable in interface Type
public Object replace(Object original,
                      Object target,
                      SessionImplementor session,
                      Object owner,
                      Map copyCache)
               throws HibernateException
Type
replace in interface Typeoriginal - the value from the detached entity being mergedtarget - the value in the managed entity
HibernateException
public boolean[] toColumnNullness(Object value,
                                  Mapping mapping)
Type
toColumnNullness in interface Typevalue - an instance of the typepublic void setParameterValues(Properties parameters)
ParameterizedType
setParameterValues in interface ParameterizedType| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||