1 package org.hibernate.usertype; 3 4 import java.util.Iterator ; 5 import java.util.Map ; 6 7 import org.hibernate.HibernateException; 8 import org.hibernate.collection.PersistentCollection; 9 import org.hibernate.engine.SessionImplementor; 10 import org.hibernate.persister.collection.CollectionPersister; 11 12 18 public interface UserCollectionType { 19 20 23 public PersistentCollection instantiate(SessionImplementor session, CollectionPersister persister) 24 throws HibernateException; 25 26 29 public PersistentCollection wrap(SessionImplementor session, Object collection); 30 31 35 public Iterator getElementsIterator(Object collection); 36 37 40 public boolean contains(Object collection, Object entity); 41 44 public Object indexOf(Object collection, Object entity); 45 46 49 public Object replaceElements( 50 Object original, 51 Object target, 52 CollectionPersister persister, 53 Object owner, 54 Map copyCache, 55 SessionImplementor session) 56 throws HibernateException; 57 58 61 public Object instantiate(); 62 63 } 64 | Popular Tags |