play.modules.morphia
Enum MorphiaEvent
java.lang.Object
java.lang.Enum<MorphiaEvent>
play.modules.morphia.MorphiaEvent
- All Implemented Interfaces:
- Serializable, Comparable<MorphiaEvent>
public enum MorphiaEvent
- extends Enum<MorphiaEvent>
ON_LOAD
public static final MorphiaEvent ON_LOAD
LOADED
public static final MorphiaEvent LOADED
ON_ADD
public static final MorphiaEvent ON_ADD
ADDED
public static final MorphiaEvent ADDED
ON_UPDATE
public static final MorphiaEvent ON_UPDATE
UPDATED
public static final MorphiaEvent UPDATED
ON_DELETE
public static final MorphiaEvent ON_DELETE
DELETED
public static final MorphiaEvent DELETED
ON_BATCH_DELETE
public static final MorphiaEvent ON_BATCH_DELETE
BATCH_DELETED
public static final MorphiaEvent BATCH_DELETED
PREFIX
public static final String PREFIX
- See Also:
- Constant Field Values
values
public static MorphiaEvent[] 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 (MorphiaEvent c : MorphiaEvent.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MorphiaEvent 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
getId
public String getId()
invokeOn
public abstract void invokeOn(MorphiaEvent.IMorphiaEventHandler handler,
Object context)
forId
public static MorphiaEvent forId(String name)
main
public static void main(String[] sa)
Copyright © 2012. All Rights Reserved.