Package ubic.gemma.persistence.hibernate
Class ByteArrayType
java.lang.Object
ubic.gemma.persistence.hibernate.ByteArrayType
- All Implemented Interfaces:
ParameterizedType,UserType
Represents a vector of scalars stored as a byte array in a single column.
The following types are supported for the arrayType parameter:
booleancharintlongfloatdoubleString, either zero-terminated or tab-delimited
ByteArrayUtils can be added if necessary.- Author:
- poirigui
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassemble(Serializable cached, Object owner) disassemble(Object value) booleanintbooleannullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner) voidnullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session) Class<?> voidsetParameterValues(Properties parameters) int[]sqlTypes()
-
Constructor Details
-
ByteArrayType
public ByteArrayType()
-
-
Method Details
-
sqlTypes
public int[] sqlTypes() -
returnedClass
- Specified by:
returnedClassin interfaceUserType
-
equals
- Specified by:
equalsin interfaceUserType- Throws:
HibernateException
-
hashCode
- Specified by:
hashCodein interfaceUserType- Throws:
HibernateException
-
nullSafeGet
public Object nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException - Specified by:
nullSafeGetin interfaceUserType- Throws:
HibernateExceptionSQLException
-
nullSafeSet
public void nullSafeSet(PreparedStatement st, @Nullable Object value, int index, SessionImplementor session) throws HibernateException, SQLException - Specified by:
nullSafeSetin interfaceUserType- Throws:
HibernateExceptionSQLException
-
deepCopy
- Specified by:
deepCopyin interfaceUserType- Throws:
HibernateException
-
isMutable
public boolean isMutable() -
disassemble
- Specified by:
disassemblein interfaceUserType- Throws:
HibernateException
-
assemble
- Specified by:
assemblein interfaceUserType- Throws:
HibernateException
-
replace
- Specified by:
replacein interfaceUserType- Throws:
HibernateException
-
setParameterValues
- Specified by:
setParameterValuesin interfaceParameterizedType
-