|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SqlCommand
This interface defines a SQL command, which may be rolled back.
| Method Summary | |
|---|---|
void |
cleanupOnCommit(java.sql.Connection connection)
Cleanup resources kept by this command, if the transaction is committed. |
void |
perform(java.sql.Connection connection)
Perform an atomic SQL command. |
void |
rollback(java.sql.Connection connection)
Roll back an atomic SQL command. |
| Method Detail |
|---|
void perform(java.sql.Connection connection)
throws java.sql.SQLException
connection - A JDBC connection on which to perform queries.
java.sql.SQLException - Upon database errors.
void rollback(java.sql.Connection connection)
throws java.sql.SQLException
connection - A JDBC connection on which to perform queries.
java.sql.SQLException - Upon database errors or when a rollback is
not supported.
void cleanupOnCommit(java.sql.Connection connection)
throws java.sql.SQLException
connection -
java.sql.SQLException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||