Package net.sf.basedb.core.log
Enum Class ChangeType
- All Implemented Interfaces:
Serializable
,Comparable<ChangeType>
,Constable
Enumeration that represents the type of change that has happened.
Note! BASE 3.9 added some new change types not actually related
to change.
- Version:
- 2.13
- Author:
- Nicklas
- Last modified
- $Date: 2016-06-03 10:01:23 +0200 (fr, 03 jun 2016) $
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeType
fromValue
(int value) Get the change type corresponding to the given numerical value.int
getValue()
Get the numerical value for this change type.static ChangeType
Returns the enum constant of this class with the specified name.static ChangeType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Create a string for display purposes that explains what has happened to the what.
-
Enum Constant Details
-
CREATE
-
UPDATE
-
DELETE
-
ADD
-
REMOVE
-
VIEW
- Since:
- 3.9
-
DOWNLOAD
- Since:
- 3.9
-
-
Field Details
-
value
private final int value -
was
-
-
Constructor Details
-
ChangeType
-
-
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
-
getValue
public int getValue()Get the numerical value for this change type. Each change type has a unique value. -
was
Create a string for display purposes that explains what has happened to the what. For example, if what is 'Annotation', this method may return 'Annotation created'.- Parameters:
what
- The 'what' that something happened to- Returns:
- A string
-
fromValue
Get the change type corresponding to the given numerical value.- Parameters:
value
- The numerical value- Returns:
- The change type, or null if there is no change type with the same valye
-