Package org.hibernate.collection.spi
Interface LazyInitializable
-
- All Known Subinterfaces:
PersistentCollection<E>
- All Known Implementing Classes:
AbstractPersistentCollection
,CollectionProxy
,ListProxy
,MapProxy
,PersistentArrayHolder
,PersistentBag
,PersistentIdentifierBag
,PersistentList
,PersistentMap
,PersistentSet
,PersistentSortedMap
,PersistentSortedSet
,SetProxy
,SortedMapProxy
,SortedSetProxy
public interface LazyInitializable
Hibernate "wraps" a java collection in an instance of PersistentCollection. Envers uses custom collection wrappers (ListProxy, SetProxy, etc). All of them need to extend LazyInitializable, so the Hibernate.isInitialized method can check if the collection is initialized or not.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
forceInitialization()
To be called internally by the session, forcing immediate initialization.boolean
wasInitialized()
Is this instance initialized?
-