graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientElement.java
public OrientElement attach(final OrientBaseGraph iNewGraph) {
    if (iNewGraph == null)
      throw new IllegalArgumentException("Graph is null");

    classicDetachMode = true;
    graph = iNewGraph;

    // LINK THE GRAPHS SETTINGS
    settings = graph.settings;
    return this;
  }
public OrientElement attach(final OrientBaseGraph iNewGraph) {
    if (iNewGraph == null)
      throw new IllegalArgumentException("Graph is null");

    classicDetachMode = true;
    graph = iNewGraph;

    // LINK THE GRAPHS SETTINGS
    settings = graph.settings;
    return this;
  }
public OrientElement attach ( final OrientBaseGraph iNewGraph ) { if ( iNewGraph == null ) throw new IllegalArgumentException ( "Graph is null" ) ; classicDetachMode = true ; graph = iNewGraph ; // LINK THE GRAPHS SETTINGS settings = graph . settings ; return this ; }
(Blueprints Extension) Replaces current graph instance with new one on @detach -ed elements. Use this method to pass elements
between graphs or to switch between Tx and NoTx instances.
<p>
This methods works only in "classic detach/attach mode" when detachment/attachment is done manually, by default it is done
automatically, and currently active graph connection will be used as graph elements owner.
<p>
To set "classic detach/attach mode" please set custom database parameter <code>classicDetachMode</code> to <code>true</code>.

@param iNewGraph The new Graph instance to use.
@return Current object to allow chained calls.
@see #detach(), #isDetached
( Blueprints Extension ) Replaces current graph instance with new one on @detach - ed elements . Use this method to pass elements between graphs or to switch between Tx and NoTx instances . <p > This methods works only in classic detach / attach mode when detachment / attachment is done manually by default it is done automatically and currently active graph connection will be used as graph elements owner . <p > To set classic detach / attach mode please set custom database parameter <code > classicDetachMode< / code > to <code > true< / code > .