|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CommandFilterIF
Allows you to perform tasks just before and just
after a command is executed.
You can also catch exceptions that happen.
| Method Summary | |
|---|---|
void |
afterCommand(java.sql.Connection connection,
CommandIF command)
Implement this if you want to do something special after each command is run but before the connection is closed |
boolean |
beforeCommand(java.sql.Connection connection,
CommandIF command)
Implement this if you want to do something special before each command is run. |
boolean |
catchException(CommandIF command,
java.sql.SQLException e)
Any SQLException will be passed to this method. |
| Method Detail |
|---|
boolean beforeCommand(java.sql.Connection connection,
CommandIF command)
throws java.sql.SQLException
connection - the connection being usedcommand - the command about to be run
java.sql.SQLException - if anything goes wrong. This will terminate the script.
void afterCommand(java.sql.Connection connection,
CommandIF command)
throws java.sql.SQLException
connection - the connection being usedcommand - the command that was run
java.sql.SQLException - if anything goes wrong. This will terminate the script.
boolean catchException(CommandIF command,
java.sql.SQLException e)
e - the exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||