|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ChangeType> net.sf.basedb.core.log.ChangeType
public enum ChangeType
Enumeration that representst the type of change that has happened.
Enum Constant Summary | |
---|---|
CREATE
|
|
DELETE
|
|
UPDATE
|
Field Summary | |
---|---|
private int |
value
|
private String |
was
|
Method Summary | |
---|---|
static 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 |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ChangeType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
String |
was(String what)
Create a string for display purposes that explains what has happened to the what. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ChangeType CREATE
public static final ChangeType UPDATE
public static final ChangeType DELETE
Field Detail |
---|
private final int value
private final String was
Method Detail |
---|
public static ChangeType[] values()
for (ChangeType c : ChangeType.values()) System.out.println(c);
public static ChangeType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int getValue()
public String was(String what)
what
- The 'what' that something happened to
public static ChangeType fromValue(int value)
value
- The numerical value
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |