public class OrientGraph extends OrientTransactionalGraph
OrientBaseGraph.Settings, OrientBaseGraph.THREAD_MODE| Modifier and Type | Field and Description |
|---|---|
protected com.tinkerpop.blueprints.Features |
FEATURES |
autoStartTxADMIN, CLASS_PREFIX, CLUSTER_PREFIX, CONNECTION_IN, CONNECTION_OUT, settings| Constructor and Description |
|---|
OrientGraph(org.apache.commons.configuration.Configuration configuration)
Builds a OrientGraph instance passing a configuration.
|
OrientGraph(ODatabaseDocumentPool pool)
Creates a new Transactional Graph from a pool.
|
OrientGraph(ODatabaseDocumentTx iDatabase)
Creates a new Transactional Graph using an existent database instance.
|
OrientGraph(ODatabaseDocumentTx iDatabase,
boolean iAutoStartTx)
Creates a new Transactional Graph using an existent database instance and the auto-start setting to determine if auto start a
transaction.
|
OrientGraph(String url)
Creates a new Transactional Graph from an URL using default user (admin) and password (admin).
|
OrientGraph(String url,
boolean iAutoStartTx)
Creates a new Transactional Graph from an URL using default user (admin) and password (admin).
|
OrientGraph(String url,
String username,
String password)
Creates a new Transactional Graph from an URL using a username and a password.
|
OrientGraph(String url,
String username,
String password,
boolean iAutoStartTx)
Creates a new Transactional Graph from an URL using a username and a password.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
config() |
com.tinkerpop.blueprints.Features |
getFeatures()
Returns the current Graph settings.
|
autoStartTransaction, commit, isAutoStartTx, rollback, setAutoStartTx, stopTransactionaddEdge, addTemporaryVertex, addVertex, addVertex, addVertex, attach, checkForGraphSchema, command, convertKey, convertKeys, countEdges, countEdges, countVertices, countVertices, createEdgeType, createEdgeType, createEdgeType, createIndex, createKeyIndex, createVertexType, createVertexType, createVertexType, decodeClassName, detach, drop, dropEdgeType, dropIndex, dropKeyIndex, dropVertexType, encodeClassName, encodeClassNames, executeOutsideTx, getClassName, getContext, getEdge, getEdgeBaseType, getEdges, getEdges, getEdges, getEdgesOfClass, getEdgesOfClass, getEdgeType, getElement, getIndex, getIndexedKeys, getIndexedKeys, getIndices, getRawGraph, getThreadMode, getVertex, getVertexBaseType, getVertexType, getVertices, getVertices, getVertices, getVertices, getVerticesOfClass, getVerticesOfClass, isClosed, isKeepInMemoryReferences, isSaveOriginalIds, isStandardElementConstraints, isUseClassForEdgeLabel, isUseClassForVertexLabel, isUseLightweightEdges, isUseVertexFieldsForEdgeLabels, isWarnOnForceClosingTx, query, removeContext, removeEdge, removeVertex, reuse, saveIndexConfiguration, setCurrentGraphInThreadLocal, setKeepInMemoryReferences, setSaveOriginalIds, setStandardElementConstraints, setThreadMode, setUseClassForEdgeLabel, setUseClassForVertexLabel, setUseLightweightEdges, setUseVertexFieldsForEdgeLabels, setWarnOnForceClosingTx, shutdown, toString, traversepublic OrientGraph(ODatabaseDocumentTx iDatabase)
iDatabase - Underlying database object to attachpublic OrientGraph(ODatabaseDocumentTx iDatabase, boolean iAutoStartTx)
iDatabase - Underlying database object to attachiAutoStartTx - True to auto start a transaction at the beginning and after each commit/rollbackpublic OrientGraph(String url)
url - OrientDB URLpublic OrientGraph(String url, boolean iAutoStartTx)
url - OrientDB URLiAutoStartTx - True to auto start a transaction at the beginning and after each commit/rollbackpublic OrientGraph(String url, String username, String password)
url - OrientDB URLusername - Database user namepassword - Database user passwordpublic OrientGraph(String url, String username, String password, boolean iAutoStartTx)
url - OrientDB URLusername - Database user namepassword - Database user passwordiAutoStartTx - True to auto start a transaction at the beginning and after each commit/rollbackpublic OrientGraph(ODatabaseDocumentPool pool)
pool - Database pool where to acquire a database instancepublic OrientGraph(org.apache.commons.configuration.Configuration configuration)
| Name | Description | Default value |
| blueprints.orientdb.url | Database URL | - |
| blueprints.orientdb.username | User name | admin |
| blueprints.orientdb.password | User password | admin |
| blueprints.orientdb.saveOriginalIds | Saves the original element IDs by using the property _id. This could be useful on import of graph to preserve original ids | false |
| blueprints.orientdb.keepInMemoryReferences | Avoid to keep records in memory but only RIDs | false |
| blueprints.orientdb.useCustomClassesForEdges | Use Edge's label as OrientDB class. If doesn't exist create it under the hood | true |
| blueprints.orientdb.useCustomClassesForVertex | Use Vertex's label as OrientDB class. If doesn't exist create it under the hood | true |
| blueprints.orientdb.useVertexFieldsForEdgeLabels | Store the edge relationships in vertex by using the Edge's class. This allow to use multiple fields and make faster traversal by edge's label (class) | true |
| blueprints.orientdb.lightweightEdges | Uses lightweight edges. This avoid to create a physical document per edge. Documents are created only when they have properties | true |
| blueprints.orientdb.autoStartTx | Auto start a transaction as soon the graph is changed by adding/remote vertices and edges and properties | true |
configuration - Copyright © 2009-2014 Orient Technologies. All Rights Reserved.