public enum LazyLoading extends Enum<LazyLoading>
| Enum Constant and Description |
|---|
ALLOWED_ANYWHERE
Lazy loading is allowed on an open or closed sessions, for the second case Ujorm creates new temporary session.
|
ALLOWED_ANYWHERE_WITH_WARNING
Lazy loading is allowed on an open or closed sessions, for the second case Ujorm creates new temporary session.
|
ALLOWED_USING_OPEN_SESSION
Lazy loading is allowed using an open open sesson.
|
DISABLED
Lazy loading is disabled
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equalsTo(LazyLoading another)
Type safe equalsTo
|
static LazyLoading |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LazyLoading[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LazyLoading DISABLED
public static final LazyLoading ALLOWED_USING_OPEN_SESSION
public static final LazyLoading ALLOWED_ANYWHERE_WITH_WARNING
public static final LazyLoading ALLOWED_ANYWHERE
public static LazyLoading[] values()
for (LazyLoading c : LazyLoading.values()) System.out.println(c);
public static LazyLoading valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic boolean equalsTo(LazyLoading another)
Copyright 2013, Pavel Ponec