|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SqlTransaction
Interface for all builder helper classes that implement runtime functionality to execute a series of named JDBC Statements as a transaction.
Method Summary | |
---|---|
void |
commit(WebAppAccess webAppAccess)
Method used to commit any pending changes in the database and free all of the runtime resources allocated as the transaction steps were executed. |
void |
execute(WebAppAccess webAppAccess)
Method used to execute all of the SQL statements defined in the transaction. |
void |
execute(WebAppAccess webAppAccess,
java.lang.String stepName)
Method used to execute a specific step defined in the transaction. |
void |
initialize(WebAppAccess webAppAccess)
Method used to initialize the helper class with the current set of values for the indirect references that were used to define the builder's inputs. |
void |
rollback(WebAppAccess webAppAccess)
Method used to rollback any pending changes in the database and free all of the runtime resources allocated as the transaction steps were executed. |
Method Detail |
---|
void commit(WebAppAccess webAppAccess) throws java.sql.SQLException
webAppAccess
- The WebApp instance for the request.
java.sql.SQLException
- If the transaction cannot be committed. Typically
this exeception will have a detailed error message from the database on
why the various SQL statements executed for the transaction could not be
committed.void execute(WebAppAccess webAppAccess) throws java.sql.SQLException
webAppAccess
- The WebApp instance for the request.
java.sql.SQLException
- If the execution of a transaction step runs into a
problem a SQLException will be thrown. Typically this exeception will have
a detailed error message from the database on why the SQL statement executed
for the transaction step failed.void execute(WebAppAccess webAppAccess, java.lang.String stepName) throws java.sql.SQLException
webAppAccess
- The WebApp instance for the request.stepName
- The name of the transaction step (SQL statement) to be
executed. WebAppRuntimeException will be thrown if the step is not defined
in the transaction.
java.sql.SQLException
- If the execution of a transaction step runs into a
problem a SQLException will be thrown. Typically this exeception will have
a detailed error message from the database on why the SQL statement executed
for the transaction step failed.void initialize(WebAppAccess webAppAccess)
webAppAccess
- The web app access instance for the request. If NULL,
the the class will re-initialize itself with the values it already has.void rollback(WebAppAccess webAppAccess) throws java.sql.SQLException
webAppAccess
- The WebApp instance for the request.
java.sql.SQLException
- If the transaction cannot be rolled back. Typically
this exeception will have a detailed error message from the database on
why the various SQL statements executed for the transaction could not be
rolled back.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |