Examples of fieldNames()


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

    // MERGE CONFIG
    final ODocument cfgDoc = new ODocument().fromJSON(iServerClusterConfiguration);

    Object fieldValue;
    for (String fieldName : cfgDoc.fieldNames()) {
      fieldValue = cfgDoc.field(fieldName);

      ODocument clusterConfig = clusters.field(fieldName);
      if (clusterConfig == null)
        // GET THE CONFIG OF THE NEW SERVER
View Full Code Here

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

    OClass linkedClass;
    OType linkedType;
    String fieldClassName;
    int i = 0;

    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)
View Full Code Here

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

      // 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())
View Full Code Here

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

          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))
              return false;
          return true;
        } else {
          if (traverse(iRecord, iRootCondition, iCondition, target.rawField(cfgField), iLevel + 1, iEvaluatedRecords))
View Full Code Here

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

      ODocument rec = (ODocument) currentRecord;
      out.println("--------------------------------------------------");
      out.printf("ODocument - Class: %s   id: %s   v.%d\n", rec.getClassName(), rec.getIdentity().toString(), rec.getVersion());
      out.println("--------------------------------------------------");
      Object value;
      for (String fieldName : rec.fieldNames()) {
        value = rec.field(fieldName);
        if (value instanceof byte[])
          value = "byte[" + ((byte[]) value).length + "]";
        out.printf("%20s : %-20s\n", fieldName, value);
      }
View Full Code Here

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

      ODocument rec = (ODocument) currentRecord;
      out.println("--------------------------------------------------");
      out.printf("ODocument - Class: %s   id: %s   v.%d\n", rec.getClassName(), rec.getIdentity().toString(), rec.getVersion());
      out.println("--------------------------------------------------");
      Object value;
      for (String fieldName : rec.fieldNames()) {
        value = rec.field(fieldName);
        if (value instanceof byte[])
          value = "byte[" + ((byte[]) value).length + "]";
        out.printf("%20s : %-20s\n", fieldName, value);
      }
View Full Code Here

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

      // 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())
View Full Code Here

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

          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))
              return false;
          return true;
        } else {
          if (traverse(iRecord, iRootCondition, iCondition, target.rawField(cfgField), iLevel + 1, iEvaluatedRecords))
View Full Code Here

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

    // MERGE CONFIG
    final ODocument cfgDoc = new ODocument().fromJSON(iServerClusterConfiguration);

    Object fieldValue;
    for (String fieldName : cfgDoc.fieldNames()) {
      fieldValue = cfgDoc.field(fieldName);

      ODocument clusterConfig = clusters.field(fieldName);
      if (clusterConfig == null)
        // GET THE CONFIG OF THE NEW SERVER
View Full Code Here

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

      // 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.field(fieldName), iLevel + 1, iEvaluatedRecords))
              return true;
        } else if (cfgField.equalsIgnoreCase(OSQLFilterItemFieldAny.FULL_NAME)) {
          // ALL
          for (String fieldName : target.fieldNames())
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.