public static class OrientConfigurableGraph.Settings extends Object
Constructor and Description |
---|
Settings() |
Modifier and Type | Method and Description |
---|---|
OrientConfigurableGraph.Settings |
copy() |
void |
copyFrom(OrientConfigurableGraph.Settings settings)
copies only not null settings from the input settings object
|
String |
getConnectionStrategy() |
int |
getEdgeContainerEmbedded2TreeThreshold()
Returns the minimum number of edges for edge containers to transform the underlying structure
from embedded to tree.
|
int |
getEdgeContainerTree2EmbeddedThreshold()
Returns the minimum number of edges for edge containers to transform the underlying structure
from tree to embedded.
|
int |
getMaxRetries()
Returns the maximum number of retry in case of auto managed OConcurrentModificationException
(like addEdge).
|
OrientConfigurableGraph.THREAD_MODE |
getThreadMode()
Returns the current thread mode:
MANUAL the user has to manually invoke the current database in Thread Local:
ODatabaseRecordThreadLocal.instance().set(graph.getRawGraph());
AUTOSET_IFNULL (default) each call assures the current graph instance is set in
the Thread Local only if no one was set before
ALWAYS_AUTOSET each call assures the current graph instance is set in the Thread
Local
|
boolean |
isAutoScaleEdgeType()
Returns true if is using auto scale edge type, otherwise false.
|
boolean |
isAutoStartTx()
Tells if a transaction is started automatically when the graph is changed.
|
boolean |
isKeepInMemoryReferences()
Returns true if the references are kept in memory.
|
boolean |
isRequireTransaction()
Returns true if it is required that all modification operations are executed inside a
transaction.
|
boolean |
isSaveOriginalIds()
Returns true if it saves the original Id, otherwise false.
|
boolean |
isStandardElementConstraints()
Returns true if Blueprints standard exceptions are used:
IllegalStateException instead of ORecordNotFoundException when the record was not found
|
boolean |
isStandardExceptions()
Returns true if the warning is generated on force the graph closing.
|
boolean |
isTxRequiredForSQLGraphOperations()
Returns true if usage of transactions is needed on graph modification for SQL commands
(create/remove vertex, create/remove edge).
|
boolean |
isUseClassForEdgeLabel()
Returns true if the class are use for Edge labels.
|
boolean |
isUseClassForVertexLabel()
Returns true if the class are use for Vertex labels.
|
boolean |
isUseLightweightEdges()
Returns true if is using lightweight edges, otherwise false.
|
boolean |
isUseLog()
Returns true if is using transaction logs.
|
boolean |
isUseVertexFieldsForEdgeLabels()
Returns true if the out/in fields in vertex are post-fixed with edge labels.
|
boolean |
isWarnOnForceClosingTx()
Returns true if the warning is generated on force the graph closing.
|
void |
setAutoScaleEdgeType(boolean autoScaleEdgeType)
Changes the setting about usage of auto scale edge type.
|
void |
setAutoStartTx(boolean autoStartTx)
If enabled auto starts a new transaction right before the graph is changed.
|
void |
setConnectionStrategy(String connectionStrategy) |
void |
setEdgeContainerEmbedded2TreeThreshold(int edgeContainerEmbedded2TreeThreshold)
Changes the minimum number of edges for edge containers to transform the underlying structure
from embedded to tree.
|
void |
setEdgeContainerTree2EmbeddedThreshold(int edgeContainerTree2EmbeddedThreshold)
Changes the minimum number of edges for edge containers to transform the underlying structure
from tree to embedded.
|
void |
setKeepInMemoryReferences(boolean useReferences)
Changes the setting about using references in memory.
|
void |
setMaxRetries(int maxRetries)
Changes the maximum number of retry in case of auto managed OConcurrentModificationException
(like addEdge).
|
void |
setRequireTransaction(boolean requireTransaction)
Changes the setting about if all modification operations are executed inside a transaction.
|
void |
setSaveOriginalIds(boolean saveIds)
Changes the setting about usage of lightweight edges.
|
void |
setStandardElementConstraints(boolean allowsPropertyValueNull)
Changes the setting to apply the Blueprints standard constraints against elements.
|
void |
setStandardExceptions(boolean stdExceptions)
Changes the setting to throw Blueprints standard exceptions:
IllegalStateException instead of ORecordNotFoundException when the record was not found
|
void |
setThreadMode(OrientConfigurableGraph.THREAD_MODE iControl)
Changes the thread mode:
MANUAL the user has to manually invoke the current database in Thread Local:
ODatabaseRecordThreadLocal.instance().set(graph.getRawGraph());
AUTOSET_IFNULL (default) each call assures the current graph instance is set in
the Thread Local only if no one was set before
ALWAYS_AUTOSET each call assures the current graph instance is set in the Thread
Local
|
void |
setTxRequiredForSQLGraphOperations(boolean iValue)
Changes the setting about usage of transactions on graph modification for SQL commands
(create/remove vertex, create/remove edge).
|
void |
setUseClassForEdgeLabel(boolean useCustomClassesForEdges)
Changes the setting to use the Edge class for Edge labels.
|
void |
setUseClassForVertexLabel(boolean useCustomClassesForVertex)
Changes the setting to use the Vertex class for Vertex labels.
|
void |
setUseLightweightEdges(boolean useDynamicEdges)
Changes the setting about usage of lightweight edges.
|
void |
setUseLog(boolean useLog)
Changes the setting about usage of transaction log.
|
void |
setUseVertexFieldsForEdgeLabels(boolean useVertexFieldsForEdgeLabels)
Changes the setting to postfix vertices fields with edge labels.
|
void |
setWarnOnForceClosingTx(boolean warnOnSchemaChangeInTx)
Changes the setting to generate a warning if the graph closing has been forced.
|
public OrientConfigurableGraph.Settings copy()
public void copyFrom(OrientConfigurableGraph.Settings settings)
settings
- public boolean isUseLightweightEdges()
public void setUseLightweightEdges(boolean useDynamicEdges)
public boolean isAutoScaleEdgeType()
public void setAutoScaleEdgeType(boolean autoScaleEdgeType)
public boolean isUseLog()
public void setUseLog(boolean useLog)
public String getConnectionStrategy()
public void setConnectionStrategy(String connectionStrategy)
public int getEdgeContainerEmbedded2TreeThreshold()
public void setEdgeContainerEmbedded2TreeThreshold(int edgeContainerEmbedded2TreeThreshold)
public int getEdgeContainerTree2EmbeddedThreshold()
public void setEdgeContainerTree2EmbeddedThreshold(int edgeContainerTree2EmbeddedThreshold)
public boolean isAutoStartTx()
public void setAutoStartTx(boolean autoStartTx)
autoStartTx
- public boolean isRequireTransaction()
public void setRequireTransaction(boolean requireTransaction)
public void setTxRequiredForSQLGraphOperations(boolean iValue)
public boolean isTxRequiredForSQLGraphOperations()
public boolean isSaveOriginalIds()
public void setSaveOriginalIds(boolean saveIds)
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 boolean isStandardExceptions()
public void setStandardExceptions(boolean stdExceptions)
public boolean isWarnOnForceClosingTx()
public void setWarnOnForceClosingTx(boolean warnOnSchemaChangeInTx)
public OrientConfigurableGraph.THREAD_MODE getThreadMode()
OrientConfigurableGraph.setThreadMode(THREAD_MODE)
public void setThreadMode(OrientConfigurableGraph.THREAD_MODE iControl)
iControl
- Value to setgetThreadMode()
public int getMaxRetries()
public void setMaxRetries(int maxRetries)
Copyright © 2009–2020 OrientDB. All rights reserved.