Package com.orientechnologies.orient.core.record

Examples of com.orientechnologies.orient.core.record.ORecord


    this.database = iDatabase;
  }

  @SuppressWarnings("unchecked")
  public <RET extends Object> RET get(final String iKey, final String iFetchPlan) {
    final ORecord record = super.get(iKey);
    return (RET) database.getUserObjectByRecord(record, iFetchPlan);
  }
View Full Code Here


      return null;

    if (classId == RECORD_RID) {
      return network.readRID();
    } else {
      final ORecord record = Orient.instance().getRecordFactoryManager().newInstance(network.readByte());

      final ORecordId rid = network.readRID();
      final ORecordVersion version = network.readVersion();
      final byte[] content = network.readBytes();
      ORecordInternal.fill(record, rid, version, content, false);
View Full Code Here

    if (value == null)
      return null;

    if (value instanceof ORID && autoConvert2Object) {
      currentElement = (OIdentifiable) value;
      ORecord record = (ORecord) ((ODatabaseRecord) database.getUnderlying()).load((ORID) value, iFetchPlan);
      if (record == null) {
        OLogManager.instance().warn(
            this,
            "Record " + ((OObjectProxyMethodHandler) sourceRecord.getHandler()).getDoc().getIdentity()
                + " references a deleted instance");
View Full Code Here

    for (int i = 0; i < 7; i++) {
      if (!iteratorCluster.hasNext())
        break;

      ORecord doc = iteratorCluster.next();
      positions.add(doc.getIdentity().getClusterPosition());
    }
    return positions;
  }
View Full Code Here

    if (iObject instanceof OrientEdge)
      return (OrientEdge) iObject;

    final OIdentifiable rec = (OIdentifiable) iObject;

    final ORecord record = rec.getRecord();
    if (record == null) {
      // SKIP IT
      OLogManager.instance().warn(this, "Record (%s) is null", rec);
      return null;
    }
View Full Code Here

    final ORecordIteratorCluster<?> iteratorCluster = database.browseCluster(database.getClusterNameById(clusterId));

    for (int i = 0; i < 7; i++) {
      iteratorCluster.hasNext();
      ORecord doc = iteratorCluster.next();
      positions.add(doc.getIdentity().getClusterPosition());
    }
    return positions;
  }
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.record.ORecord

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.