Examples of OObjectLazyList


Examples of com.orientechnologies.orient.object.db.OObjectLazyList

          docList = new ORecordLazyList(doc);
          setDocFieldValue(f.getName(), docList, type);
        } else if (isFieldUpdate) {
          docList.clear();
        }
        value = new OObjectLazyList(self, docList, value,
            OObjectEntitySerializer.isCascadeDeleteField(self.getClass(), f.getName()));
      } else if (value instanceof Set) {
        OType type = embedded ? OType.EMBEDDEDSET : OType.LINKSET;
        Set<OIdentifiable> docSet = doc.field(f.getName(), type);
        if (docSet == null) {
View Full Code Here

Examples of com.orientechnologies.orient.object.db.OObjectLazyList

  protected Object manageCollectionLoad(final Field f, final Object self, Object value, final boolean customSerialization) {
    final Class genericType = OReflectionHelper.getGenericMultivalueType(f);
    if (value instanceof ORecordLazyList
        || (value instanceof OTrackedList<?> && (genericType == null || !OReflectionHelper.isJavaType(genericType))
            && !customSerialization && (genericType == null || !genericType.isEnum()))) {
      value = new OObjectLazyList(self, (List<OIdentifiable>) value, OObjectEntitySerializer.isCascadeDeleteField(self.getClass(),
          f.getName()));
    } else if (value instanceof ORecordLazySet
        || value instanceof OMVRBTreeRIDSet
        || (value instanceof OTrackedSet<?> && (genericType == null || !OReflectionHelper.isJavaType(genericType))
            && !customSerialization && (genericType == null || !genericType.isEnum()))) {
View Full Code Here

Examples of com.orientechnologies.orient.object.db.OObjectLazyList

  @SuppressWarnings({ "unchecked", "rawtypes" })
  public void processStandardField(final ODocument iRecord, final Object iFieldValue, final String iFieldName,
      final OFetchContext iContext, final Object iUserObject, final String iFormat) throws OFetchException {
    if (iFieldValue instanceof ORecordLazyList)
      OObjectSerializerHelper.setFieldValue(iUserObject, iFieldName, new OObjectLazyList(iRecord, (ORecordLazyList) iFieldValue,
          OObjectEntitySerializer.isCascadeDeleteField(iUserObject.getClass(), iFieldName)));
    else if (iFieldValue instanceof ORecordLazySet)
      OObjectSerializerHelper.setFieldValue(iUserObject, iFieldName, new OObjectLazySet(iRecord, (ORecordLazySet) iFieldValue,
          OObjectEntitySerializer.isCascadeDeleteField(iUserObject.getClass(), iFieldName)));
    else if (iFieldValue instanceof ORecordLazyMap)
View Full Code Here

Examples of com.orientechnologies.orient.object.db.OObjectLazyList

    final Class genericType = OReflectionHelper.getGenericMultivalueType(f);
    Collection target;
    if (iterable instanceof ORecordLazyList
        || (iterable instanceof OTrackedList<?> && !OReflectionHelper.isJavaType(genericType) && !customSerialization && !genericType
            .isEnum())) {
      target = new OObjectLazyList(iUserObject, (List<OIdentifiable>) iterable, OObjectEntitySerializer.isCascadeDeleteField(
          iUserObject.getClass(), f.getName()));
    } else if (iterable instanceof ORecordLazySet
        || iterable instanceof OMVRBTreeRIDSet
        || (iterable instanceof OTrackedSet<?> && !OReflectionHelper.isJavaType(genericType) && !customSerialization && !genericType
            .isEnum())) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.