public class OrientTx extends Object
ODatabaseDocumentTx
,
UserTransaction
Modifier and Type | Field and Description |
---|---|
private OrientDatabaseImpl |
database |
private com.orientechnologies.orient.core.db.ODatabaseInternal<?> |
resource |
private boolean |
rollbackOnly |
Constructor and Description |
---|
OrientTx(OrientDatabaseImpl database)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
begin() |
void |
commit() |
void |
dispose()
Disposes this transaction and performs a cleanup to free resources.
|
com.orientechnologies.orient.core.db.ODatabaseInternal<?> |
getResource() |
static OrientTx |
of(org.springframework.transaction.support.DefaultTransactionStatus txStatus) |
static OrientTx |
of(Object transaction) |
void |
rollback() |
void |
setRollbackOnly()
Mark this transaction so it can only be completed by
rollback() but NOT by commit() . |
private OrientDatabaseImpl database
private com.orientechnologies.orient.core.db.ODatabaseInternal<?> resource
private boolean rollbackOnly
public OrientTx(OrientDatabaseImpl database)
database
- the OrientDatabaseImpl
instance.public com.orientechnologies.orient.core.db.ODatabaseInternal<?> getResource()
public void begin()
ODatabase.begin()
public void commit()
ODatabase.commit()
public void rollback()
ODatabase.rollback()
public void setRollbackOnly()
rollback()
but NOT by commit()
.public void dispose()
public static OrientTx of(org.springframework.transaction.support.DefaultTransactionStatus txStatus)
txStatus
- the DefaultTransactionStatus
.transaction
object.Copyright © 2001–2016 mmm-Team. All rights reserved.