public class HibernateByteBlobType extends Object implements org.hibernate.usertype.UserType
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) |
void |
nullSafeSet(PreparedStatement statement,
Object value,
int index) |
Object |
replace(Object original,
Object target,
Object owner) |
Class<?> |
returnedClass() |
int[] |
sqlTypes() |
public int[] sqlTypes()
sqlTypes in interface org.hibernate.usertype.UserTypeUserType.sqlTypes()public Class<?> returnedClass()
returnedClass in interface org.hibernate.usertype.UserTypeUserType.returnedClass()public boolean equals(Object x, Object y)
equals in interface org.hibernate.usertype.UserTypeUserType.equals(java.lang.Object, java.lang.Object)public Object nullSafeGet(ResultSet resultSet, String[] names, Object owner) throws org.hibernate.HibernateException, SQLException
nullSafeGet in interface org.hibernate.usertype.UserTypeorg.hibernate.HibernateExceptionSQLExceptionUserType.nullSafeGet(java.sql.ResultSet, java.lang.String[], java.lang.Object)public void nullSafeSet(PreparedStatement statement, Object value, int index) throws SQLException
nullSafeSet in interface org.hibernate.usertype.UserTypeSQLExceptionUserType.nullSafeSet(java.sql.PreparedStatement, java.lang.Object, int)public Object deepCopy(Object value)
deepCopy in interface org.hibernate.usertype.UserTypeUserType.deepCopy(java.lang.Object)public boolean isMutable()
isMutable in interface org.hibernate.usertype.UserTypeUserType.isMutable()public Object replace(Object original, Object target, Object owner)
replace in interface org.hibernate.usertype.UserTypeUserType.replace(Object, Object, Object)public Object assemble(Serializable cached, Object owner)
assemble in interface org.hibernate.usertype.UserTypeUserType.assemble(java.io.Serializable, Object)public Serializable disassemble(Object value)
disassemble in interface org.hibernate.usertype.UserTypeUserType.disassemble(Object)public int hashCode(Object x)
hashCode in interface org.hibernate.usertype.UserTypeUserType.hashCode(Object)Copyright © 2013. All Rights Reserved.