Class OScriptGraphWrapper

java.lang.Object
com.orientechnologies.orient.graph.script.OScriptGraphWrapper
All Implemented Interfaces:
com.tinkerpop.blueprints.Graph, com.tinkerpop.blueprints.TransactionalGraph

public class OScriptGraphWrapper extends Object implements com.tinkerpop.blueprints.TransactionalGraph
Blueprints Graph wrapper class to use from scripts.
Author:
Luca Garulli (l.garulli--(at)--orientdb.com)
  • Field Details

  • Constructor Details

    • OScriptGraphWrapper

      public OScriptGraphWrapper(OrientBaseGraph iWrapped)
  • Method Details

    • command

      public Object command(String language, String iText)
    • command

      public Object command(String language, String iText, Object[] iArgs)
    • getFeatures

      public com.tinkerpop.blueprints.Features getFeatures()
      Specified by:
      getFeatures in interface com.tinkerpop.blueprints.Graph
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • commit

      public void commit()
      Specified by:
      commit in interface com.tinkerpop.blueprints.TransactionalGraph
    • rollback

      public void rollback()
      Specified by:
      rollback in interface com.tinkerpop.blueprints.TransactionalGraph
    • isAutoStartTx

      public boolean isAutoStartTx()
    • setAutoStartTx

      public void setAutoStartTx(boolean autoStartTx)
    • stopTransaction

      public void stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
      Specified by:
      stopTransaction in interface com.tinkerpop.blueprints.TransactionalGraph
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • drop

      public void drop()
    • createIndex

      public <T extends com.tinkerpop.blueprints.Element> com.tinkerpop.blueprints.Index<T> createIndex(String indexName, Class<T> indexClass, com.tinkerpop.blueprints.Parameter... indexParameters)
    • getIndex

      public <T extends com.tinkerpop.blueprints.Element> com.tinkerpop.blueprints.Index<T> getIndex(String indexName, Class<T> indexClass)
    • getIndices

      public Iterable<com.tinkerpop.blueprints.Index<? extends com.tinkerpop.blueprints.Element>> getIndices()
    • dropIndex

      public void dropIndex(String indexName)
    • addVertex

      public OrientVertex addVertex(Object id)
      Specified by:
      addVertex in interface com.tinkerpop.blueprints.Graph
    • addVertex

      public OrientVertex addVertex(Object id, Object[] prop)
    • addTemporaryVertex

      public OrientVertex addTemporaryVertex(String iClassName, Object[] prop)
    • addEdge

      public OrientEdge addEdge(Object id, com.tinkerpop.blueprints.Vertex outVertex, com.tinkerpop.blueprints.Vertex inVertex, String label)
      Specified by:
      addEdge in interface com.tinkerpop.blueprints.Graph
    • getVertex

      public OrientVertex getVertex(Object id)
      Specified by:
      getVertex in interface com.tinkerpop.blueprints.Graph
    • removeVertex

      public void removeVertex(com.tinkerpop.blueprints.Vertex vertex)
      Specified by:
      removeVertex in interface com.tinkerpop.blueprints.Graph
    • getVertices

      public Iterable<com.tinkerpop.blueprints.Vertex> getVertices()
      Specified by:
      getVertices in interface com.tinkerpop.blueprints.Graph
    • getVertices

      public Iterable<com.tinkerpop.blueprints.Vertex> getVertices(boolean iPolymorphic)
    • getVerticesOfClass

      public Iterable<com.tinkerpop.blueprints.Vertex> getVerticesOfClass(String iClassName)
    • getVerticesOfClass

      public Iterable<com.tinkerpop.blueprints.Vertex> getVerticesOfClass(String iClassName, boolean iPolymorphic)
    • getVertices

      public Iterable<com.tinkerpop.blueprints.Vertex> getVertices(String iKey, Object iValue)
      Specified by:
      getVertices in interface com.tinkerpop.blueprints.Graph
    • getEdges

      public Iterable<com.tinkerpop.blueprints.Edge> getEdges()
      Specified by:
      getEdges in interface com.tinkerpop.blueprints.Graph
    • getEdges

      public Iterable<com.tinkerpop.blueprints.Edge> getEdges(boolean iPolymorphic)
    • getEdgesOfClass

      public Iterable<com.tinkerpop.blueprints.Edge> getEdgesOfClass(String iClassName)
    • getEdgesOfClass

      public Iterable<com.tinkerpop.blueprints.Edge> getEdgesOfClass(String iClassName, boolean iPolymorphic)
    • getEdges

      public Iterable<com.tinkerpop.blueprints.Edge> getEdges(String iKey, Object iValue)
      Specified by:
      getEdges in interface com.tinkerpop.blueprints.Graph
    • getEdge

      public OrientEdge getEdge(Object id)
      Specified by:
      getEdge in interface com.tinkerpop.blueprints.Graph
    • removeEdge

      public void removeEdge(com.tinkerpop.blueprints.Edge edge)
      Specified by:
      removeEdge in interface com.tinkerpop.blueprints.Graph
    • reuse

      public OrientBaseGraph reuse(ODatabaseDocumentInternal iDatabase)
    • isClosed

      public boolean isClosed()
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface com.tinkerpop.blueprints.Graph
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getRawGraph

      public ODatabaseDocument getRawGraph()
    • getVertexBaseType

      public OClass getVertexBaseType()
    • getVertexType

      public final OClass getVertexType(String iTypeName)
    • createVertexType

      public OClass createVertexType(String iClassName)
    • createVertexType

      public OClass createVertexType(String iClassName, String iSuperClassName)
    • createVertexType

      public OClass createVertexType(String iClassName, OClass iSuperClass)
    • dropVertexType

      public final void dropVertexType(String iTypeName)
    • getEdgeBaseType

      public OClass getEdgeBaseType()
    • getEdgeType

      public final OClass getEdgeType(String iTypeName)
    • createEdgeType

      public OClass createEdgeType(String iClassName)
    • createEdgeType

      public OClass createEdgeType(String iClassName, String iSuperClassName)
    • createEdgeType

      public OClass createEdgeType(String iClassName, OClass iSuperClass)
    • dropEdgeType

      public final void dropEdgeType(String iTypeName)
    • getElement

      public OrientElement getElement(Object id)
    • dropKeyIndex

      public <T extends com.tinkerpop.blueprints.Element> void dropKeyIndex(String key, Class<T> elementClass)
    • createKeyIndex

      public <T extends com.tinkerpop.blueprints.Element> void createKeyIndex(String key, Class<T> elementClass, com.tinkerpop.blueprints.Parameter... indexParameters)
    • getIndexedKeys

      public <T extends com.tinkerpop.blueprints.Element> Set<String> getIndexedKeys(Class<T> elementClass)
    • getIndexedKeys

      public <T extends com.tinkerpop.blueprints.Element> Set<String> getIndexedKeys(Class<T> elementClass, boolean includeClassNames)
    • query

      public com.tinkerpop.blueprints.GraphQuery query()
      Specified by:
      query in interface com.tinkerpop.blueprints.Graph
    • traverse

      public OTraverse traverse()
    • command

      public OCommandRequest command(OCommandRequest iCommand)
    • isUseLightweightEdges

      public boolean isUseLightweightEdges()
    • setUseLightweightEdges

      public void setUseLightweightEdges(boolean useDynamicEdges)
    • isSaveOriginalIds

      public boolean isSaveOriginalIds()
    • setSaveOriginalIds

      public void setSaveOriginalIds(boolean saveIds)
    • countVertices

      public long countVertices()
    • countVertices

      public long countVertices(String iClassName)
    • countEdges

      public long countEdges()
    • countEdges

      public long countEdges(String iClassName)
    • isKeepInMemoryReferences

      public boolean isKeepInMemoryReferences()
    • setKeepInMemoryReferences

      public void setKeepInMemoryReferences(boolean useReferences)
    • isUseClassForEdgeLabel

      public boolean isUseClassForEdgeLabel()
    • setUseClassForEdgeLabel

      public void setUseClassForEdgeLabel(boolean useCustomClassesForEdges)
    • isUseClassForVertexLabel

      public boolean isUseClassForVertexLabel()
    • setUseClassForVertexLabel

      public void setUseClassForVertexLabel(boolean useCustomClassesForVertex)
    • isUseVertexFieldsForEdgeLabels

      public boolean isUseVertexFieldsForEdgeLabels()
    • setUseVertexFieldsForEdgeLabels

      public void setUseVertexFieldsForEdgeLabels(boolean useVertexFieldsForEdgeLabels)
    • isStandardElementConstraints

      public boolean isStandardElementConstraints()
    • setStandardElementConstraints

      public void setStandardElementConstraints(boolean allowsPropertyValueNull)
    • getThreadMode

      public OrientConfigurableGraph.THREAD_MODE getThreadMode()
    • setThreadMode

      public OrientBaseGraph setThreadMode(OrientConfigurableGraph.THREAD_MODE iControl)