Package ubic.gemma.persistence.hibernate
Class ByteArrayType
- java.lang.Object
-
- ubic.gemma.persistence.hibernate.ByteArrayType
-
- All Implemented Interfaces:
ParameterizedType
,UserType
public class ByteArrayType extends Object implements UserType, ParameterizedType
Represents a vector of scalars stored as a byte array in a single column.The following types are supported for the
arrayType
parameter:boolean
char
int
long
float
double
String
, either zero-terminated or tab-delimited
ByteArrayUtils
can be added if necessary.- Author:
- poirigui
- See Also:
ByteArrayUtils
-
-
Constructor Summary
Constructors Constructor Description ByteArrayType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 rs, String[] names, SessionImplementor session, Object owner)
void
nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session)
Object
replace(Object original, Object target, Object owner)
Class<?>
returnedClass()
void
setParameterValues(Properties parameters)
int[]
sqlTypes()
-
-
-
Method Detail
-
returnedClass
public Class<?> returnedClass()
- Specified by:
returnedClass
in interfaceUserType
-
equals
public boolean equals(Object x, Object y) throws HibernateException
- Specified by:
equals
in interfaceUserType
- Throws:
HibernateException
-
hashCode
public int hashCode(Object x) throws HibernateException
- Specified by:
hashCode
in interfaceUserType
- Throws:
HibernateException
-
nullSafeGet
public Object nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException
- Specified by:
nullSafeGet
in interfaceUserType
- Throws:
HibernateException
SQLException
-
nullSafeSet
public void nullSafeSet(PreparedStatement st, @Nullable Object value, int index, SessionImplementor session) throws HibernateException, SQLException
- Specified by:
nullSafeSet
in interfaceUserType
- Throws:
HibernateException
SQLException
-
deepCopy
public Object deepCopy(@Nullable Object value) throws HibernateException
- Specified by:
deepCopy
in interfaceUserType
- Throws:
HibernateException
-
disassemble
public Serializable disassemble(Object value) throws HibernateException
- Specified by:
disassemble
in interfaceUserType
- Throws:
HibernateException
-
assemble
public Object assemble(Serializable cached, Object owner) throws HibernateException
- Specified by:
assemble
in interfaceUserType
- Throws:
HibernateException
-
replace
public Object replace(Object original, Object target, Object owner) throws HibernateException
- Specified by:
replace
in interfaceUserType
- Throws:
HibernateException
-
setParameterValues
public void setParameterValues(@Nullable Properties parameters)
- Specified by:
setParameterValues
in interfaceParameterizedType
-
-