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:
boolean
char
int
long
float
double
String
, 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) boolean
int
boolean
nullSafeGet
(ResultSet rs, String[] names, SessionImplementor session, Object owner) void
nullSafeSet
(PreparedStatement st, Object value, int index, SessionImplementor session) Class
<?> void
setParameterValues
(Properties parameters) int[]
sqlTypes()
-
Constructor Details
-
ByteArrayType
public ByteArrayType()
-
-
Method Details
-
sqlTypes
public int[] sqlTypes() -
returnedClass
- Specified by:
returnedClass
in interfaceUserType
-
equals
- Specified by:
equals
in interfaceUserType
- Throws:
HibernateException
-
hashCode
- 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
- Specified by:
deepCopy
in interfaceUserType
- Throws:
HibernateException
-
isMutable
public boolean isMutable() -
disassemble
- Specified by:
disassemble
in interfaceUserType
- Throws:
HibernateException
-
assemble
- Specified by:
assemble
in interfaceUserType
- Throws:
HibernateException
-
replace
- Specified by:
replace
in interfaceUserType
- Throws:
HibernateException
-
setParameterValues
- Specified by:
setParameterValues
in interfaceParameterizedType
-