|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<IdSource>
org.jminor.common.model.IdSource
public enum IdSource
A enum representing the possible ways of retrieving a new ID value.
Enum Constant Summary | |
---|---|
AUTO_INCREMENT
the id value is set automatically from a sequence (e.g. by trigger) or is automatically incremented |
|
MAX_PLUS_ONE
the id value is derived from the max id value in the table |
|
NONE
the id is set manually or can be disregarded |
|
QUERY
the id source is a query |
|
SEQUENCE
the id value should be selected from a sequence |
Method Summary | |
---|---|
boolean |
isAutoGenerated()
|
boolean |
isAutoIncrement()
|
boolean |
isQueried()
|
static IdSource |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IdSource[] |
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 IdSource AUTO_INCREMENT
public static final IdSource MAX_PLUS_ONE
public static final IdSource NONE
public static final IdSource SEQUENCE
public static final IdSource QUERY
Method Detail |
---|
public static IdSource[] values()
for (IdSource c : IdSource.values()) System.out.println(c);
public static IdSource 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 boolean isQueried()
public boolean isAutoIncrement()
public boolean isAutoGenerated()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |