org.hibernate.type
Class ByteArrayBlobType
java.lang.Object
org.hibernate.type.AbstractType
org.hibernate.type.AbstractLobType
org.hibernate.type.ByteArrayBlobType
- All Implemented Interfaces:
- Serializable, org.hibernate.type.Type
- Direct Known Subclasses:
- PrimitiveByteArrayBlobType
public class ByteArrayBlobType
- extends AbstractLobType
Map a Byte[] into a Blob
Experimental
- Author:
- Emmanuel Bernard
- See Also:
- Serialized Form
Method Summary |
Object |
deepCopy(Object value,
org.hibernate.EntityMode entityMode,
org.hibernate.engine.SessionFactoryImplementor factory)
|
Object |
fromXMLNode(org.dom4j.Node xml,
org.hibernate.engine.Mapping factory)
|
protected Object |
get(ResultSet rs,
String name)
|
int |
getHashCode(Object x,
org.hibernate.EntityMode entityMode,
org.hibernate.engine.SessionFactoryImplementor factory)
|
Class |
getReturnedClass()
|
boolean |
isEqual(Object x,
Object y,
org.hibernate.EntityMode entityMode,
org.hibernate.engine.SessionFactoryImplementor factory)
|
boolean |
isMutable()
|
Object |
replace(Object original,
Object target,
org.hibernate.engine.SessionImplementor session,
Object owner,
Map copyCache)
|
protected void |
set(PreparedStatement st,
Object value,
int index,
org.hibernate.engine.SessionImplementor session)
|
void |
setToXMLNode(org.dom4j.Node node,
Object value,
org.hibernate.engine.SessionFactoryImplementor factory)
|
int[] |
sqlTypes(org.hibernate.engine.Mapping mapping)
|
boolean[] |
toColumnNullness(Object value,
org.hibernate.engine.Mapping mapping)
|
String |
toLoggableString(Object value,
org.hibernate.engine.SessionFactoryImplementor factory)
|
String |
toString(Object val)
|
protected byte[] |
unWrap(Object bytes)
|
protected Object |
wrap(byte[] bytes)
|
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 |
ByteArrayBlobType
public ByteArrayBlobType()
sqlTypes
public int[] sqlTypes(org.hibernate.engine.Mapping mapping)
throws org.hibernate.MappingException
- Throws:
org.hibernate.MappingException
isEqual
public boolean isEqual(Object x,
Object y,
org.hibernate.EntityMode entityMode,
org.hibernate.engine.SessionFactoryImplementor factory)
- Specified by:
isEqual
in interface org.hibernate.type.Type
- Overrides:
isEqual
in class org.hibernate.type.AbstractType
getHashCode
public int getHashCode(Object x,
org.hibernate.EntityMode entityMode,
org.hibernate.engine.SessionFactoryImplementor factory)
- Specified by:
getHashCode
in interface org.hibernate.type.Type
- Overrides:
getHashCode
in class org.hibernate.type.AbstractType
deepCopy
public Object deepCopy(Object value,
org.hibernate.EntityMode entityMode,
org.hibernate.engine.SessionFactoryImplementor factory)
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
getReturnedClass
public Class getReturnedClass()
get
protected Object get(ResultSet rs,
String name)
throws SQLException
- Specified by:
get
in class AbstractLobType
- Throws:
SQLException
set
protected void set(PreparedStatement st,
Object value,
int index,
org.hibernate.engine.SessionImplementor session)
throws SQLException
- Specified by:
set
in class AbstractLobType
- Throws:
SQLException
setToXMLNode
public void setToXMLNode(org.dom4j.Node node,
Object value,
org.hibernate.engine.SessionFactoryImplementor factory)
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
toString
public String toString(Object val)
toLoggableString
public String toLoggableString(Object value,
org.hibernate.engine.SessionFactoryImplementor factory)
fromXMLNode
public Object fromXMLNode(org.dom4j.Node xml,
org.hibernate.engine.Mapping factory)
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
wrap
protected Object wrap(byte[] bytes)
unWrap
protected byte[] unWrap(Object bytes)
isMutable
public boolean isMutable()
replace
public Object replace(Object original,
Object target,
org.hibernate.engine.SessionImplementor session,
Object owner,
Map copyCache)
throws org.hibernate.HibernateException
- Throws:
org.hibernate.HibernateException
toColumnNullness
public boolean[] toColumnNullness(Object value,
org.hibernate.engine.Mapping mapping)