| Package | Description |
|---|---|
| com.databasesandlife.util.jdbc |
| Modifier and Type | Method and Description |
|---|---|
long |
DbTransaction.insertAndFetchNewIdOrThrowUniqueConstraintViolation(String table,
Map<String,?> cols) |
void |
DbTransaction.insertOrThrowUniqueConstraintViolation(String table,
Map<String,?> cols) |
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.
|
void |
DbTransaction.updateOrThrowUniqueConstraintViolation(String table,
Map<String,?> cols,
String where,
Object... whereParams) |
Copyright © 2003–2018. All rights reserved.