Class ReloadablePersistentCollectionType

java.lang.Object
ch.tocco.nice2.persist.core.impl.hibernate.usertype.ReloadablePersistentCollectionType
All Implemented Interfaces:
org.hibernate.usertype.UserCollectionType

public class ReloadablePersistentCollectionType extends Object implements org.hibernate.usertype.UserCollectionType
UserCollectionType for ReloadablePersistentSet based on LinkedHashSet
  • Constructor Details

    • ReloadablePersistentCollectionType

      public ReloadablePersistentCollectionType()
  • Method Details

    • instantiate

      public org.hibernate.collection.spi.PersistentCollection instantiate(org.hibernate.engine.spi.SharedSessionContractImplementor session, org.hibernate.persister.collection.CollectionPersister persister) throws org.hibernate.HibernateException
      Specified by:
      instantiate in interface org.hibernate.usertype.UserCollectionType
      Throws:
      org.hibernate.HibernateException
    • wrap

      public org.hibernate.collection.spi.PersistentCollection wrap(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object collection)
      Specified by:
      wrap in interface org.hibernate.usertype.UserCollectionType
    • getElementsIterator

      public Iterator getElementsIterator(Object collection)
      Specified by:
      getElementsIterator in interface org.hibernate.usertype.UserCollectionType
    • contains

      public boolean contains(Object collection, Object entity)
      Specified by:
      contains in interface org.hibernate.usertype.UserCollectionType
    • indexOf

      public Object indexOf(Object collection, Object entity)
      Specified by:
      indexOf in interface org.hibernate.usertype.UserCollectionType
    • replaceElements

      public Object replaceElements(Object original, Object target, org.hibernate.persister.collection.CollectionPersister persister, Object owner, Map copyCache, org.hibernate.engine.spi.SharedSessionContractImplementor session) throws org.hibernate.HibernateException
      Specified by:
      replaceElements in interface org.hibernate.usertype.UserCollectionType
      Throws:
      org.hibernate.HibernateException
    • instantiate

      public Object instantiate(int anticipatedSize)
      Specified by:
      instantiate in interface org.hibernate.usertype.UserCollectionType