/**
* {@inheritDoc}
*/
public void doRepair(ResultSet resultSet) throws SQLException
{
WorkspaceStorageConnection conn = null;
try
{
conn = connFactory.openConnection();
if (conn instanceof StatisticsJDBCStorageConnection)
{
conn = ((StatisticsJDBCStorageConnection)conn).getNestedWorkspaceStorageConnection();
}
if (!(conn instanceof JDBCStorageConnection))
{
throw new SQLException("Connection is instance of " + conn);
}
repairRow((JDBCStorageConnection)conn, resultSet);
conn.commit();
}
catch (RepositoryException e)
{
rollback(conn);
throw new SQLException(e);