ome.tools.hibernate
Class ListAsSQLArrayUserType.DATE

java.lang.Object
  extended by ome.tools.hibernate.ListAsSQLArrayUserType<Date>
      extended by ome.tools.hibernate.ListAsSQLArrayUserType.DATE
All Implemented Interfaces:
org.hibernate.usertype.ParameterizedType, org.hibernate.usertype.UserType
Enclosing class:
ListAsSQLArrayUserType<T>

public static class ListAsSQLArrayUserType.DATE
extends ListAsSQLArrayUserType<Date>

To use, define : hibernate.property type="ome.tools.hibernate.ListAsSQLArrayUserType$DATE" hibernate.column name="fieldName" sql-type="timestamp[]"


Nested Class Summary
 
Nested classes/interfaces inherited from class ome.tools.hibernate.ListAsSQLArrayUserType
ListAsSQLArrayUserType.ArrayFactory, ListAsSQLArrayUserType.BOOLEAN, ListAsSQLArrayUserType.DATE, ListAsSQLArrayUserType.DOUBLE, ListAsSQLArrayUserType.ENUM<E extends Enum<E>>, ListAsSQLArrayUserType.FLOAT, ListAsSQLArrayUserType.INTEGER, ListAsSQLArrayUserType.STRING, ListAsSQLArrayUserType.STRING2
 
Field Summary
 
Fields inherited from class ome.tools.hibernate.ListAsSQLArrayUserType
factory
 
Constructor Summary
ListAsSQLArrayUserType.DATE()
           
 
Method Summary
protected  Array getDataAsArray(Connection conn, Object value)
           
protected  List<Date> getDataFromArray(Object array)
           
 
Methods inherited from class ome.tools.hibernate.ListAsSQLArrayUserType
assemble, deepCopy, disassemble, equals, hashCode, isMutable, nullSafeGet, nullSafeSet, replace, returnedClass, setParameterValues, sqlTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListAsSQLArrayUserType.DATE

public ListAsSQLArrayUserType.DATE()
Method Detail

getDataAsArray

protected Array getDataAsArray(Connection conn,
                               Object value)
                        throws SQLException
Specified by:
getDataAsArray in class ListAsSQLArrayUserType<Date>
Throws:
SQLException

getDataFromArray

protected List<Date> getDataFromArray(Object array)
Specified by:
getDataFromArray in class ListAsSQLArrayUserType<Date>


OmeroJava Api

Version: 4.3.3-00d1137e-b2894

Copyright © 2009 The University of Dundee. All Rights Reserved.