|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<File.Action>
net.sf.basedb.core.File.Action
public static enum File.Action
A fileaction describes if a file should be moved to secondary storage or brought back from it. The actual moving of the file is done by an external progam.
| Enum Constant Summary | |
|---|---|
MOVE_TO_PRIMARY
The file should be brought back from secondary storage. |
|
MOVE_TO_SECONDARY
The file should be moved to secondary storage |
|
NOTHING
Do nothing. |
|
| Field Summary | |
|---|---|
private int |
value
The integer value of this fileaction. |
private static Map<Integer,File.Action> |
valueMapping
Maps the integer that is stored in the database with an fileaction. |
| Method Summary | |
|---|---|
static File.Action |
fromValue(int value)
Get the File.Action object when you know the integer code. |
int |
getValue()
Get the integer value that is used when storing an File.Action to the database. |
static File.Action |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static File.Action[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| 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 File.Action NOTHING
public static final File.Action MOVE_TO_PRIMARY
public static final File.Action MOVE_TO_SECONDARY
| Field Detail |
|---|
private static final Map<Integer,File.Action> valueMapping
private final int value
| Method Detail |
|---|
public static File.Action[] values()
for (File.Action c : File.Action.values()) System.out.println(c);
public static File.Action 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 static File.Action fromValue(int value)
File.Action object when you know the integer code.
value - The integer value.
public int getValue()
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||