|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Database-independent sequence API.
Method Summary | |
long |
nextval()
Increments the sequence and returns the new value. |
Sequence |
update(java.lang.String table,
java.lang.String column)
Update sequence value based on the maximum value in a column of a database table. |
Method Detail |
public long nextval() throws GeneralDatabaseException
GeneralDatabaseException
public Sequence update(java.lang.String table, java.lang.String column)
Example:
static final Sequence seq = new Sequence ("acl").update ("acl", "aid").update ("acld", "aid");
table
- the name of the table to querycolumn
- the name of the column in the given table to query
java.lang.IllegalArgumentException
- if a parameter contains an invalid SQL identifier
java.lang.RuntimeException
- (unchecked!) if a database error or inconsistency occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |