Java Reference
In-Depth Information
{
this.mutex.release();
}
}
/**
* Create the statement, so that it is ready to assign
* PreparedStatements.
*
* @param manager
* The manager that created this statement.
* @throws SQLException
* Thrown if an exception occurs.
*/
public void create(SQLWorkloadManager manager)
throws SQLException
{
close();
this.manager = manager;
}
/**
* Execute SQL that does not return a result set. If an
* error occurs, the statement will be retried until it is
* successful. This handles broken connections.
*
* @param parameters
* The parameters for this SQL.
* @throws WorkloadException
* Thrown if the SQL cannot be executed, and
* retrying the statement has failed.
*/
public void execute(Object... parameters)
throws WorkloadException
{
PreparedStatement statement = null;
try
{
statement = obtainStatement();
for (;;)
{
try
{
for (int i = 0; i < parameters.length; i++)
Search WWH ::




Custom Search