public class OScriptGraphWrapper extends Object implements com.tinkerpop.blueprints.TransactionalGraph
Modifier and Type | Field and Description |
---|---|
protected OrientBaseGraph |
graph |
Constructor and Description |
---|
OScriptGraphWrapper(OrientBaseGraph iWrapped) |
Modifier and Type | Method and Description |
---|---|
OrientEdge |
addEdge(Object id,
com.tinkerpop.blueprints.Vertex outVertex,
com.tinkerpop.blueprints.Vertex inVertex,
String label) |
OrientVertex |
addTemporaryVertex(String iClassName,
Object[] prop) |
OrientVertex |
addVertex(Object id) |
OrientVertex |
addVertex(Object id,
Object[] prop) |
OCommandRequest |
command(OCommandRequest iCommand) |
Object |
command(String language,
String iText) |
Object |
command(String language,
String iText,
Object[] iArgs) |
void |
commit() |
long |
countEdges() |
long |
countEdges(String iClassName) |
long |
countVertices() |
long |
countVertices(String iClassName) |
OClass |
createEdgeType(String iClassName) |
OClass |
createEdgeType(String iClassName,
OClass iSuperClass) |
OClass |
createEdgeType(String iClassName,
String iSuperClassName) |
<T extends com.tinkerpop.blueprints.Element> |
createIndex(String indexName,
Class<T> indexClass,
com.tinkerpop.blueprints.Parameter... indexParameters) |
<T extends com.tinkerpop.blueprints.Element> |
createKeyIndex(String key,
Class<T> elementClass,
com.tinkerpop.blueprints.Parameter... indexParameters) |
OClass |
createVertexType(String iClassName) |
OClass |
createVertexType(String iClassName,
OClass iSuperClass) |
OClass |
createVertexType(String iClassName,
String iSuperClassName) |
void |
drop() |
void |
dropEdgeType(String iTypeName) |
void |
dropIndex(String indexName) |
<T extends com.tinkerpop.blueprints.Element> |
dropKeyIndex(String key,
Class<T> elementClass) |
void |
dropVertexType(String iTypeName) |
boolean |
equals(Object obj) |
OrientEdge |
getEdge(Object id) |
OClass |
getEdgeBaseType() |
Iterable<com.tinkerpop.blueprints.Edge> |
getEdges() |
Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(boolean iPolymorphic) |
Iterable<com.tinkerpop.blueprints.Edge> |
getEdges(String iKey,
Object iValue) |
Iterable<com.tinkerpop.blueprints.Edge> |
getEdgesOfClass(String iClassName) |
Iterable<com.tinkerpop.blueprints.Edge> |
getEdgesOfClass(String iClassName,
boolean iPolymorphic) |
OClass |
getEdgeType(String iTypeName) |
OrientElement |
getElement(Object id) |
com.tinkerpop.blueprints.Features |
getFeatures() |
<T extends com.tinkerpop.blueprints.Element> |
getIndex(String indexName,
Class<T> indexClass) |
<T extends com.tinkerpop.blueprints.Element> |
getIndexedKeys(Class<T> elementClass) |
<T extends com.tinkerpop.blueprints.Element> |
getIndexedKeys(Class<T> elementClass,
boolean includeClassNames) |
Iterable<com.tinkerpop.blueprints.Index<? extends com.tinkerpop.blueprints.Element>> |
getIndices() |
ODatabaseDocument |
getRawGraph() |
OrientConfigurableGraph.THREAD_MODE |
getThreadMode() |
OrientVertex |
getVertex(Object id) |
OClass |
getVertexBaseType() |
OClass |
getVertexType(String iTypeName) |
Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices() |
Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(boolean iPolymorphic) |
Iterable<com.tinkerpop.blueprints.Vertex> |
getVertices(String iKey,
Object iValue) |
Iterable<com.tinkerpop.blueprints.Vertex> |
getVerticesOfClass(String iClassName) |
Iterable<com.tinkerpop.blueprints.Vertex> |
getVerticesOfClass(String iClassName,
boolean iPolymorphic) |
int |
hashCode() |
boolean |
isAutoStartTx() |
boolean |
isClosed() |
boolean |
isKeepInMemoryReferences() |
boolean |
isSaveOriginalIds() |
boolean |
isStandardElementConstraints() |
boolean |
isUseClassForEdgeLabel() |
boolean |
isUseClassForVertexLabel() |
boolean |
isUseLightweightEdges() |
boolean |
isUseVertexFieldsForEdgeLabels() |
com.tinkerpop.blueprints.GraphQuery |
query() |
void |
removeEdge(com.tinkerpop.blueprints.Edge edge) |
void |
removeVertex(com.tinkerpop.blueprints.Vertex vertex) |
OrientBaseGraph |
reuse(ODatabaseDocumentInternal iDatabase) |
void |
rollback() |
void |
setAutoStartTx(boolean autoStartTx) |
void |
setKeepInMemoryReferences(boolean useReferences) |
void |
setSaveOriginalIds(boolean saveIds) |
void |
setStandardElementConstraints(boolean allowsPropertyValueNull) |
OrientBaseGraph |
setThreadMode(OrientConfigurableGraph.THREAD_MODE iControl) |
void |
setUseClassForEdgeLabel(boolean useCustomClassesForEdges) |
void |
setUseClassForVertexLabel(boolean useCustomClassesForVertex) |
void |
setUseLightweightEdges(boolean useDynamicEdges) |
void |
setUseVertexFieldsForEdgeLabels(boolean useVertexFieldsForEdgeLabels) |
void |
shutdown() |
void |
stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion) |
String |
toString() |
OTraverse |
traverse() |
protected OrientBaseGraph graph
public OScriptGraphWrapper(OrientBaseGraph iWrapped)
public com.tinkerpop.blueprints.Features getFeatures()
getFeatures
in interface com.tinkerpop.blueprints.Graph
public void commit()
commit
in interface com.tinkerpop.blueprints.TransactionalGraph
public void rollback()
rollback
in interface com.tinkerpop.blueprints.TransactionalGraph
public boolean isAutoStartTx()
public void setAutoStartTx(boolean autoStartTx)
public void stopTransaction(com.tinkerpop.blueprints.TransactionalGraph.Conclusion conclusion)
stopTransaction
in interface com.tinkerpop.blueprints.TransactionalGraph
public void drop()
public <T extends com.tinkerpop.blueprints.Element> com.tinkerpop.blueprints.Index<T> createIndex(String indexName, Class<T> indexClass, com.tinkerpop.blueprints.Parameter... indexParameters)
public <T extends com.tinkerpop.blueprints.Element> com.tinkerpop.blueprints.Index<T> getIndex(String indexName, Class<T> indexClass)
public Iterable<com.tinkerpop.blueprints.Index<? extends com.tinkerpop.blueprints.Element>> getIndices()
public void dropIndex(String indexName)
public OrientVertex addVertex(Object id)
addVertex
in interface com.tinkerpop.blueprints.Graph
public OrientVertex addVertex(Object id, Object[] prop)
public OrientVertex addTemporaryVertex(String iClassName, Object[] prop)
public OrientEdge addEdge(Object id, com.tinkerpop.blueprints.Vertex outVertex, com.tinkerpop.blueprints.Vertex inVertex, String label)
addEdge
in interface com.tinkerpop.blueprints.Graph
public OrientVertex getVertex(Object id)
getVertex
in interface com.tinkerpop.blueprints.Graph
public void removeVertex(com.tinkerpop.blueprints.Vertex vertex)
removeVertex
in interface com.tinkerpop.blueprints.Graph
public Iterable<com.tinkerpop.blueprints.Vertex> getVertices()
getVertices
in interface com.tinkerpop.blueprints.Graph
public Iterable<com.tinkerpop.blueprints.Vertex> getVertices(boolean iPolymorphic)
public Iterable<com.tinkerpop.blueprints.Vertex> getVerticesOfClass(String iClassName)
public Iterable<com.tinkerpop.blueprints.Vertex> getVerticesOfClass(String iClassName, boolean iPolymorphic)
public Iterable<com.tinkerpop.blueprints.Vertex> getVertices(String iKey, Object iValue)
getVertices
in interface com.tinkerpop.blueprints.Graph
public Iterable<com.tinkerpop.blueprints.Edge> getEdges()
getEdges
in interface com.tinkerpop.blueprints.Graph
public Iterable<com.tinkerpop.blueprints.Edge> getEdges(boolean iPolymorphic)
public Iterable<com.tinkerpop.blueprints.Edge> getEdgesOfClass(String iClassName, boolean iPolymorphic)
public Iterable<com.tinkerpop.blueprints.Edge> getEdges(String iKey, Object iValue)
getEdges
in interface com.tinkerpop.blueprints.Graph
public OrientEdge getEdge(Object id)
getEdge
in interface com.tinkerpop.blueprints.Graph
public void removeEdge(com.tinkerpop.blueprints.Edge edge)
removeEdge
in interface com.tinkerpop.blueprints.Graph
public OrientBaseGraph reuse(ODatabaseDocumentInternal iDatabase)
public boolean isClosed()
public void shutdown()
shutdown
in interface com.tinkerpop.blueprints.Graph
public ODatabaseDocument getRawGraph()
public OClass getVertexBaseType()
public final void dropVertexType(String iTypeName)
public OClass getEdgeBaseType()
public final void dropEdgeType(String iTypeName)
public OrientElement getElement(Object id)
public <T extends com.tinkerpop.blueprints.Element> void dropKeyIndex(String key, Class<T> elementClass)
public <T extends com.tinkerpop.blueprints.Element> void createKeyIndex(String key, Class<T> elementClass, com.tinkerpop.blueprints.Parameter... indexParameters)
public <T extends com.tinkerpop.blueprints.Element> Set<String> getIndexedKeys(Class<T> elementClass)
public <T extends com.tinkerpop.blueprints.Element> Set<String> getIndexedKeys(Class<T> elementClass, boolean includeClassNames)
public com.tinkerpop.blueprints.GraphQuery query()
query
in interface com.tinkerpop.blueprints.Graph
public OTraverse traverse()
public OCommandRequest command(OCommandRequest iCommand)
public boolean isUseLightweightEdges()
public void setUseLightweightEdges(boolean useDynamicEdges)
public boolean isSaveOriginalIds()
public void setSaveOriginalIds(boolean saveIds)
public long countVertices()
public long countVertices(String iClassName)
public long countEdges()
public long countEdges(String iClassName)
public boolean isKeepInMemoryReferences()
public void setKeepInMemoryReferences(boolean useReferences)
public boolean isUseClassForEdgeLabel()
public void setUseClassForEdgeLabel(boolean useCustomClassesForEdges)
public boolean isUseClassForVertexLabel()
public void setUseClassForVertexLabel(boolean useCustomClassesForVertex)
public boolean isUseVertexFieldsForEdgeLabels()
public void setUseVertexFieldsForEdgeLabels(boolean useVertexFieldsForEdgeLabels)
public boolean isStandardElementConstraints()
public void setStandardElementConstraints(boolean allowsPropertyValueNull)
public OrientConfigurableGraph.THREAD_MODE getThreadMode()
public OrientBaseGraph setThreadMode(OrientConfigurableGraph.THREAD_MODE iControl)
Copyright © 2009–2020 OrientDB. All rights reserved.