Package com.priint.pubserver.entity
Enum Class DeleteEntityStatus.DeleteEntityStatusCode
java.lang.Object
java.lang.Enum<DeleteEntityStatus.DeleteEntityStatusCode>
com.priint.pubserver.entity.DeleteEntityStatus.DeleteEntityStatusCode
- All Implemented Interfaces:
Serializable,Comparable<DeleteEntityStatus.DeleteEntityStatusCode>,Constable
- Enclosing class:
- DeleteEntityStatus
public static enum DeleteEntityStatus.DeleteEntityStatusCode
extends Enum<DeleteEntityStatus.DeleteEntityStatusCode>
List of possible status codes after deleting entity
You can get the type from calling DeleteEntityStatus.getDeleteEntityStatusCode() on an enum value.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe Data integrity error.The Delete not allowed.The Delete not allowed in gui.The Entity used in parameter.Ok delete entity status code.The Server exception. -
Method Summary
Modifier and TypeMethodDescriptionintGets error code.Gets error message.voidsetErrorCode(int errorCode) Sets error code.voidsetErrorMessage(String errorMessage) Sets error message.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
Ok delete entity status code. -
DELETE_NOT_ALLOWED
The Delete not allowed. -
DELETE_NOT_ALLOWED_IN_GUI
The Delete not allowed in gui. -
SERVER_EXCEPTION
The Server exception. -
DATA_INTEGRITY_ERROR
The Data integrity error. -
ENTITY_USED_IN_PARAMETER
The Entity used in parameter.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getErrorCode
public int getErrorCode()Gets error code.- Returns:
- errorCode as int
-
setErrorCode
public void setErrorCode(int errorCode) Sets error code.- Parameters:
errorCode- the error code
-
getErrorMessage
Gets error message.- Returns:
- errorMessage as Strig
-
setErrorMessage
Sets error message.- Parameters:
errorMessage- the error message
-