query = String.format("SELECT COUNT(*) FROM %s", SQLUtils.quoteSchemaTable(conn, schemaName, tableName));
return SQLUtils.getSingleIntFromQuery(stmt, query, 0) == 0;
}
catch (SQLException cause)
{
throw new RemoteException("Unable to get row count", new SQLExceptionWithQuery(query, cause));
}
finally
{
SQLUtils.cleanup(stmt);
}