{
return om.findObject(oid, new FieldValues()
{
public void fetchFields(StateManager sm)
{
sm.replaceFields(fieldNumbers, new ResultSetGetter(sm, rs, stmtExprIndex), false);
}
public void fetchNonLoadedFields(StateManager sm)
{
sm.replaceNonLoadedFields(fieldNumbers, new ResultSetGetter(sm, rs, stmtExprIndex));
}
public FetchPlan getFetchPlanForLoading()
{
return om.getFetchPlan();
}
});
}
else
{
return om.findObject(oid, new FieldValues()
{
public void fetchFields(StateManager sm)
{
sm.replaceFields(fieldNumbers, new ResultSetGetter(sm, rs, stmtExprIndex), false);
}
public void fetchNonLoadedFields(StateManager sm)
{
sm.replaceNonLoadedFields(fieldNumbers, new ResultSetGetter(sm, rs, stmtExprIndex));
}
public FetchPlan getFetchPlanForLoading()
{
return om.getFetchPlan();
}