public enum CallbackType extends Enum<CallbackType>
| Enum Constant and Description |
|---|
POST_LOAD |
POST_PERSIST |
POST_REMOVE |
POST_UPDATE |
PRE_PERSIST |
PRE_REMOVE |
PRE_UPDATE |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Annotation> |
getCallbackAnnotation() |
static CallbackType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CallbackType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CallbackType PRE_UPDATE
public static final CallbackType POST_UPDATE
public static final CallbackType PRE_PERSIST
public static final CallbackType POST_PERSIST
public static final CallbackType PRE_REMOVE
public static final CallbackType POST_REMOVE
public static final CallbackType POST_LOAD
public static CallbackType[] values()
for (CallbackType c : CallbackType.values()) System.out.println(c);
public static CallbackType 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 Class<? extends Annotation> getCallbackAnnotation()
Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.