Package com.orientechnologies.orient.core.db.record

Examples of com.orientechnologies.orient.core.db.record.OIdentifiable


            case 'l':
              final int tot = network.readInt();
              final Collection<OIdentifiable> list = new ArrayList<OIdentifiable>();
              for (int i = 0; i < tot; ++i) {
                final OIdentifiable resultItem = readIdentifiable(network, iCommand.getDatabase());
                if (resultItem instanceof ORecord<?>)
                  iCommand.getDatabase().getLevel1Cache().updateRecord((ORecordInternal<?>) resultItem);
                list.add(resultItem);
              }
              result = list;
View Full Code Here


          final StringBuilder buffer = new StringBuilder();
          for (int items = 0; it.hasNext(); items++) {
            if (items > 0)
              buffer.append(OStringSerializerHelper.RECORD_SEPARATOR);

            final OIdentifiable item = it.next();

            linkToStream(buffer, iRecord, item);
          }

          coll.convertRecords2Links();
View Full Code Here

    if (it != null && it.hasNext()) {
      for (int items = 0; it.hasNext(); items++) {
        if (buffer.length() > 0)
          buffer.append(OStringSerializerHelper.RECORD_SEPARATOR);

        final OIdentifiable item = it.next();

        linkToStream(buffer, iRecord, item);
      }
    }
View Full Code Here

  private static OIdentifiable linkToStream(final StringBuilder buffer, final ORecordSchemaAware<?> iParentRecord, Object iLinked) {
    if (iLinked == null)
      // NULL REFERENCE
      return null;

    OIdentifiable resultRid = null;
    ORID rid;

    if (iLinked instanceof ORID) {
      // JUST THE REFERENCE
      rid = (ORID) iLinked;
View Full Code Here

      if (index == null)
        throw new OCommandExecutionException("Target index '" + indexName + "' not found");

      // BIND VALUES
      Object key = null;
      OIdentifiable value = null;
      for (int i = 0; i < fieldNames.size(); ++i) {
        final String fieldName = fieldNames.get(i);
        if (fieldName.equalsIgnoreCase(KEYWORD_KEY))
          key = fieldValues[i];
        else if (fieldName.equalsIgnoreCase(KEYWORD_RID))
View Full Code Here

        final List<ODocument> operations = (List<ODocument>) entry.getValue();
        if (operations != null) {
          for (ODocument op : operations) {
            final int operation = (Integer) op.rawField("o");
            final OIdentifiable value = op.field("v");

            if (operation == OPERATION.PUT.ordinal())
              put(key, value);
            else if (operation == OPERATION.REMOVE.ordinal()) {
              if (key.equals("*"))
 
View Full Code Here

          final StringBuilder buffer = new StringBuilder();
          for (int items = 0; it.hasNext(); items++) {
            if (items > 0)
              buffer.append(OStringSerializerHelper.RECORD_SEPARATOR);

            final OIdentifiable item = it.next();

            linkToStream(buffer, iRecord, item);
          }

          coll.convertRecords2Links();
View Full Code Here

    if (it != null && it.hasNext()) {
      for (int items = 0; it.hasNext(); items++) {
        if (buffer.length() > 0)
          buffer.append(OStringSerializerHelper.RECORD_SEPARATOR);

        final OIdentifiable item = it.next();

        linkToStream(buffer, iRecord, item);
      }
    }
View Full Code Here

  private static OIdentifiable linkToStream(final StringBuilder buffer, final ORecordSchemaAware<?> iParentRecord, Object iLinked) {
    if (iLinked == null)
      // NULL REFERENCE
      return null;

    OIdentifiable resultRid = null;
    ORID rid;

    if (iLinked instanceof ORID) {
      // JUST THE REFERENCE
      rid = (ORID) iLinked;
View Full Code Here

        final List<ODocument> operations = (List<ODocument>) entry.field("ops");
        if (operations != null) {
          for (ODocument op : operations) {
            final int operation = (Integer) op.rawField("o");
            final OIdentifiable value = op.field("v");

            if (operation == OPERATION.PUT.ordinal())
              put(key, value);
            else if (operation == OPERATION.REMOVE.ordinal()) {
              if (key.equals("*"))
 
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.db.record.OIdentifiable

Copyright © 2018 www.massapicom. 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.