return fetchPlan;
}
};
Object pojo = om.findObjectUsingAID(clr.classForName(acmd.getFullClassName()), fv, ignoreCache, true);
StateManager stateMgr = om.findStateManager(pojo);
DatastorePersistenceHandler handler = storeMgr.getPersistenceHandler();
// TODO(maxr): Seems like we should be able to refactor the handler
// so that we can do a fetch without having to hide the entity in the
// state manager.
handler.setAssociatedEntity(stateMgr, EntityUtils.getCurrentTransaction(om), entity);
int[] fieldsToFetch =
fetchPlan != null ?
fetchPlan.getFetchPlanForClass(acmd).getFieldsInActualFetchPlan() : acmd.getAllMemberPositions();
storeMgr.getPersistenceHandler().fetchObject(
stateMgr, fieldsToFetch);