|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.test.usercollection.parameterized.DefaultableListType
public class DefaultableListType
Our Hibernate type-system extension for defining our specialized collection contract.
Constructor Summary | |
---|---|
DefaultableListType()
|
Method Summary | |
---|---|
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(SessionImplementor session,
CollectionPersister persister)
Instantiate an uninitialized instance of the collection wrapper |
Object |
replaceElements(Object original,
Object target,
CollectionPersister persister,
Object owner,
Map copyCache,
SessionImplementor session)
Replace the elements of a collection with the elements of another collection |
void |
setParameterValues(Properties parameters)
Gets called by Hibernate to pass the configured type parameters to the implementation. |
PersistentCollection |
wrap(SessionImplementor session,
Object collection)
Wrap an instance of a collection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultableListType()
Method Detail |
---|
public Object instantiate(int anticipatedSize)
UserCollectionType
instantiate
in interface UserCollectionType
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).public PersistentCollection instantiate(SessionImplementor session, CollectionPersister persister)
UserCollectionType
instantiate
in interface UserCollectionType
public PersistentCollection wrap(SessionImplementor session, Object collection)
UserCollectionType
wrap
in interface UserCollectionType
public Iterator getElementsIterator(Object collection)
UserCollectionType
getElementsIterator
in interface UserCollectionType
public boolean contains(Object collection, Object entity)
UserCollectionType
contains
in interface UserCollectionType
public Object indexOf(Object collection, Object entity)
UserCollectionType
indexOf
in interface UserCollectionType
public Object replaceElements(Object original, Object target, CollectionPersister persister, Object owner, Map copyCache, SessionImplementor session)
UserCollectionType
replaceElements
in interface UserCollectionType
public void setParameterValues(Properties parameters)
ParameterizedType
setParameterValues
in interface ParameterizedType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |