public class SerializableToBlobType extends AbstractLobType implements ParameterizedType
| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_NAME
class name of the serialisable class
|
LEGACY_DEFAULT_SIZE, LEGACY_DICTATED_SIZE| Constructor and Description |
|---|
SerializableToBlobType() |
| Modifier and Type | Method and Description |
|---|---|
Object |
deepCopy(Object value,
SessionFactoryImplementor factory)
Return a deep copy of the persistent state, stopping at entities and at collections.
|
Object |
fromXMLNode(Node xml,
Mapping factory)
Parse the XML representation of an instance.
|
Object |
get(ResultSet rs,
String name) |
int |
getHashCode(Object x,
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.spi.SessionImplementor, java.lang.Object) methods. |
boolean |
isEqual(Object x,
Object y,
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(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)
Generate a representation of the value for logging purposes.
|
defaultSizes, dictatedSizes, getColumnSpan, getHashCode, getName, isDirty, isEqual, nullSafeGet, nullSafeGet, nullSafeSet, nullSafeSetassemble, beforeAssemble, compare, disassemble, getSemiResolvedType, hydrate, isAnyType, isAssociationType, isCollectionType, isComponentType, isDirty, isEntityType, isModified, isSame, isXMLElement, replace, replaceNode, resolve, semiResolvepublic static final String CLASS_NAME
public int[] sqlTypes(Mapping mapping) throws MappingException
TypeTypes) for the columns mapped by this type.
NOTE: The number of elements in this array matches the return from Type.getColumnSpan(org.hibernate.engine.spi.Mapping).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.spi.SessionImplementor, java.lang.Object) methods. This is used to establish the class of an array of
this type.getReturnedClass in interface Typepublic boolean isEqual(Object x, Object y, SessionFactoryImplementor factory)
TypeisEqual in interface TypeisEqual in class AbstractTypex - The first valuey - The second valuefactory - The session factorypublic int getHashCode(Object x, SessionFactoryImplementor session)
TypehashCode.getHashCode in interface TypegetHashCode in class AbstractTypex - The value for which to retrieve a hash codesession - The session factorypublic Object get(ResultSet rs, String name) throws SQLException
get in class AbstractLobTypeSQLExceptionpublic void set(PreparedStatement st, Object value, int index, SessionImplementor session) throws SQLException
set in class AbstractLobTypeSQLExceptionpublic void setToXMLNode(Node node, Object value, SessionFactoryImplementor factory) throws HibernateException
TypesetToXMLNode in interface Typenode - The XML node to which to write the valuevalue - The value to writefactory - The session factoryHibernateException - An error from Hibernatepublic String toLoggableString(Object value, SessionFactoryImplementor factory) throws HibernateException
TypetoLoggableString in interface Typevalue - The value to be loggedfactory - The session factoryHibernateException - An error from Hibernatepublic Object fromXMLNode(Node xml, Mapping factory) throws HibernateException
TypefromXMLNode in interface Typexml - The XML node from which to read the valuefactory - The session factorymapped classHibernateException - An error from Hibernatepublic Object deepCopy(Object value, SessionFactoryImplementor factory) throws HibernateException
TypedeepCopy in interface Typevalue - The value to be copiedfactory - The session factoryHibernateException - An error from Hibernatepublic boolean isMutable()
Typepublic Object replace(Object original, Object target, SessionImplementor session, Object owner, Map copyCache) throws HibernateException
Typereplace in interface Typeoriginal - the value from the detached entity being mergedtarget - the value in the managed entitysession - The originating sessionowner - The owner of the valuecopyCache - The cache of already copied/replaced valuesHibernateException - An error from Hibernatepublic boolean[] toColumnNullness(Object value, Mapping mapping)
TypetoColumnNullness in interface Typevalue - an instance of the typemapping - The mapping abstractionpublic void setParameterValues(Properties parameters)
ParameterizedTypesetParameterValues in interface ParameterizedTypeCopyright © 2012 JBoss by Red Hat. All Rights Reserved.