|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.tools.hibernate.ListAsSQLArrayUserType<T>
public abstract class ListAsSQLArrayUserType<T>
Hibernate type to store Lists of primitives using SQL ARRAY.
Nested Class Summary | |
---|---|
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 |
Constructor Summary | |
---|---|
ListAsSQLArrayUserType()
|
Method Summary | |
---|---|
Object |
assemble(Serializable cached,
Object owner)
|
Object |
deepCopy(Object value)
|
Serializable |
disassemble(Object value)
|
boolean |
equals(Object x,
Object y)
|
protected abstract Array |
getDataAsArray(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()
|
int[] |
sqlTypes()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListAsSQLArrayUserType()
Method Detail |
---|
protected abstract Array getDataAsArray(Object value)
protected abstract List<T> getDataFromArray(Object primitivesArray)
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
public Object replace(Object original, Object target, Object owner) throws org.hibernate.HibernateException
replace
in interface org.hibernate.usertype.UserType
org.hibernate.HibernateException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta4.2.1-r8614-Beta4.2-b41
Copyright © 2009 The University of Dundee. All Rights Reserved.