graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientEdge.java
@Override
  public ODocument getRecord() {
    if (rawElement == null) {
      // CREATE AT THE FLY
      final ODocument tmp = new ODocument(getClassName(label)).setTrackingChanges(false);
      tmp.field(OrientBaseGraph.CONNECTION_IN, vIn.getIdentity());
      tmp.field(OrientBaseGraph.CONNECTION_OUT, vOut.getIdentity());
      if (label != null && settings != null && !settings.isUseClassForEdgeLabel())
        tmp.field(OrientEdge.LABEL_FIELD_NAME, label);
      return tmp;
    }

    return super.getRecord();
  }
@Override
  public ODocument getRecord() {
    if (rawElement == null) {
      // CREATE AT THE FLY
      final ODocument tmp = new ODocument(getClassName(label)).setTrackingChanges(false);
      tmp.field(OrientBaseGraph.CONNECTION_IN, vIn.getIdentity());
      tmp.field(OrientBaseGraph.CONNECTION_OUT, vOut.getIdentity());
      if (label != null && settings != null && !settings.isUseClassForEdgeLabel())
        tmp.field(OrientEdge.LABEL_FIELD_NAME, label);
      return tmp;
    }

    return super.getRecord();
  }
@ Override public ODocument getRecord ( ) { if ( rawElement == null ) { // CREATE AT THE FLY final ODocument tmp = new ODocument ( getClassName ( label ) ) . setTrackingChanges ( false ) ; tmp . field ( OrientBaseGraph . CONNECTION_IN , vIn . getIdentity ( ) ) ; tmp . field ( OrientBaseGraph . CONNECTION_OUT , vOut . getIdentity ( ) ) ; if ( label != null && settings != null && ! settings . isUseClassForEdgeLabel ( ) ) tmp . field ( OrientEdge . LABEL_FIELD_NAME , label ) ; return tmp ; } return super . getRecord ( ) ; }
(Blueprints Extension) Returns the underlying record if it's a regular edge, otherwise it created a document with no identity
with the edge properties.
( Blueprints Extension ) Returns the underlying record if it s a regular edge otherwise it created a document with no identity with the edge properties .