Examples of rawField()


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

              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

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

    final Set<String> fieldNamesIterator = iOnlyDelta && record.isTrackingChanges() ? record.getDirtyFields() : record.fieldNames();

    // MARSHALL ALL THE FIELDS OR DELTA IF TRACKING IS ENABLED
    for (String fieldName : fieldNamesIterator) {
      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

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

              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

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

        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

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

       ODocument doc = new ODocument(className, new ORecordId(rid));
       doc.reload(null, true);

       // BIND ALL CHANGED FIELDS
       for (Entry<String, String> f : fields.entrySet()) {
         final Object oldValue = doc.rawField(f.getKey());
         String userValue = f.getValue();

         if (userValue != null && userValue.equals("undefined"))
           doc.removeField(f.getKey());
         else {
View Full Code Here

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

            if (rec instanceof ODocument) {
              boolean changed = false;

              final ODocument doc = (ODocument) rec;
              for (String fieldName : doc.fieldNames()) {
                final Object fieldValue = doc.rawField(fieldName);

                if (fieldValue instanceof OIdentifiable) {
                  if (fixLink(fieldValue)) {
                    doc.field(fieldName, (OIdentifiable) null);
                    fixedLinks++;
View Full Code Here

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

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

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

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

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

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

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

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

      final Object fieldValue;
      if (field instanceof OSQLFilterItem)
        fieldValue = ((OSQLFilterItem) field).getValue(doc, null, null);
      else
        fieldValue = doc.rawField(field.toString());

      if (fieldValue != null) {
        final OTraverseAbstractProcess<?> subProcess;

        if (fieldValue instanceof Iterator<?> || OMultiValue.isMultiValue(fieldValue)) {
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.