Java Reference
In-Depth Information
}
public void close() throws SQLException, WorkloadException
{
if (this.workResultSet != null)
{
try
{
this.workResultSet.close();
} catch (Exception e)
{
logger.log(Level.SEVERE,
"Error trying to close workload result set, ignoring...");
}
this.workResultSet = null;
}
for (RepeatableStatement statement : this.statements)
{
statement.close();
}
if (this.connection != null)
{
this.connection.close();
}
}
/**
* Determine if the workload contains the specified URL.
*
* @param url The URL to search the workload for.
* @return True of the workload contains the specified URL.
* @throws WorkloadException
*/
public boolean contains(URL url) throws WorkloadException
{
try
{
return (getWorkloadID(url, false) != -1);
} catch (SQLException e)
{
throw (new WorkloadException(e));
}
}
Search WWH ::




Custom Search