Package io.github.astrapi69.spring.rest
Enum BaseActionRestPath
- java.lang.Object
-
- java.lang.Enum<BaseActionRestPath>
-
- io.github.astrapi69.spring.rest.BaseActionRestPath
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BaseActionRestPath>
public enum BaseActionRestPath extends java.lang.Enum<BaseActionRestPath>
The enum classBaseActionRestPath
holds constants for the base action that follows after base rest paths
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETE
The constant for the action deleteFIND
The constant for the action findFIND_ALL
The constant for the action find allFIND_BY
The constant for the action find byFIND_BY_NAME
The constant for the action find by namePERSIST
The constant for the action persist.SAVE
The constant for the action saveSAVE_OR_UPDATE
The constant for the action save or updateUPDATE
The constant for the action update.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACTION_DELETE
static java.lang.String
ACTION_FIND
static java.lang.String
ACTION_FIND_ALL
static java.lang.String
ACTION_FIND_BY
static java.lang.String
ACTION_FIND_BY_NAME
static java.lang.String
ACTION_PERSIST
static java.lang.String
ACTION_SAVE
static java.lang.String
ACTION_SAVE_OR_UPDATE
static java.lang.String
ACTION_UPDATE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getValue()
static BaseActionRestPath
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BaseActionRestPath[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SAVE
public static final BaseActionRestPath SAVE
The constant for the action save
-
PERSIST
public static final BaseActionRestPath PERSIST
The constant for the action persist.
-
UPDATE
public static final BaseActionRestPath UPDATE
The constant for the action update.
-
SAVE_OR_UPDATE
public static final BaseActionRestPath SAVE_OR_UPDATE
The constant for the action save or update
-
DELETE
public static final BaseActionRestPath DELETE
The constant for the action delete
-
FIND
public static final BaseActionRestPath FIND
The constant for the action find
-
FIND_BY
public static final BaseActionRestPath FIND_BY
The constant for the action find by
-
FIND_ALL
public static final BaseActionRestPath FIND_ALL
The constant for the action find all
-
FIND_BY_NAME
public static final BaseActionRestPath FIND_BY_NAME
The constant for the action find by name
-
-
Field Detail
-
ACTION_SAVE
public static final java.lang.String ACTION_SAVE
- See Also:
- Constant Field Values
-
ACTION_PERSIST
public static final java.lang.String ACTION_PERSIST
- See Also:
- Constant Field Values
-
ACTION_UPDATE
public static final java.lang.String ACTION_UPDATE
- See Also:
- Constant Field Values
-
ACTION_SAVE_OR_UPDATE
public static final java.lang.String ACTION_SAVE_OR_UPDATE
- See Also:
- Constant Field Values
-
ACTION_DELETE
public static final java.lang.String ACTION_DELETE
- See Also:
- Constant Field Values
-
ACTION_FIND
public static final java.lang.String ACTION_FIND
- See Also:
- Constant Field Values
-
ACTION_FIND_BY
public static final java.lang.String ACTION_FIND_BY
- See Also:
- Constant Field Values
-
ACTION_FIND_BY_NAME
public static final java.lang.String ACTION_FIND_BY_NAME
- See Also:
- Constant Field Values
-
ACTION_FIND_ALL
public static final java.lang.String ACTION_FIND_ALL
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static BaseActionRestPath[] 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 (BaseActionRestPath c : BaseActionRestPath.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BaseActionRestPath valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getValue
public java.lang.String getValue()
-
-