| Package | Description |
|---|---|
| com.databasesandlife.util.jdbc |
| Modifier and Type | Method and Description |
|---|---|
void |
DbTransaction.deleteOrThrowForeignKeyConstraintViolation(String table,
String where,
Object... args)
For normal delete where you don't expect a possible foreign key constraint violation, use
DbTransaction.execute(String, Object...) instead |
protected void |
DbTransaction.rollbackToSavepointAndThrowConstraintViolation(Savepoint initialState,
RuntimeException exception)
If "exception" represents a violation exception it is thrown and the connection is rolled back to "initialState",
otherwise the original exception is re-thrown.
|
Copyright © 2003–2018. All rights reserved.