public static enum DatabaseResourceTask.ResourceType extends Enum<DatabaseResourceTask.ResourceType>
Enum Constant and Description |
---|
JDBC_RESOURCE |
PERSISTENCE_RESOURCE |
Modifier and Type | Method and Description |
---|---|
static DatabaseResourceTask.ResourceType |
fromOptionName(String name) |
abstract String |
getOptionName() |
static String[] |
getOptionNames() |
static DatabaseResourceTask.ResourceType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DatabaseResourceTask.ResourceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DatabaseResourceTask.ResourceType PERSISTENCE_RESOURCE
public static final DatabaseResourceTask.ResourceType JDBC_RESOURCE
public static DatabaseResourceTask.ResourceType[] values()
for (DatabaseResourceTask.ResourceType c : DatabaseResourceTask.ResourceType.values()) System.out.println(c);
public static DatabaseResourceTask.ResourceType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract String getOptionName()
public static DatabaseResourceTask.ResourceType fromOptionName(String name) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public static String[] getOptionNames()