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

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


    if (iObjHandler == null && ODatabaseRecordThreadLocal.INSTANCE.isDefined())
      iObjHandler = ODatabaseRecordThreadLocal.INSTANCE.get();

    // 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


        return badRequest("the supplied id appears invalid (possible Sql Injection Attack detected)");
      } catch (InvalidModelException e) {
        return badRequest("The id " + id + " is not a file");
      }
      if (doc==null) return notFound(id + " file was not found");
      String ret=OJSONWriter.writeValue(doc.rawField(FileService.DATA_FIELD_NAME));
      return ok(ret);
    }
   
  @With ({UserOrAnonymousCredentialsFilter.class,ConnectToDBFilter.class,ExtractQueryParameters.class})
  public static Result getAllFile() throws IOException{
View Full Code Here

                       final List<Object> resultSet = (List<Object>) entry.getValue();

                       for (Object r : resultSet) {
                         if (r instanceof ODocument) {
                           final ODocument d = (ODocument) r;
                           toMerge.add(d.rawField(p.getKey()));
                         }
                       }

                     }
View Full Code Here

      return Collections.emptyMap();

    final ODocument param = new ODocument();
    param.fromStream(paramBuffer);
    param.setFieldType("params", OType.EMBEDDEDMAP);
    final Map<String, Object> params = param.rawField("params");

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

    if (doc == null)
      return null;

    if (settings != null && settings.keepInMemoryReferences)
      // AVOID LAZY RESOLVING+SETTING OF RECORD
      return doc.rawField(OrientBaseGraph.CONNECTION_OUT);
    else
      return doc.field(OrientBaseGraph.CONNECTION_OUT);
  }

  /**
 
View Full Code Here

    if (doc == null)
      return null;

    if (settings != null && settings.keepInMemoryReferences)
      // AVOID LAZY RESOLVING+SETTING OF RECORD
      return doc.rawField(OrientBaseGraph.CONNECTION_IN);
    else
      return doc.field(OrientBaseGraph.CONNECTION_IN);
  }

  /**
 
View Full Code Here

    if (doc == null)
      return null;

    if (graph.isKeepInMemoryReferences())
      // AVOID LAZY RESOLVING+SETTING OF RECORD
      return doc.rawField(OrientBaseGraph.CONNECTION_OUT);
    else
      return doc.field(OrientBaseGraph.CONNECTION_OUT);
  }

  public OIdentifiable getInVertex() {
View Full Code Here

    if (doc == null)
      return null;

    if (graph.isKeepInMemoryReferences())
      // AVOID LAZY RESOLVING+SETTING OF RECORD
      return doc.rawField(OrientBaseGraph.CONNECTION_IN);
    else
      return doc.field(OrientBaseGraph.CONNECTION_IN);
  }

  @Override
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.