Code example for Collection

Methods: add

0
      if (!((OObjectFetchContext) iContext).isLazyLoading()) {
        Object value = ((OObjectFetchContext) iContext).getObj2RecHandler().getUserObjectByRecord((ODocument) iLinked,
            ((OObjectFetchContext) iContext).getFetchPlan());
        if (!((OObjectFetchContext) iContext).isLazyLoading()) {
          Collection<Object> target = (Collection<Object>) OObjectSerializerHelper.getFieldValue(iUserObject, iFieldName);
          target.add(value);
          OObjectSerializerHelper.setFieldValue(iUserObject, iFieldName, target);
        } 
      } 
      return; 
    } else if (iLinked instanceof ORecordSchemaAware
        && !(((OObjectFetchContext) iContext).getObj2RecHandler().existsUserObjectByRID(iLinked.getIdentity()))) {
      fetchLinked(iRootRecord, iUserObject, iFieldName, (ORecordSchemaAware<?>) iLinked, iContext);
    } 
  } 
 
  public Object fetchLinkedMapEntry(final ORecordSchemaAware<?> iRoot, final Object iUserObject, final String iFieldName,
      String iKey, final ORecordSchemaAware<?> iLinked, final OFetchContext iContext) throws OFetchException {
    Object value = null;
    final Class<?> type = OObjectSerializerHelper.getFieldType((ODocument) iLinked,
Contextual code suggestions in your IDE  Get Codota for Java