Top Description Methods
org.hibernate.collection.spi

public Interface LazyInitializable

Known Direct Subinterfaces
org.hibernate.collection.spi.PersistentCollection
Annotations
@Incubating
Imports
org.hibernate.Incubating

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.
Author
Fabricio Gregorio

Method Summary

Modifier and TypeMethod and Description
public void
forceInitialization()

To be called internally by the session, forcing immediate initialization.

public boolean

Returns:

Was this collection initialized? Or is its data still not (fully) loaded?
wasInitialized
()

Is this instance initialized?

Method Detail

forceInitializationback to summary
public void forceInitialization()

To be called internally by the session, forcing immediate initialization.

wasInitializedback to summary
public boolean wasInitialized()

Is this instance initialized?

Returns:boolean

Was this collection initialized? Or is its data still not (fully) loaded?