public class DefaultTransaction extends AbstractDisposable implements DataTransactionServices
DataTransactionServices.ConnectionService<T>
Constructor and Description |
---|
DefaultTransaction() |
Modifier and Type | Method and Description |
---|---|
void |
add(DataServerExplorer explorer) |
void |
add(DataServerExplorer explorer,
boolean local) |
void |
add(DataServerExplorer explorer,
java.lang.String id) |
void |
add(DataServerExplorer explorer,
java.lang.String id,
boolean local) |
void |
add(DataStore store) |
void |
add(DataStore store,
boolean local)
Add store to transaction.
|
void |
add(DataStore store,
java.lang.String id) |
void |
add(DataStore store,
java.lang.String id,
boolean local) |
void |
add(Disposable resource) |
void |
add(SupportTransactions obj,
boolean local) |
void |
addConnection(DataTransactionServices.ConnectionService connection) |
void |
addObserver(Observer obsrvr) |
void |
begin() |
void |
close() |
void |
commit() |
boolean |
contains(DataServerExplorer explorer) |
boolean |
contains(DataStore store) |
void |
deleteObserver(Observer obsrvr) |
void |
deleteObservers() |
void |
doDispose()
Internal implementation for the
AbstractDisposable.dispose() method, to be
implemented by child classes. |
boolean |
existsConnection(java.lang.String id) |
java.lang.String |
getCode() |
DataTransactionServices.ConnectionService |
getConnection(java.lang.String id) |
FeatureStore |
getFeatureStore(java.lang.String id) |
DataServerExplorer |
getServerExplorer(java.lang.String id) |
boolean |
isInProgress() |
void |
remove(DataServerExplorer serverExplorer) |
void |
remove(DataStore store) |
void |
removeConnection(java.lang.String id) |
void |
rollback() |
void |
rollbackQuietly() |
dispose, dispose
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConnection
add, add, add, close, rollbackQuietly
dispose
public java.lang.String getCode()
getCode
in interface DataTransaction
public void begin() throws DataException
begin
in interface DataTransaction
DataException
public void commit() throws DataException
commit
in interface DataTransaction
DataException
public void rollback() throws DataException
rollback
in interface DataTransaction
DataException
public void rollbackQuietly()
rollbackQuietly
in interface DataTransaction
public void add(DataStore store)
add
in interface DataTransaction
public void add(DataStore store, java.lang.String id)
add
in interface DataTransaction
public void add(DataStore store, boolean local)
DataTransaction
add
in interface DataTransaction
public void add(DataStore store, java.lang.String id, boolean local)
add
in interface DataTransaction
public FeatureStore getFeatureStore(java.lang.String id)
getFeatureStore
in interface DataTransaction
public void add(DataServerExplorer explorer)
add
in interface DataTransaction
public void add(DataServerExplorer explorer, java.lang.String id)
add
in interface DataTransaction
public void add(DataServerExplorer explorer, boolean local)
add
in interface DataTransaction
public void add(DataServerExplorer explorer, java.lang.String id, boolean local)
add
in interface DataTransaction
public DataServerExplorer getServerExplorer(java.lang.String id)
getServerExplorer
in interface DataTransaction
public void add(Disposable resource) throws DataException
add
in interface DataTransaction
DataException
public void add(SupportTransactions obj, boolean local) throws DataException
add
in interface DataTransaction
DataException
public void remove(DataStore store)
remove
in interface DataTransaction
public void remove(DataServerExplorer serverExplorer)
remove
in interface DataTransaction
public boolean isInProgress()
isInProgress
in interface DataTransaction
public void doDispose()
AbstractDisposable
AbstractDisposable.dispose()
method, to be
implemented by child classes.doDispose
in class AbstractDisposable
AbstractDisposable.dispose()
public void close() throws java.lang.Exception
close
in interface java.lang.AutoCloseable
java.lang.Exception
public void addConnection(DataTransactionServices.ConnectionService connection)
addConnection
in interface DataTransactionServices
public DataTransactionServices.ConnectionService getConnection(java.lang.String id)
getConnection
in interface DataTransactionServices
public void removeConnection(java.lang.String id)
removeConnection
in interface DataTransactionServices
public boolean existsConnection(java.lang.String id)
existsConnection
in interface DataTransactionServices
public void addObserver(Observer obsrvr)
addObserver
in interface Observable
public void deleteObserver(Observer obsrvr)
deleteObserver
in interface Observable
public void deleteObservers()
deleteObservers
in interface Observable
public boolean contains(DataServerExplorer explorer)
contains
in interface DataTransaction
public boolean contains(DataStore store)
contains
in interface DataTransaction