|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.akquinet.jbosscc.needle.db.operation.AbstractDBOperation
de.akquinet.jbosscc.needle.db.operation.hsql.HSQLDeleteOperation
public class HSQLDeleteOperation
Delete everything from the DB: This cannot be done with the JPA, because the order of deletion matters. Instead we directly use a JDBC connection.
| Constructor Summary | |
|---|---|
HSQLDeleteOperation(JdbcConfiguration configuration)
|
|
| Method Summary | |
|---|---|
protected void |
deleteContent(List<String> tables,
Statement statement)
Deletes all contents from the given tables. |
protected void |
disableReferentialIntegrity(Statement statement)
Disables the referential constraints of the database, e.g foreign keys. |
protected void |
enableReferentialIntegrity(Statement statement)
Enabled the referential constraints of the database, e.g foreign keys. |
void |
setUpOperation()
Execute the database operation in test setup. |
void |
tearDownOperation()
Execute the database operation in test tear down. |
| Methods inherited from class de.akquinet.jbosscc.needle.db.operation.AbstractDBOperation |
|---|
closeConnection, commit, executeScript, getConnection, getTableNames, openConnection, rollback |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HSQLDeleteOperation(JdbcConfiguration configuration)
| Method Detail |
|---|
public void setUpOperation()
throws SQLException
SQLException - if a database access error occurs
public void tearDownOperation()
throws SQLException
AbstractDBOperation.getTableNames(java.sql.Connection).
SQLException - if a database access error occurs
protected void disableReferentialIntegrity(Statement statement)
throws SQLException
SQLException - - if a database access error occurs
protected void enableReferentialIntegrity(Statement statement)
throws SQLException
SQLException - - if a database access error occurs
protected void deleteContent(List<String> tables,
Statement statement)
throws SQLException
tables - a List of table names who are to be deleted.statement - the Statement to used for executing a SQL statement.
SQLException - - if a database access error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||