|
||||||||||
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(Connection connection)
Cleanup resources kept by this command, if the transaction is committed. |
String |
getTempTableName()
|
boolean |
isTempTableCreated()
|
void |
perform(Connection connection)
Perform an atomic SQL command. |
void |
rollback(Connection connection)
Roll back an atomic SQL command. |
Method Detail |
---|
void perform(Connection connection) throws SQLException
connection
- A JDBC connection on which to perform queries.
SQLException
- Upon database errors.void rollback(Connection connection) throws SQLException
connection
- A JDBC connection on which to perform queries.
SQLException
- Upon database errors or when a rollback is
not supported.void cleanupOnCommit(Connection connection) throws SQLException
connection
-
SQLException
String getTempTableName()
boolean isTempTableCreated()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |