{
throw new JPOXException(LOCALISER.msg("056005")).setFatal();
}
// Add the required field selections to the statement and get a factory for extracting them
ResultObjectFactory rof = newResultObjectFactory(ownerSM, stmt, false, true);
ObjectManager om = ownerSM.getObjectManager();
Transaction tx = om.getTransaction();
boolean useUpdateLock = ((Boolean)tx.getOptions().get("transaction.serializeReadObjects")).booleanValue();
String statement = storeMgr.getStatementTextForQuery(stmt, useUpdateLock);