public class Transaction extends Object
Modifier and Type | Method and Description |
---|---|
void |
abort()
Aborts the transaction.
|
void |
begin()
Begin the transaction.
|
void |
commit()
Commits the transaction.
|
TransactionBatch.TxnState |
getState() |
long |
getTransactionId() |
String |
toString() |
public long getTransactionId()
public TransactionBatch.TxnState getState()
public void begin() throws TransactionException
Lock
for the transaction and AcidTables
.TransactionException
public void commit() throws TransactionException
Lock
.TransactionException
public void abort() throws TransactionException
Lock
.TransactionException
Copyright © 2016 The Apache Software Foundation. All rights reserved.