public abstract class ListAsSQLArrayUserType<T>
extends java.lang.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 java.lang.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 |
---|---|
java.lang.Object |
assemble(java.io.Serializable cached,
java.lang.Object owner) |
java.lang.Object |
deepCopy(java.lang.Object value) |
java.io.Serializable |
disassemble(java.lang.Object value) |
boolean |
equals(java.lang.Object x,
java.lang.Object y) |
protected abstract java.sql.Array |
getDataAsArray(java.sql.Connection conn,
java.lang.Object value) |
protected abstract java.util.List<T> |
getDataFromArray(java.lang.Object primitivesArray) |
int |
hashCode(java.lang.Object x) |
boolean |
isMutable() |
java.lang.Object |
nullSafeGet(java.sql.ResultSet resultSet,
java.lang.String[] names,
java.lang.Object owner) |
void |
nullSafeSet(java.sql.PreparedStatement preparedStatement,
java.lang.Object value,
int index) |
java.lang.Object |
replace(java.lang.Object original,
java.lang.Object target,
java.lang.Object owner) |
java.lang.Class |
returnedClass() |
void |
setParameterValues(java.util.Properties parameters) |
int[] |
sqlTypes() |
protected ListAsSQLArrayUserType.ArrayFactory factory
public void setParameterValues(java.util.Properties parameters)
setParameterValues
in interface org.hibernate.usertype.ParameterizedType
protected abstract java.sql.Array getDataAsArray(java.sql.Connection conn, java.lang.Object value) throws java.sql.SQLException
java.sql.SQLException
protected abstract java.util.List<T> getDataFromArray(java.lang.Object primitivesArray)
public java.lang.Class returnedClass()
returnedClass
in interface org.hibernate.usertype.UserType
public int[] sqlTypes()
sqlTypes
in interface org.hibernate.usertype.UserType
public java.lang.Object deepCopy(java.lang.Object value)
deepCopy
in interface org.hibernate.usertype.UserType
public boolean isMutable()
isMutable
in interface org.hibernate.usertype.UserType
public java.lang.Object nullSafeGet(java.sql.ResultSet resultSet, java.lang.String[] names, java.lang.Object owner) throws org.hibernate.HibernateException, java.sql.SQLException
nullSafeGet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
java.sql.SQLException
public void nullSafeSet(java.sql.PreparedStatement preparedStatement, java.lang.Object value, int index) throws org.hibernate.HibernateException, java.sql.SQLException
nullSafeSet
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
java.sql.SQLException
public int hashCode(java.lang.Object x) throws org.hibernate.HibernateException
hashCode
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public boolean equals(java.lang.Object x, java.lang.Object y) throws org.hibernate.HibernateException
equals
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public java.lang.Object assemble(java.io.Serializable cached, java.lang.Object owner) throws org.hibernate.HibernateException
assemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public java.io.Serializable disassemble(java.lang.Object value) throws org.hibernate.HibernateException
disassemble
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
public java.lang.Object replace(java.lang.Object original, java.lang.Object target, java.lang.Object owner) throws org.hibernate.HibernateException
replace
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException