|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--util.sql.MandatoryUpdateProcessor
An update processor that mandates that at least one row have been updated as part of the query. Throws an exception if otherwise.
Method Summary | |
static UpdateProcessor |
getInstance()
Get an instance of this update processor. |
void |
process(int rows)
Takes the number of rows that were updated as a result of a sql update and do whatever you want with it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static UpdateProcessor getInstance()
public void process(int rows)
In this case, an update is mandatory, so if no rows were updated then throw an exception.
process
in interface UpdateProcessor
rows
- the number of rows updatedSQLException
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |