|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jfw.database.oracle.Sequence
public final class Sequence
Execute an Oracle sequence for get the next value.
Example
String nextValue = Sequence.get("MY_SEQUENCE_NAME");
| Field Summary | |
|---|---|
static java.lang.String |
SEQUENCE_ID_KEY
The key of outputdata HashMap of method execute(java.util.HashMap),
associated with the value of the sequence. |
static java.lang.String |
SEQUENCE_NAME_KEY
The column name with the sequence value. |
| Constructor Summary | |
|---|---|
Sequence()
|
|
| Method Summary | |
|---|---|
void |
execute(java.util.HashMap outputdata)
Execute the query. |
static java.lang.String |
get(java.lang.String sequence)
Return the next value of the sequence. |
void |
setData(java.lang.Object data)
Set attribute data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SEQUENCE_NAME_KEY
public static final java.lang.String SEQUENCE_ID_KEY
execute(java.util.HashMap),
associated with the value of the sequence.
| Constructor Detail |
|---|
public Sequence()
| Method Detail |
|---|
public void setData(java.lang.Object data)
data.
setData in interface QueryGatewayInterfacedata - the value of attribute data.
public void execute(java.util.HashMap outputdata)
throws DatabaseException
execute in interface QueryGatewayInterfaceoutputdata - contains data returned by the query.The value of sequence
is associated with key SEQUENCE_ID_KEY.
DatabaseException
public static java.lang.String get(java.lang.String sequence)
throws DatabaseException
sequence - the sequence name to use.
DatabaseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||