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 classBaseActionRestPathholds constants for the base action that follows after base rest paths
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETEThe constant for the action deleteFINDThe constant for the action findFIND_ALLThe constant for the action find allFIND_BYThe constant for the action find byFIND_BY_NAMEThe constant for the action find by namePERSISTThe constant for the action persist.SAVEThe constant for the action saveSAVE_OR_UPDATEThe constant for the action save or updateUPDATEThe constant for the action update.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringACTION_DELETEstatic java.lang.StringACTION_FINDstatic java.lang.StringACTION_FIND_ALLstatic java.lang.StringACTION_FIND_BYstatic java.lang.StringACTION_FIND_BY_NAMEstatic java.lang.StringACTION_PERSISTstatic java.lang.StringACTION_SAVEstatic java.lang.StringACTION_SAVE_OR_UPDATEstatic java.lang.StringACTION_UPDATE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetValue()static BaseActionRestPathvalueOf(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()
-
-