org.ujorm.orm.ao
Enum LazyLoading

java.lang.Object
  extended by java.lang.Enum<LazyLoading>
      extended by org.ujorm.orm.ao.LazyLoading
All Implemented Interfaces:
Serializable, Comparable<LazyLoading>

public enum LazyLoading
extends Enum<LazyLoading>

Lazy loading policy.


Enum Constant Summary
ALLOWED_ANYWHERE
          Lazy loading is allowed on an open or closed sessions, for the second case Ujorm creates new temporary session.
ALLOWED_ANYWHERE_WITH_STACKTRACE
          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
 
Method Summary
 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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DISABLED

public static final LazyLoading DISABLED
Lazy loading is disabled


ALLOWED_USING_OPEN_SESSION

public static final LazyLoading ALLOWED_USING_OPEN_SESSION
Lazy loading is allowed using an open open sesson. It is the default value


ALLOWED_ANYWHERE_WITH_WARNING

public static final LazyLoading ALLOWED_ANYWHERE_WITH_WARNING
Lazy loading is allowed on an open or closed sessions, for the second case Ujorm creates new temporary session. The action is logged with the WARNING but no stacktrace.


ALLOWED_ANYWHERE_WITH_STACKTRACE

public static final LazyLoading ALLOWED_ANYWHERE_WITH_STACKTRACE
Lazy loading is allowed on an open or closed sessions, for the second case Ujorm creates new temporary session. The action is logged with the WARNING level including a stacktrace.


ALLOWED_ANYWHERE

public static final LazyLoading ALLOWED_ANYWHERE
Lazy loading is allowed on an open or closed sessions, for the second case Ujorm creates new temporary session. The action is newer logged.

Method Detail

values

public static LazyLoading[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (LazyLoading c : LazyLoading.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static LazyLoading valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

equalsTo

public boolean equalsTo(LazyLoading another)
Type safe equalsTo



Copyright 2013, Pavel Ponec