public abstract class
DataSourceProcess represents a data source transaction process. Subclasses are required to implement the doTransaction() method for the transaction process.
This process will only manage, for example commit or rollback, the transaction encapsulated if its DataSourceDAO is not under a transaction and it is not explicitly instructed, in construction, to use a specified transaction.
Author: Hugo Y. K. Lam
getParameterCount(PreparedStatement pStmt, String sql)¶
Counts the number of parameters required by the prepared statement. If a parameter meta data is not available, it counts the occurrences of ‘?’ in the given SQL statement.
- pStmt – the prepared statement.
- sql – the SQL statement.
the numbder of parameters.
Checks if this process has committed the transaction.
Returns: true if this process has committed the transaction.
Checks if this process has rolled back the transaction.
Returns: true if this process has rolled back the transaction.
Checks if this process has already been started.
Returns: true if the this process has already been started.