ResultSet rs = sqlControl.executeStatementQuery(mconn, stmt, ps);
try
{
if (!rs.next())
{
throw new NucleusDataStoreException("Size request returned no result row: " + stmt);
}
numRows = rs.getInt(1);
JDBCUtils.logWarnings(rs);
}
finally
{
rs.close();
}
}
finally
{
sqlControl.closeStatement(mconn, ps);
}
}
finally
{
mconn.release();
}
}
catch (SQLException e)
{
throw new NucleusDataStoreException("Size request failed: " + stmt, e);
}
return numRows;
}