public class HibernateByteBlobType extends Object implements UserType, Serializable
A hibernate user type which converts a Blob into a byte[] and back again.
Constructor and Description |
---|
HibernateByteBlobType() |
Modifier and Type | Method and Description |
---|---|
Object |
assemble(Serializable cached,
Object owner) |
Object |
deepCopy(Object value) |
Serializable |
disassemble(Object value) |
boolean |
equals(Object x,
Object y) |
int |
hashCode(Object x) |
boolean |
isMutable() |
Object |
nullSafeGet(ResultSet resultSet,
String[] names,
Object owner) |
Object |
nullSafeGet(ResultSet resultSet,
String[] names,
SessionImplementor session,
Object owner) |
void |
nullSafeSet(PreparedStatement statement,
Object value,
int index) |
void |
nullSafeSet(PreparedStatement preparedStatement,
Object data,
int index,
SessionImplementor session) |
Object |
replace(Object original,
Object target,
Object owner) |
Class<?> |
returnedClass() |
int[] |
sqlTypes() |
public HibernateByteBlobType()
public int[] sqlTypes()
sqlTypes
in interface UserType
UserType.sqlTypes()
public Class<?> returnedClass()
returnedClass
in interface UserType
UserType.returnedClass()
public boolean equals(Object x, Object y)
equals
in interface UserType
UserType.equals(Object, Object)
public Object nullSafeGet(ResultSet resultSet, String[] names, Object owner) throws HibernateException, SQLException
HibernateException
SQLException
org.hibernate.usertype.UserType#nullSafeGet(java.sql.ResultSet, String[], Object)
public void nullSafeSet(PreparedStatement statement, Object value, int index) throws SQLException
SQLException
org.hibernate.usertype.UserType#nullSafeSet(java.sql.PreparedStatement, Object, int)
public Object nullSafeGet(ResultSet resultSet, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException
nullSafeGet
in interface UserType
HibernateException
SQLException
org.hibernate.usertype.UserType#nullSafeGet(java.sql.ResultSet, String[], Object)
public void nullSafeSet(PreparedStatement preparedStatement, Object data, int index, SessionImplementor session) throws HibernateException, SQLException
nullSafeSet
in interface UserType
HibernateException
SQLException
org.hibernate.usertype.UserType#nullSafeSet(java.sql.PreparedStatement, Object, int)
public Object deepCopy(Object value)
deepCopy
in interface UserType
UserType.deepCopy(Object)
public boolean isMutable()
isMutable
in interface UserType
UserType.isMutable()
public Object replace(Object original, Object target, Object owner)
replace
in interface UserType
UserType.replace(Object, Object, Object)
public Object assemble(Serializable cached, Object owner)
assemble
in interface UserType
UserType.assemble(Serializable, Object)
public Serializable disassemble(Object value)
disassemble
in interface UserType
UserType.disassemble(Object)
public int hashCode(Object x)
hashCode
in interface UserType
x
- Object.hashCode()
Copyright © 2012–2014 IFREMER. All rights reserved.