public interface UserCollectionType
PersistentCollection
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object collection,
Object entity)
Optional operation.
|
Iterator |
getElementsIterator(Object collection)
Return an iterator over the elements of this collection - the passed collection
instance may or may not be a wrapper
|
Object |
indexOf(Object collection,
Object entity)
Optional operation.
|
Object |
instantiate(int anticipatedSize)
Instantiate an empty instance of the "underlying" collection (not a wrapper),
but with the given anticipated size (i.e.
|
PersistentCollection |
instantiate(SharedSessionContractImplementor session,
CollectionPersister persister)
Instantiate an uninitialized instance of the collection wrapper
|
Object |
replaceElements(Object original,
Object target,
CollectionPersister persister,
Object owner,
Map copyCache,
SharedSessionContractImplementor session)
Replace the elements of a collection with the elements of another collection
|
PersistentCollection |
wrap(SharedSessionContractImplementor session,
Object collection)
Wrap an instance of a collection
|
PersistentCollection instantiate(SharedSessionContractImplementor session, CollectionPersister persister) throws HibernateException
HibernateException
PersistentCollection wrap(SharedSessionContractImplementor session, Object collection)
Iterator getElementsIterator(Object collection)
boolean contains(Object collection, Object entity)
Object indexOf(Object collection, Object entity)
Object replaceElements(Object original, Object target, CollectionPersister persister, Object owner, Map copyCache, SharedSessionContractImplementor session) throws HibernateException
HibernateException
Object instantiate(int anticipatedSize)
anticipatedSize
- The anticipated size of the instaniated collection
after we are done populating it. Note, may be negative to indicate that
we not yet know anything about the anticipated size (i.e., when initializing
from a result set row by row).Copyright © 2019 JBoss by Red Hat. All rights reserved.