public abstract class ListAsSQLArrayUserType<T> extends Object implements org.hibernate.usertype.UserType, org.hibernate.usertype.ParameterizedType
Modifier and Type | Class and Description |
---|---|
static interface |
ListAsSQLArrayUserType.ArrayFactory |
static class |
ListAsSQLArrayUserType.BOOLEAN
To use, define : hibernate.property
type="ome.tools.hibernate.ListAsSQLArrayUserType$BOOLEAN"
hibernate.column name="fieldName" sql-type="bool[]"
|
static class |
ListAsSQLArrayUserType.DATE
To use, define : hibernate.property
type="ome.tools.hibernate.ListAsSQLArrayUserType$DATE"
hibernate.column name="fieldName" sql-type="timestamp[]"
|
static class |
ListAsSQLArrayUserType.DOUBLE
To use, define : hibernate.property
type="ome.tools.hibernate.ListAsSQLArrayUserType$DOUBLE"
hibernate.column name="fieldName" sql-type="float8[]"
|
static class |
ListAsSQLArrayUserType.ENUM<E extends Enum<E>>
Warning, this one is special.
|
static class |
ListAsSQLArrayUserType.FLOAT
To use, define : hibernate.property
type="ome.tools.hibernate.ListAsSQLArrayUserType$FLOAT"
hibernate.column name="fieldName" sql-type="real[]"
|
static class |
ListAsSQLArrayUserType.INTEGER
To use, define : hibernate.property
type="ome.tools.hibernate.ListAsSQLArrayUserType$INTEGER"
hibernate.column name="fieldName" sql-type="int[]"
|
static class |
ListAsSQLArrayUserType.STRING
To use, define : hibernate.property
type="ome.tools.hibernate.ListAsSQLArrayUserType$STRING"
hibernate.column name="fieldName" sql-type="text[]"
|
static class |
ListAsSQLArrayUserType.STRING2
To use, define : hibernate.property
type="ome.tools.hibernate.ListAsSQLArrayUserType$STRING2"
hibernate.column name="fieldName" sql-type="text[]"
Added by Josh
|
Modifier and Type | Field and Description |
---|---|
protected ListAsSQLArrayUserType.ArrayFactory |
factory |
Constructor and Description |
---|
ListAsSQLArrayUserType() |
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) |
protected abstract Array |
getDataAsArray(Connection conn,
Object value) |
protected abstract List<T> |
getDataFromArray(Object primitivesArray) |
int |
hashCode(Object x) |
boolean |
isMutable() |
Object |
nullSafeGet(ResultSet resultSet,
String[] names,
Object owner) |
void |
nullSafeSet(PreparedStatement preparedStatement,
Object value,
int index) |
Object |
replace(Object original,
Object target,
Object owner) |
Class |
returnedClass() |
void |
setParameterValues(Properties parameters) |
int[] |
sqlTypes() |
protected ListAsSQLArrayUserType.ArrayFactory factory
public void setParameterValues(Properties parameters)
setParameterValues
in interface org.hibernate.usertype.ParameterizedType
protected abstract Array getDataAsArray(Connection conn, Object value) throws SQLException
SQLException
public Class returnedClass()
returnedClass
in interface org.hibernate.usertype.UserType
public int[] sqlTypes()
sqlTypes
in interface org.hibernate.usertype.UserType
public Object deepCopy(Object value)
deepCopy
in interface org.hibernate.usertype.UserType
public boolean isMutable()
isMutable
in interface org.hibernate.usertype.UserType
public Object nullSafeGet(ResultSet resultSet, String[] names, Object owner) throws org.hibernate.HibernateException, SQLException
nullSafeGet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
SQLException
public void nullSafeSet(PreparedStatement preparedStatement, Object value, int index) throws org.hibernate.HibernateException, SQLException
nullSafeSet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
SQLException
public int hashCode(Object x) throws org.hibernate.HibernateException
hashCode
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public boolean equals(Object x, Object y) throws org.hibernate.HibernateException
equals
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public Object assemble(Serializable cached, Object owner) throws org.hibernate.HibernateException
assemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public Serializable disassemble(Object value) throws org.hibernate.HibernateException
disassemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
Version: 5.3.3-ice35-b63
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.