public interface ODatabase<T> extends OBackupable, Closeable
Modifier and Type | Interface and Description |
---|---|
static class |
ODatabase.ATTRIBUTES |
static class |
ODatabase.OPERATION_MODE |
static class |
ODatabase.STATUS |
Modifier and Type | Method and Description |
---|---|
ODatabase |
activateOnCurrentThread()
Activate current database instance on current thread.
|
int |
addBlobCluster(String iClusterName,
Object... iParameters)
Adds a new cluster for store blobs.
|
int |
addCluster(String iClusterName,
int iRequestedId)
Adds a new cluster.
|
int |
addCluster(String iClusterName,
Object... iParameters)
Adds a new cluster.
|
ODatabase<T> |
begin()
Begins a new transaction.
|
ODatabase<T> |
begin(OTransaction.TXTYPE iStatus)
Begins a new transaction specifying the transaction type.
|
ODatabase<T> |
begin(OTransaction iTx)
Deprecated.
|
void |
close()
Closes an opened database, if the database is already closed does nothing, if a transaction is
active will be rollback.
|
<RET extends OCommandRequest> |
command(OCommandRequest iCommand)
Deprecated.
|
default OResultSet |
command(String query,
Map args)
Executes a generic (idempotent or non idempotent) command.
|
default OResultSet |
command(String query,
Object... args)
Executes a generic (idempotent or non idempotent) command.
|
ODatabase<T> |
commit()
Commits the current transaction.
|
ODatabase<T> |
commit(boolean force) |
long |
countClusterElements(int iCurrentClusterId)
Counts all the entities in the specified cluster id.
|
long |
countClusterElements(int[] iClusterIds)
Counts all the entities in the specified cluster ids.
|
long |
countClusterElements(int[] iClusterIds,
boolean countTombstones)
Deprecated.
|
long |
countClusterElements(int iCurrentClusterId,
boolean countTombstones)
Deprecated.
|
long |
countClusterElements(String iClusterName)
Counts all the entities in the specified cluster name.
|
<DB extends ODatabase> |
create()
Deprecated.
|
<DB extends ODatabase> |
create(Map<OGlobalConfiguration,Object> iInitialSettings)
Deprecated.
|
<DB extends ODatabase> |
create(String incrementalBackupPath)
Deprecated.
|
default OClass |
createClass(String className,
String... superclasses)
Creates a new class in the schema
|
boolean |
declareIntent(OIntent iIntent)
Declares an intent to the database.
|
ODatabase<T> |
delete(ORID iRID)
Deletes the entity with the received RID from the database.
|
ODatabase<T> |
delete(ORID iRID,
int iVersion)
Deletes the entity with the received RID from the database.
|
ODatabase<T> |
delete(T iObject)
Deletes an entity from the database in synchronous mode.
|
void |
drop()
Deprecated.
|
boolean |
dropCluster(int iClusterId)
Drops a cluster by its id.
|
boolean |
dropCluster(String iClusterName)
Drops a cluster by its name.
|
default OResultSet |
execute(String language,
String script,
Map<String,?> args)
Execute a script of a specified query language The result set has to be closed after usage
Sample usage: |
default OResultSet |
execute(String language,
String script,
Object... args)
Execute a script in a specified query language.
|
default <T> T |
executeWithRetry(int nRetries,
Function<ODatabaseSession,T> function)
Tries to execute a lambda in a transaction, retrying it if an ONeedRetryException is thrown.
|
boolean |
exists()
Deprecated.
|
boolean |
existsCluster(String iClusterName)
Returns true if the cluster exists, otherwise false.
|
void |
freeze()
Flush cached storage content to the disk.
|
void |
freeze(boolean throwException)
Flush cached storage content to the disk.
|
Object |
get(ODatabase.ATTRIBUTES iAttribute)
Returns a database attribute value
|
OIntent |
getActiveIntent()
Get the active intent in the current session.
|
Set<Integer> |
getBlobClusterIds()
Retrieve the set of defined blob cluster.
|
default OClass |
getClass(String className)
retrieves a class from the schema
|
int |
getClusterIdByName(String iClusterName)
Returns the cluster id by name.
|
String |
getClusterNameById(int iClusterId)
Returns the cluster name by id.
|
Collection<String> |
getClusterNames()
Returns all the names of the clusters.
|
long |
getClusterRecordSizeById(int iClusterId)
Deprecated.
|
long |
getClusterRecordSizeByName(String iClusterName)
Deprecated.
|
int |
getClusters()
Returns the number of clusters.
|
OContextConfiguration |
getConfiguration()
Returns the database configuration settings.
|
ORecordConflictStrategy |
getConflictStrategy()
Deprecated.
|
int |
getDefaultClusterId()
Returns the default cluster id.
|
ODictionary<T> |
getDictionary()
Deprecated.
Manual indexes are prohibited and will be removed
|
Map<ORecordHook,ORecordHook.HOOK_POSITION> |
getHooks()
Retrieves all the registered hooks.
|
Iterable<ODatabaseListener> |
getListeners()
Retrieves all the registered listeners.
|
OLocalRecordCache |
getLocalCache()
Returns the level1 cache.
|
OMetadata |
getMetadata()
Return the OMetadata instance.
|
String |
getName()
Returns the database name.
|
Iterator<Map.Entry<String,Object>> |
getProperties()
Deprecated.
use
getConfiguration() instead if you use >=3.0 API. |
Object |
getProperty(String iName)
Deprecated.
use
getConfiguration() instead if you use >=3.0 API. |
ORecordMetadata |
getRecordMetadata(ORID rid)
Deprecated.
|
long |
getSize()
Deprecated.
|
ODatabase.STATUS |
getStatus()
Returns the current status of database.
|
OTransaction |
getTransaction()
Return active transaction.
|
String |
getType() |
String |
getURL()
Returns the database URL.
|
OSecurityUser |
getUser()
Returns the current user logged into the database.
|
String |
incrementalBackup(String path)
Performs incremental backup of database content to the selected folder.
|
boolean |
isActiveOnCurrentThread()
Returns true if the current database instance is active on current thread, otherwise false.
|
boolean |
isClosed()
Checks if the database is closed.
|
boolean |
isMVCC()
Deprecated.
|
OLiveQueryMonitor |
live(String query,
OLiveQueryResultListener listener,
Map<String,?> args)
Subscribe a query as a live query for future create/update event with the referred conditions
|
OLiveQueryMonitor |
live(String query,
OLiveQueryResultListener listener,
Object... args)
Subscribe a query as a live query for future create/update event with the referred conditions
|
<RET extends T> |
load(ORID recordId)
Loads the entity by the Record ID.
|
<RET extends T> |
load(ORID iRecordId,
String iFetchPlan)
Loads the entity by the Record ID using a fetch plan.
|
<RET extends T> |
load(ORID iRecordId,
String iFetchPlan,
boolean iIgnoreCache)
Loads the entity by the Record ID using a fetch plan and specifying if the cache must be
ignored.
|
<RET extends T> |
load(T iObject)
Loads the entity and return it.
|
<RET extends T> |
load(T iObject,
String iFetchPlan)
Loads a record using a fetch plan.
|
<RET extends T> |
load(T iObject,
String iFetchPlan,
boolean iIgnoreCache)
Loads a record using a fetch plan.
|
<RET extends T> |
lock(ORID recordId)
Pessimistic lock a record.
|
<RET extends T> |
lock(ORID recordId,
long timeout,
TimeUnit timeoutUnit)
Pessimistic lock a record.
|
<RET> RET |
newInstance()
Creates a new entity instance.
|
<DB extends ODatabase> |
open(String iUserName,
String iUserPassword)
Deprecated.
|
<RET extends List<?>> |
query(OQuery<?> iCommand,
Object... iArgs)
Deprecated.
use
query(String, Map) or query(String, Object...) instead |
default OResultSet |
query(String query,
Map args)
Executes an SQL query (idempotent).
|
default OResultSet |
query(String query,
Object... args)
Executes an SQL query.
|
<DB extends ODatabase<?>> |
registerHook(ORecordHook iHookImpl)
Registers a hook to listen all events for Records.
|
<DB extends ODatabase<?>> |
registerHook(ORecordHook iHookImpl,
ORecordHook.HOOK_POSITION iPosition) |
void |
registerListener(ODatabaseListener iListener)
Registers a listener to the database events.
|
void |
release()
Allows to execute write-related commands on DB.
|
void |
reload()
Reloads the database information like the cluster list.
|
<RET extends T> |
reload(T iObject,
String iFetchPlan,
boolean iIgnoreCache)
Force the reloading of the entity.
|
<RET extends T> |
reload(T iObject,
String iFetchPlan,
boolean iIgnoreCache,
boolean force)
Force the reloading of the entity.
|
ODatabase<T> |
rollback()
Aborts the current running transaction.
|
ODatabase<T> |
rollback(boolean force) |
<RET extends T> |
save(T iObject)
Saves an entity in synchronous mode.
|
<RET extends T> |
save(T iObject,
ODatabase.OPERATION_MODE iMode,
boolean iForceCreate,
ORecordCallback<? extends Number> iRecordCreatedCallback,
ORecordCallback<Integer> iRecordUpdatedCallback)
Saves an entity specifying the mode.
|
<RET extends T> |
save(T iObject,
String iClusterName)
Saves an entity in the specified cluster in synchronous mode.
|
<RET extends T> |
save(T iObject,
String iClusterName,
ODatabase.OPERATION_MODE iMode,
boolean iForceCreate,
ORecordCallback<? extends Number> iRecordCreatedCallback,
ORecordCallback<Integer> iRecordUpdatedCallback)
Saves an entity in the specified cluster specifying the mode.
|
<DB extends ODatabase> |
set(ODatabase.ATTRIBUTES iAttribute,
Object iValue)
Sets a database attribute value
|
<DB extends ODatabase<?>> |
setConflictStrategy(ORecordConflictStrategy iResolver)
Deprecated.
|
<DB extends ODatabase<?>> |
setConflictStrategy(String iStrategyName)
Deprecated.
|
<DB extends ODatabase<?>> |
setMVCC(boolean iValue)
Deprecated.
|
Object |
setProperty(String iName,
Object iValue)
Deprecated.
use
OrientDBConfig.builder().setConfig(propertyName, propertyValue).build();
instead if you use >=3.0 API. |
<DB extends ODatabase> |
setStatus(ODatabase.STATUS iStatus)
Deprecated.
|
void |
truncateCluster(String clusterName)
Removes all data in the cluster with given name.
|
void |
unlock(ORID recordId)
Pessimistic unlock
|
<DB extends ODatabase<?>> |
unregisterHook(ORecordHook iHookImpl)
Unregisters a previously registered hook.
|
void |
unregisterListener(ODatabaseListener iListener)
Unregisters a listener to the database events.
|
backup, restore
@Deprecated <DB extends ODatabase> DB open(String iUserName, String iUserPassword)
iUserName
- Username to loginiUserPassword
- Password associated to the user@Deprecated <DB extends ODatabase> DB create()
@Deprecated <DB extends ODatabase> DB create(String incrementalBackupPath)
DB
- Concrete database instance type.incrementalBackupPath
- Path to incremental backup@Deprecated <DB extends ODatabase> DB create(Map<OGlobalConfiguration,Object> iInitialSettings)
ODatabase activateOnCurrentThread()
boolean isActiveOnCurrentThread()
void reload()
@Deprecated void drop()
ODatabaseException
- if database is closed. @Deprecated use instead OrientDB.drop(java.lang.String)
OContextConfiguration getConfiguration()
boolean declareIntent(OIntent iIntent)
iIntent
- The intentOIntent getActiveIntent()
@Deprecated boolean exists()
void close()
close
in interface AutoCloseable
close
in interface Closeable
ODatabase.STATUS getStatus()
@Deprecated <DB extends ODatabase> DB setStatus(ODatabase.STATUS iStatus)
@Deprecated long getSize()
String getName()
String getURL()
OLocalRecordCache getLocalCache()
int getDefaultClusterId()
int getClusters()
boolean existsCluster(String iClusterName)
iClusterName
- Cluster nameCollection<String> getClusterNames()
int getClusterIdByName(String iClusterName)
iClusterName
- Cluster nameString getClusterNameById(int iClusterId)
iClusterId
- Cluster id@Deprecated long getClusterRecordSizeByName(String iClusterName)
iClusterName
- Cluster name@Deprecated long getClusterRecordSizeById(int iClusterId)
iClusterId
- Cluster idboolean isClosed()
void truncateCluster(String clusterName)
clusterName
- Name of cluster to be truncated.long countClusterElements(int iCurrentClusterId)
iCurrentClusterId
- Cluster id@Deprecated long countClusterElements(int iCurrentClusterId, boolean countTombstones)
long countClusterElements(int[] iClusterIds)
iClusterIds
- Array of cluster ids Cluster id@Deprecated long countClusterElements(int[] iClusterIds, boolean countTombstones)
long countClusterElements(String iClusterName)
iClusterName
- Cluster nameint addCluster(String iClusterName, Object... iParameters)
iClusterName
- Cluster nameiParameters
- Additional parameters to pass to the factoriesint addBlobCluster(String iClusterName, Object... iParameters)
iClusterName
- Cluster nameiParameters
- Additional parameters to pass to the factoriesSet<Integer> getBlobClusterIds()
int addCluster(String iClusterName, int iRequestedId)
iClusterName
- Cluster nameiRequestedId
- requested id of the clusterboolean dropCluster(String iClusterName)
iClusterName
- the name of the clusterboolean dropCluster(int iClusterId)
iClusterId
- id of cluster to delete@Deprecated Object setProperty(String iName, Object iValue)
OrientDBConfig.builder().setConfig(propertyName, propertyValue).build();
instead if you use >=3.0 API.iName
- Property nameiValue
- new value to set@Deprecated Object getProperty(String iName)
getConfiguration()
instead if you use >=3.0 API.iName
- Property name@Deprecated Iterator<Map.Entry<String,Object>> getProperties()
getConfiguration()
instead if you use >=3.0 API.Object get(ODatabase.ATTRIBUTES iAttribute)
iAttribute
- Attributes between #ATTRIBUTES enum<DB extends ODatabase> DB set(ODatabase.ATTRIBUTES iAttribute, Object iValue)
iAttribute
- Attributes between #ATTRIBUTES enumiValue
- Value to setvoid registerListener(ODatabaseListener iListener)
iListener
- the listener to registervoid unregisterListener(ODatabaseListener iListener)
iListener
- the listener to unregister@Deprecated ORecordMetadata getRecordMetadata(ORID rid)
void freeze()
After this call users can perform only idempotent calls like read records and
select/traverse queries. All write-related operations will queued till release()
command will be called.
Given command waits till all on going modifications in indexes or DB will be finished.
IMPORTANT: This command is not reentrant.
release()
void release()
freeze()
command.freeze()
void freeze(boolean throwException)
After this call users can perform only select queries. All write-related commands will
queued till release()
command will be called or exception will be thrown on attempt to
modify DB data. Concrete behaviour depends on throwException
parameter.
IMPORTANT: This command is not reentrant.
throwException
- If true
OModificationOperationProhibitedException
exception will be thrown in case of write command will be performed.<RET> RET newInstance()
@Deprecated ODictionary<T> getDictionary()
OSecurityUser getUser()
OSecurity
default OClass getClass(String className)
className
- The class namedefault OClass createClass(String className, String... superclasses) throws OSchemaException
className
- the class namesuperclasses
- a list of superclasses for the class (can be empty)OSchemaException
- if a class with this name already exists or if one of the superclasses
does not exist.<RET extends T> RET load(T iObject)
iObject
- The entity to load. If the entity was already loaded it will be reloaded and all
the changes will be lost.<RET extends T> RET load(T iObject, String iFetchPlan)
iObject
- Record to loadiFetchPlan
- Fetch plan used<RET extends T> RET lock(ORID recordId) throws OLockException
In case of lock inside the transaction the lock will be release by the commit operation, In case of lock outside a transaction unlock need to be call manually.
recordId
- the id of the record that need to be lockedOLockException
- In case of deadlock detected<RET extends T> RET lock(ORID recordId, long timeout, TimeUnit timeoutUnit) throws OLockException
recordId
- the id of the record that need to be lockedtimeout
- for the record lockingtimeoutUnit
- relative for the timeoutOLockException
- In case of deadlock detectedvoid unlock(ORID recordId) throws OLockException
recordId
- the id of the record to unlockOLockException
- if the record is not locked.<RET extends T> RET load(T iObject, String iFetchPlan, boolean iIgnoreCache)
iObject
- Record to loadiFetchPlan
- Fetch plan usediIgnoreCache
- Ignore cache or use it<RET extends T> RET reload(T iObject, String iFetchPlan, boolean iIgnoreCache)
iObject
- The entity to load. If the entity was already loaded it will be reloaded and all
the changes will be lost.iFetchPlan
- Fetch plan usediIgnoreCache
- Ignore cache or use it<RET extends T> RET reload(T iObject, String iFetchPlan, boolean iIgnoreCache, boolean force)
iObject
- The entity to load. If the entity was already loaded it will be reloaded and all
the changes will be lost.iFetchPlan
- Fetch plan usediIgnoreCache
- Ignore cache or use itforce
- Force to reload record even if storage has the same record as reloaded record, it
is useful if fetch plan is not null and alongside with root record linked records will be
reloaded.<RET extends T> RET load(ORID recordId)
recordId
- The unique record id of the entity to load.<RET extends T> RET load(ORID iRecordId, String iFetchPlan)
iRecordId
- The unique record id of the entity to load.iFetchPlan
- Fetch plan used<RET extends T> RET load(ORID iRecordId, String iFetchPlan, boolean iIgnoreCache)
iRecordId
- The unique record id of the entity to load.iFetchPlan
- Fetch plan usediIgnoreCache
- Ignore cache or use it<RET extends T> RET save(T iObject)
iObject
- The entity to save<RET extends T> RET save(T iObject, ODatabase.OPERATION_MODE iMode, boolean iForceCreate, ORecordCallback<? extends Number> iRecordCreatedCallback, ORecordCallback<Integer> iRecordUpdatedCallback)
iObject
- The entity to saveiMode
- Mode of save: synchronous (default) or asynchronousiForceCreate
- Flag that indicates that record should be created. If record with current
rid already exists, exception is throwniRecordCreatedCallback
- iRecordUpdatedCallback
- <RET extends T> RET save(T iObject, String iClusterName)
iObject
- The entity to saveiClusterName
- Name of the cluster where to save<RET extends T> RET save(T iObject, String iClusterName, ODatabase.OPERATION_MODE iMode, boolean iForceCreate, ORecordCallback<? extends Number> iRecordCreatedCallback, ORecordCallback<Integer> iRecordUpdatedCallback)
iObject
- The entity to saveiClusterName
- Name of the cluster where to saveiMode
- Mode of save: synchronous (default) or asynchronousiForceCreate
- Flag that indicates that record should be created. If record with current
rid already exists, exception is throwniRecordCreatedCallback
- iRecordUpdatedCallback
- ODatabase<T> delete(T iObject)
iObject
- The entity to delete.ODatabase<T> delete(ORID iRID)
iRID
- The RecordID to delete.ODatabase<T> delete(ORID iRID, int iVersion)
iRID
- The RecordID to delete.iVersion
- for MVCCOTransaction getTransaction()
ODatabase<T> begin()
commit()
or rollback()
.ODatabase<T> begin(OTransaction.TXTYPE iStatus)
commit()
or rollback()
.@Deprecated ODatabase<T> begin(OTransaction iTx) throws OTransactionException
OTransactionException
ODatabase<T> commit() throws OTransactionException
OTransactionException
ODatabase<T> commit(boolean force) throws OTransactionException
OTransactionException
ODatabase<T> rollback() throws OTransactionException
OTransactionException
ODatabase<T> rollback(boolean force) throws OTransactionException
OTransactionException
@Deprecated <RET extends List<?>> RET query(OQuery<?> iCommand, Object... iArgs)
query(String, Map)
or query(String, Object...)
insteadiCommand
- Query commandiArgs
- Optional parameters to bind to the query@Deprecated <RET extends OCommandRequest> RET command(OCommandRequest iCommand)
command(String, Map)
, command(String, Object...)
, execute(String, String, Map)
, execute(String, String, Object...)
insteadiCommand
- Command request to execute.default OResultSet query(String query, Object... args) throws OCommandSQLParsingException, OCommandExecutionException
OResultSet rs = db.query("SELECT FROM V where name = ?", "John"); while(rs.hasNext()){ OResult item = rs.next(); ... }
rs.close();
query
- the query stringargs
- query parameters (positional)OCommandSQLParsingException
OCommandExecutionException
default OResultSet query(String query, Map args) throws OCommandSQLParsingException, OCommandExecutionException
Map<String, Object> params = new HashMapMap<>(); params.put("name", "John"); OResultSet rs = db.query("SELECT
FROM V where name = :name", params); while(rs.hasNext()){ OResult item = rs.next(); ... } rs.close();
query
- the query stringargs
- query parameters (named)OCommandSQLParsingException
OCommandExecutionException
default OResultSet command(String query, Object... args) throws OCommandSQLParsingException, OCommandExecutionException
OResultSet rs = db.command("INSERT INTO Person SET name = ?", "John"); ... rs.close();
query
- args
- query argumentsOCommandSQLParsingException
OCommandExecutionException
default OResultSet command(String query, Map args) throws OCommandSQLParsingException, OCommandExecutionException
Map<String, Object> params = new HashMapMap<>(); params.put("name", "John"); OResultSet rs = db.query("INSERT
INTO Person SET name = :name", params); ... rs.close();
query
- args
- OCommandSQLParsingException
OCommandExecutionException
default OResultSet execute(String language, String script, Object... args) throws OCommandExecutionException, OCommandScriptException
OResultSet rs = db.execute("sql", script, "Surname1", "Surname2", "Surname3"); ... rs.close();
String script = "INSERT INTO Person SET name = 'foo', surname = ?;"+ "INSERT INTO Person SET name = 'bar', surname =
?;"+ "INSERT INTO Person SET name = 'baz', surname = ?;";
language
- script
- args
- OCommandExecutionException
OCommandScriptException
default OResultSet execute(String language, String script, Map<String,?> args) throws OCommandExecutionException, OCommandScriptException
String script = "INSERT INTO Person SET name = 'foo', surname = :surname1;"+ "INSERT INTO Person SET name = 'bar', surname =
:surname2;"+ "INSERT INTO Person SET name = 'baz', surname = :surname3;";
OResultSet rs = db.execute("sql", script, params); ... rs.close();
Map<String, Object> params = new HashMapMap<>(); params.put("surname1", "Jones"); params.put("surname2",
"May"); params.put("surname3", "Ali");
language
- script
- args
- OCommandExecutionException
OCommandScriptException
OMetadata getMetadata()
<DB extends ODatabase<?>> DB registerHook(ORecordHook iHookImpl)
iHookImpl
- ORecordHook implementation<DB extends ODatabase<?>> DB registerHook(ORecordHook iHookImpl, ORecordHook.HOOK_POSITION iPosition)
Map<ORecordHook,ORecordHook.HOOK_POSITION> getHooks()
<DB extends ODatabase<?>> DB unregisterHook(ORecordHook iHookImpl)
iHookImpl
- ORecordHook implementation@Deprecated boolean isMVCC()
deprecated since 2.2
Iterable<ODatabaseListener> getListeners()
@Deprecated <DB extends ODatabase<?>> DB setMVCC(boolean iValue)
iValue
- isMVCC()
String getType()
@Deprecated ORecordConflictStrategy getConflictStrategy()
@Deprecated <DB extends ODatabase<?>> DB setConflictStrategy(String iStrategyName)
iStrategyName
- ORecordConflictStrategy strategy name@Deprecated <DB extends ODatabase<?>> DB setConflictStrategy(ORecordConflictStrategy iResolver)
iResolver
- ORecordConflictStrategy implementationString incrementalBackup(String path) throws UnsupportedOperationException
If it will be first backup of data full content of database will be copied into folder otherwise only changes after last backup in the same folder will be copied.
path
- Path to backup folder.UnsupportedOperationException
OLiveQueryMonitor live(String query, OLiveQueryResultListener listener, Map<String,?> args)
query
- live querylistener
- the listener that receive the query resultsargs
- the live query argsOLiveQueryMonitor live(String query, OLiveQueryResultListener listener, Object... args)
query
- live querylistener
- the listener that receive the query resultsargs
- the live query argsdefault <T> T executeWithRetry(int nRetries, Function<ODatabaseSession,T> function) throws IllegalStateException, IllegalArgumentException, ONeedRetryException, UnsupportedOperationException
If the DB does not have an active transaction, after the execution you will still be out of tx.
If the DB has an active transaction, then the transaction has to be empty (no operations executed yet) and after the execution you will be in a new transaction.
T
- the return type of the lambdanRetries
- the maximum number of retries (> 0)function
- a lambda containing application code to execute in a commit/retry loopIllegalStateException
- if there are operations in the current transactionONeedRetryException
- if the maximum number of retries is executed and all failed with an
ONeedRetryExceptionIllegalArgumentException
- if nRetries is <= 0UnsupportedOperationException
- if this type of database does not support automatic
commit/retryCopyright © 2009–2020 OrientDB. All rights reserved.