public enum CallbackScope extends Enum<CallbackScope>
Enum Constant and Description |
---|
ADD
Value that means that a callback method is invoked
before
add Repository.add(Queryable)
or Repository.add(Object) methods |
NONE
Value that indicates that no callback method is invoked.
|
REMOVE
Value that means that a callback method is invoked
before
remove Repository.remove(Queryable)
or Repository.remove(Object) methods |
SELECT
Value that means that a callback method is invoked
before
get and list methods
like: Repository.get(Queryable) ,
Repository.get(Object) , Repository.list(Queryable)
etc. |
UPDATE
Value that means that a callback method is invoked
before
update Repository.update(Queryable)
or Repository.update(Object) methods |
Modifier and Type | Method and Description |
---|---|
boolean |
isAdd() |
boolean |
isRemove() |
boolean |
isSelect() |
boolean |
isUpdate() |
static CallbackScope |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CallbackScope[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CallbackScope ADD
add
Repository.add(Queryable)
or Repository.add(Object)
methodspublic static final CallbackScope UPDATE
update
Repository.update(Queryable)
or Repository.update(Object)
methodspublic static final CallbackScope REMOVE
remove
Repository.remove(Queryable)
or Repository.remove(Object)
methodspublic static final CallbackScope SELECT
get
and list
methods
like: Repository.get(Queryable)
,
Repository.get(Object)
, Repository.list(Queryable)
etc.public static final CallbackScope NONE
public static CallbackScope[] values()
for (CallbackScope c : CallbackScope.values()) System.out.println(c);
public static CallbackScope 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 isAdd()
public boolean isUpdate()
public boolean isRemove()
public boolean isSelect()
Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.