|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.type.AbstractType org.hibernate.type.AbstractLobType org.hibernate.type.ByteArrayBlobType
WrappedMaterializedBlobType
@Deprecated public class ByteArrayBlobType
Map a Byte[] into a Blob Experimental
Field Summary |
---|
Fields inherited from class org.hibernate.type.AbstractType |
---|
LEGACY_DEFAULT_SIZE, LEGACY_DICTATED_SIZE |
Constructor Summary | |
---|---|
ByteArrayBlobType()
Deprecated. |
Method Summary | |
---|---|
Object |
deepCopy(Object value,
SessionFactoryImplementor factory)
Deprecated. Return a deep copy of the persistent state, stopping at entities and at collections. |
Object |
fromXMLNode(org.dom4j.Node xml,
Mapping factory)
Deprecated. Parse the XML representation of an instance. |
protected Object |
get(ResultSet rs,
String name)
Deprecated. |
int |
getHashCode(Object x,
SessionFactoryImplementor factory)
Deprecated. Get a hash code, consistent with persistence "equality". |
Class |
getReturnedClass()
Deprecated. 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)
Deprecated. Compare two instances of the class mapped by this type for persistence "equality" (equality of persistent state). |
boolean |
isMutable()
Deprecated. Are objects of this type mutable. |
Object |
replace(Object original,
Object target,
SessionImplementor session,
Object owner,
Map copyCache)
Deprecated. 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. |
protected void |
set(PreparedStatement st,
Object value,
int index,
SessionImplementor session)
Deprecated. |
void |
setToXMLNode(org.dom4j.Node node,
Object value,
SessionFactoryImplementor factory)
Deprecated. A representation of the value to be embedded in an XML element. |
int[] |
sqlTypes(Mapping mapping)
Deprecated. Return the JDBC types codes (per Types ) for the columns mapped by this type. |
boolean[] |
toColumnNullness(Object value,
Mapping mapping)
Deprecated. Given an instance of the type, return an array of boolean, indicating which mapped columns would be null. |
String |
toLoggableString(Object value,
SessionFactoryImplementor factory)
Deprecated. Generate a representation of the value for logging purposes. |
String |
toString(Object val)
Deprecated. |
protected byte[] |
unWrap(Object bytes)
Deprecated. |
protected Object |
wrap(byte[] bytes)
Deprecated. |
Methods inherited from class org.hibernate.type.AbstractLobType |
---|
defaultSizes, dictatedSizes, 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 |
Constructor Detail |
---|
public ByteArrayBlobType()
Method Detail |
---|
public int[] sqlTypes(Mapping mapping)
Type
Types
) 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)
.
mapping
- The mapping object :/
public boolean isEqual(Object x, Object y, SessionFactoryImplementor factory)
Type
isEqual
in interface Type
isEqual
in class AbstractType
x
- The first valuey
- The second valuefactory
- The session factory
public int getHashCode(Object x, SessionFactoryImplementor factory)
Type
hashCode
.
getHashCode
in interface Type
getHashCode
in class AbstractType
x
- The value for which to retrieve a hash codefactory
- The session factory
public Object deepCopy(Object value, SessionFactoryImplementor factory) throws HibernateException
Type
value
- The value to be copiedfactory
- The session factory
HibernateException
- An error from Hibernatepublic Class getReturnedClass()
Type
Type.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.
protected Object get(ResultSet rs, String name) throws SQLException
get
in class AbstractLobType
SQLException
protected void set(PreparedStatement st, Object value, int index, SessionImplementor session) throws SQLException
set
in class AbstractLobType
SQLException
public void setToXMLNode(org.dom4j.Node node, Object value, SessionFactoryImplementor factory) throws HibernateException
Type
node
- The XML node to which to write the valuevalue
- The value to writefactory
- The session factory
HibernateException
- An error from Hibernatepublic String toString(Object val)
public String toLoggableString(Object value, SessionFactoryImplementor factory)
Type
value
- The value to be loggedfactory
- The session factory
public Object fromXMLNode(org.dom4j.Node xml, Mapping factory) throws HibernateException
Type
xml
- The XML node from which to read the valuefactory
- The session factory
mapped class
HibernateException
- An error from Hibernateprotected Object wrap(byte[] bytes)
protected byte[] unWrap(Object bytes)
public boolean isMutable()
Type
public Object replace(Object original, Object target, SessionImplementor session, Object owner, Map copyCache) throws HibernateException
Type
original
- 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 values
HibernateException
- An error from Hibernatepublic boolean[] toColumnNullness(Object value, Mapping mapping)
Type
value
- an instance of the typemapping
- The mapping abstraction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |