|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<IDMethod>
org.apache.torque.adapter.IDMethod
public enum IDMethod
Interface for various ID retrieval method types (i.e. auto-increment, sequence, ID broker, etc.).
Enum Constant Summary | |
---|---|
AUTO_INCREMENT
Key generation via auto-increment. |
|
ID_BROKER
Key generation via the IDBroker table. |
|
NATIVE
Key generation via database-specific ID method (i.e. |
|
NO_ID_METHOD
No RDBMS key generation (keys may be generated by the application). |
|
SEQUENCE
Key generation via sequences. |
Method Summary | |
---|---|
static IDMethod |
getIdMethod(String idMethod)
Returns the id method for a id method name. |
String |
toString()
|
static IDMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IDMethod[] |
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, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final IDMethod NATIVE
public static final IDMethod AUTO_INCREMENT
public static final IDMethod SEQUENCE
public static final IDMethod ID_BROKER
public static final IDMethod NO_ID_METHOD
Method Detail |
---|
public static IDMethod[] values()
for (IDMethod c : IDMethod.values()) System.out.println(c);
public static IDMethod 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 String toString()
toString
in class Enum<IDMethod>
public static IDMethod getIdMethod(String idMethod)
idMethod
- the name of the id method.
IllegalArgumentException
- if idMethod is not a known name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |