Package com.orientechnologies.orient.core.record.impl

Examples of com.orientechnologies.orient.core.record.impl.ODocument.rawField()


    final String[] fieldNames = iOnlyDelta && record.isTrackingChanges() ? record.getDirtyFields() : record.fieldNames();

    // MARSHALL ALL THE FIELDS OR DELTA IF TRACKING IS ENABLED
    for (String fieldName : fieldNames) {
      Object fieldValue = record.rawField(fieldName);
      if (i > 0)
        iOutput.append(OStringSerializerHelper.RECORD_SEPARATOR);

      // SEARCH FOR A CONFIGURED PROPERTY
      prop = record.getSchemaClass() != null ? record.getSchemaClass().getProperty(fieldName) : null;
View Full Code Here


      // TRAVERSE THE DOCUMENT ITSELF
      for (final String cfgField : cfgFields) {
        if (cfgField.equalsIgnoreCase(OSQLFilterItemFieldAny.FULL_NAME)) {
          // ANY
          for (final String fieldName : target.fieldNames())
            if (traverse(iRecord, iRootCondition, iCondition, target.rawField(fieldName), iLevel + 1, iEvaluatedRecords))
              return true;
        } else if (cfgField.equalsIgnoreCase(OSQLFilterItemFieldAny.FULL_NAME)) {
          // ALL
          for (final String fieldName : target.fieldNames())
            if (!traverse(iRecord, iRootCondition, iCondition, target.rawField(fieldName), iLevel + 1, iEvaluatedRecords))
View Full Code Here

            if (traverse(iRecord, iRootCondition, iCondition, target.rawField(fieldName), iLevel + 1, iEvaluatedRecords))
              return true;
        } else if (cfgField.equalsIgnoreCase(OSQLFilterItemFieldAny.FULL_NAME)) {
          // ALL
          for (final String fieldName : target.fieldNames())
            if (!traverse(iRecord, iRootCondition, iCondition, target.rawField(fieldName), iLevel + 1, iEvaluatedRecords))
              return false;
          return true;
        } else {
          if (traverse(iRecord, iRootCondition, iCondition, target.rawField(cfgField), iLevel + 1, iEvaluatedRecords))
            return true;
View Full Code Here

          for (final String fieldName : target.fieldNames())
            if (!traverse(iRecord, iRootCondition, iCondition, target.rawField(fieldName), iLevel + 1, iEvaluatedRecords))
              return false;
          return true;
        } else {
          if (traverse(iRecord, iRootCondition, iCondition, target.rawField(cfgField), iLevel + 1, iEvaluatedRecords))
            return true;
        }
      }

    } else if (iTarget instanceof OQueryRuntimeValueMulti) {
View Full Code Here

              else
                try {
                  if (record.getInternalStatus() == ORecordElement.STATUS.NOT_LOADED)
                    record.load();

                  ioResult = ioResult != null ? record.rawField(op.value.get(0)) : null;
                } catch (ORecordNotFoundException e) {
                  ioResult = null;
                }
            }
View Full Code Here

        parameters = null;
      else {
        final ODocument param = new ODocument();
        param.fromStream(paramBuffer);

        final Map<String, Object> params = param.rawField("params");

        parameters = new HashMap<Object, Object>();
        for (Entry<String, Object> p : params.entrySet()) {
          if (Character.isDigit(p.getKey().charAt(0)))
            parameters.put(Integer.parseInt(p.getKey()), p.getValue());
View Full Code Here

        parameters = null;
      else {
        final ODocument param = new ODocument();
        param.fromStream(paramBuffer);

        Map<String, Object> params = param.rawField("params");

        parameters = new HashMap<Object, Object>();
        for (Entry<String, Object> p : params.entrySet()) {
          if (Character.isDigit(p.getKey().charAt(0)))
            parameters.put(Integer.parseInt(p.getKey()), p.getValue());
View Full Code Here

      // TRAVERSE THE DOCUMENT ITSELF
      for (String cfgField : cfgFields) {
        if (cfgField.equalsIgnoreCase(OSQLFilterItemFieldAny.FULL_NAME)) {
          // ANY
          for (String fieldName : target.fieldNames())
            if (traverse(iRecord, iRootCondition, iCondition, target.rawField(fieldName), iLevel + 1, iEvaluatedRecords))
              return true;
        } else if (cfgField.equalsIgnoreCase(OSQLFilterItemFieldAny.FULL_NAME)) {
          // ALL
          for (String fieldName : target.fieldNames())
            if (!traverse(iRecord, iRootCondition, iCondition, target.rawField(fieldName), iLevel + 1, iEvaluatedRecords))
View Full Code Here

            if (traverse(iRecord, iRootCondition, iCondition, target.rawField(fieldName), iLevel + 1, iEvaluatedRecords))
              return true;
        } else if (cfgField.equalsIgnoreCase(OSQLFilterItemFieldAny.FULL_NAME)) {
          // ALL
          for (String fieldName : target.fieldNames())
            if (!traverse(iRecord, iRootCondition, iCondition, target.rawField(fieldName), iLevel + 1, iEvaluatedRecords))
              return false;
          return true;
        } else {
          if (traverse(iRecord, iRootCondition, iCondition, target.rawField(cfgField), iLevel + 1, iEvaluatedRecords))
            return true;
View Full Code Here

          for (String fieldName : target.fieldNames())
            if (!traverse(iRecord, iRootCondition, iCondition, target.rawField(fieldName), iLevel + 1, iEvaluatedRecords))
              return false;
          return true;
        } else {
          if (traverse(iRecord, iRootCondition, iCondition, target.rawField(cfgField), iLevel + 1, iEvaluatedRecords))
            return true;
        }
      }

    } else if (iTarget instanceof OQueryRuntimeValueMulti) {
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.