Examples of OObjectEnumLazyList


Examples of com.orientechnologies.orient.object.enumerations.OObjectEnumLazyList

        List<Object> docList = doc.field(fieldName, OType.EMBEDDEDLIST);
        if (docList == null) {
          docList = new ArrayList<Object>();
          setDocFieldValue(fieldName, docList, OType.EMBEDDEDLIST);
        }
        value = new OObjectEnumLazyList(enumClass, doc, docList, (List<?>) value);
      } else if (value instanceof Set) {
        Set<Object> docSet = doc.field(fieldName, OType.EMBEDDEDSET);
        if (docSet == null) {
          docSet = new HashSet<Object>();
          setDocFieldValue(fieldName, docSet, OType.EMBEDDEDSET);
View Full Code Here

Examples of com.orientechnologies.orient.object.enumerations.OObjectEnumLazyList

      }
    } else if (genericType != null && genericType.isEnum()) {
      if (value instanceof List<?>) {
        final List<Object> list = new ArrayList<Object>();
        setDocFieldValue(f.getName(), list, OType.EMBEDDEDLIST);
        value = new OObjectEnumLazyList(genericType, doc, list, (List<Object>) value);
      } else {
        final Set<Object> set = new HashSet<Object>();
        setDocFieldValue(f.getName(), set, OType.EMBEDDEDSET);
        value = new OObjectEnumLazySet(genericType, doc, set, (Set<Object>) value);
      }
View Full Code Here

Examples of com.orientechnologies.orient.object.enumerations.OObjectEnumLazyList

      } else {
        value = new OObjectCustomSerializerSet(OObjectEntitySerializer.getSerializedType(f), doc, (Set<Object>) value);
      }
    } else if (genericType != null && genericType.isEnum()) {
      if (value instanceof List<?>) {
        value = new OObjectEnumLazyList(genericType, doc, (List<Object>) value);
      } else {
        value = new OObjectEnumLazySet(genericType, doc, (Set<Object>) value);
      }
    }
View Full Code Here

Examples of com.orientechnologies.orient.object.enumerations.OObjectEnumLazyList

      } else {
        target = new OObjectCustomSerializerSet(OObjectEntitySerializer.getSerializedType(f), iRootRecord, (Set<Object>) iterable);
      }
    } else if (genericType.isEnum()) {
      if (iterable instanceof List<?>) {
        target = new OObjectEnumLazyList(genericType, iRootRecord, (List<Object>) iterable);
      } else {
        target = new OObjectEnumLazySet(genericType, iRootRecord, (Set<Object>) iterable);
      }
    } else {
      if (iterable instanceof List<?>) {
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.