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, disposeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConnectionadd, add, add, close, rollbackQuietlydisposepublic java.lang.String getCode()
getCode in interface DataTransactionpublic void begin()
throws DataException
begin in interface DataTransactionDataExceptionpublic void commit()
throws DataException
commit in interface DataTransactionDataExceptionpublic void rollback()
throws DataException
rollback in interface DataTransactionDataExceptionpublic void rollbackQuietly()
rollbackQuietly in interface DataTransactionpublic void add(DataStore store)
add in interface DataTransactionpublic void add(DataStore store, java.lang.String id)
add in interface DataTransactionpublic void add(DataStore store, boolean local)
DataTransactionadd in interface DataTransactionpublic void add(DataStore store, java.lang.String id, boolean local)
add in interface DataTransactionpublic FeatureStore getFeatureStore(java.lang.String id)
getFeatureStore in interface DataTransactionpublic void add(DataServerExplorer explorer)
add in interface DataTransactionpublic void add(DataServerExplorer explorer, java.lang.String id)
add in interface DataTransactionpublic void add(DataServerExplorer explorer, boolean local)
add in interface DataTransactionpublic void add(DataServerExplorer explorer, java.lang.String id, boolean local)
add in interface DataTransactionpublic DataServerExplorer getServerExplorer(java.lang.String id)
getServerExplorer in interface DataTransactionpublic void add(Disposable resource) throws DataException
add in interface DataTransactionDataExceptionpublic void add(SupportTransactions obj, boolean local) throws DataException
add in interface DataTransactionDataExceptionpublic void remove(DataStore store)
remove in interface DataTransactionpublic void remove(DataServerExplorer serverExplorer)
remove in interface DataTransactionpublic boolean isInProgress()
isInProgress in interface DataTransactionpublic void doDispose()
AbstractDisposableAbstractDisposable.dispose() method, to be
implemented by child classes.doDispose in class AbstractDisposableAbstractDisposable.dispose()public void close()
throws java.lang.Exception
close in interface java.lang.AutoCloseablejava.lang.Exceptionpublic void addConnection(DataTransactionServices.ConnectionService connection)
addConnection in interface DataTransactionServicespublic DataTransactionServices.ConnectionService getConnection(java.lang.String id)
getConnection in interface DataTransactionServicespublic void removeConnection(java.lang.String id)
removeConnection in interface DataTransactionServicespublic boolean existsConnection(java.lang.String id)
existsConnection in interface DataTransactionServicespublic void addObserver(Observer obsrvr)
addObserver in interface Observablepublic void deleteObserver(Observer obsrvr)
deleteObserver in interface Observablepublic void deleteObservers()
deleteObservers in interface Observablepublic boolean contains(DataServerExplorer explorer)
contains in interface DataTransactionpublic boolean contains(DataStore store)
contains in interface DataTransaction