Package com.priint.pubserver.entity
Enum DeleteEntityStatus.DeleteEntityStatusCode
- java.lang.Object
-
- java.lang.Enum<DeleteEntityStatus.DeleteEntityStatusCode>
-
- com.priint.pubserver.entity.DeleteEntityStatus.DeleteEntityStatusCode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<DeleteEntityStatus.DeleteEntityStatusCode>
- Enclosing class:
- DeleteEntityStatus
public static enum DeleteEntityStatus.DeleteEntityStatusCode extends java.lang.Enum<DeleteEntityStatus.DeleteEntityStatusCode>
List of possible status codes after deleting entityYou can get the type from calling
DeleteEntityStatus.getDeleteEntityStatusCode()on an enum value.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DATA_INTEGRITY_ERRORThe Data integrity error.DELETE_NOT_ALLOWEDThe Delete not allowed.DELETE_NOT_ALLOWED_IN_GUIThe Delete not allowed in gui.ENTITY_USED_IN_PARAMETERThe Entity used in parameter.OKOk delete entity status code.SERVER_EXCEPTIONThe Server exception.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()Gets error code.java.lang.StringgetErrorMessage()Gets error message.voidsetErrorCode(int errorCode)Sets error code.voidsetErrorMessage(java.lang.String errorMessage)Sets error message.static DeleteEntityStatus.DeleteEntityStatusCodevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DeleteEntityStatus.DeleteEntityStatusCode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final DeleteEntityStatus.DeleteEntityStatusCode OK
Ok delete entity status code.
-
DELETE_NOT_ALLOWED
public static final DeleteEntityStatus.DeleteEntityStatusCode DELETE_NOT_ALLOWED
The Delete not allowed.
-
DELETE_NOT_ALLOWED_IN_GUI
public static final DeleteEntityStatus.DeleteEntityStatusCode DELETE_NOT_ALLOWED_IN_GUI
The Delete not allowed in gui.
-
SERVER_EXCEPTION
public static final DeleteEntityStatus.DeleteEntityStatusCode SERVER_EXCEPTION
The Server exception.
-
DATA_INTEGRITY_ERROR
public static final DeleteEntityStatus.DeleteEntityStatusCode DATA_INTEGRITY_ERROR
The Data integrity error.
-
ENTITY_USED_IN_PARAMETER
public static final DeleteEntityStatus.DeleteEntityStatusCode ENTITY_USED_IN_PARAMETER
The Entity used in parameter.
-
-
Method Detail
-
values
public static DeleteEntityStatus.DeleteEntityStatusCode[] 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 (DeleteEntityStatus.DeleteEntityStatusCode c : DeleteEntityStatus.DeleteEntityStatusCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DeleteEntityStatus.DeleteEntityStatusCode 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
-
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
public java.lang.String getErrorMessage()
Gets error message.- Returns:
- errorMessage as Strig
-
setErrorMessage
public void setErrorMessage(java.lang.String errorMessage)
Sets error message.- Parameters:
errorMessage- the error message
-
-