// full resultset since the results are limited on the
// server.
criteria.setLimit(-1);
criteria.setOffset(0);
}
else if (limit > 0 && db.supportsNativeLimit() )
{
limitString = String.valueOf(limit);
// Now set the criteria's limit to return the full
// resultset since the results are limited on the server.