Top Description Fields Constructors Methods
org.hibernate.annotations

public final Enum LazyCollectionOption

extends Enum<LazyCollectionOption>
Class Inheritance
Annotations
@Deprecated
Imports
java.util.Collection, .Map

Deprecated

Enumerates the options for lazy loading of a collection, many to one association, or many to many association.
Author
Emmanuel Bernard
See Also
LazyCollection

Field Summary

Modifier and TypeField and Description
public static final LazyCollectionOption
EXTRA

The underlying Java collection is proxied by an instance of org.hibernate.collection.spi.PersistentCollection and its state is fetched lazily from the database as needed, when methods of the proxy are called.

public static final LazyCollectionOption
FALSE

The collection is always loaded eagerly, and all its elements are available immediately.

public static final LazyCollectionOption
TRUE

The underlying Java collection is proxied by an instance of org.hibernate.collection.spi.PersistentCollection and lazily fetched when a method of the proxy is called.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static LazyCollectionOption
valueOf(String name)

Deprecated as a consequence of LazyCollectionOption being deprecated.
public static LazyCollectionOption[]
values()

Deprecated as a consequence of LazyCollectionOption being deprecated.
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

EXTRAback to summary
public static final LazyCollectionOption EXTRA

Deprecated

use operations of org.hibernate.Hibernate

The underlying Java collection is proxied by an instance of org.hibernate.collection.spi.PersistentCollection and its state is fetched lazily from the database as needed, when methods of the proxy are called. When reasonable, the proxy will avoid fetching all elements of the collection at once.

Annotations
@Deprecated
FALSEback to summary
public static final LazyCollectionOption FALSE

The collection is always loaded eagerly, and all its elements are available immediately. However, access to the collection is still mediated by an instance of org.hibernate.collection.spi.PersistentCollection, which tracks modifications to the collection.

Annotations
@Deprecated
TRUEback to summary
public static final LazyCollectionOption TRUE

The underlying Java collection is proxied by an instance of org.hibernate.collection.spi.PersistentCollection and lazily fetched when a method of the proxy is called. All elements of the collection are retrieved at once.

Annotations
@Deprecated

Constructor Detail

LazyCollectionOptionback to summary
private LazyCollectionOption()

Method Detail

valueOfback to summary
public static LazyCollectionOption valueOf(String name)

Deprecated

as a consequence of LazyCollectionOption being deprecated. See corresponding docs for further information.

valuesback to summary
public static LazyCollectionOption[] values()

Deprecated

as a consequence of LazyCollectionOption being deprecated. See corresponding docs for further information.