protected static Object getObjectUsingApplicationIdForDBObject(final DBObject dbObject, final AbstractClassMetaData cmd,
final ExecutionContext ec, boolean ignoreCache, final int[] fpMembers)
{
Object id = IdentityUtils.getApplicationIdentityForResultSetRow(ec, cmd, null,
false, new FetchFieldManager(ec, dbObject, cmd));
Object pc = ec.findObject(id,
new FieldValues()
{
public void fetchFields(ObjectProvider sm)
{
sm.replaceFields(fpMembers, new FetchFieldManager(ec, dbObject, cmd));
}
public void fetchNonLoadedFields(ObjectProvider sm)
{
sm.replaceNonLoadedFields(fpMembers, new FetchFieldManager(ec, dbObject, cmd));
}
public FetchPlan getFetchPlanForLoading()
{
return null;
}