public static class EndpointBase.ManagedRepositoryConnection extends RepositoryConnectionWrapper
RepositoryConnections which makes sure that close() is a no-op, i.e. the
actual closing of the managed connection is controlled by the Endpoint.logger| Constructor and Description |
|---|
ManagedRepositoryConnection(Repository repository,
RepositoryConnection delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the connection, freeing resources.
|
void |
closeManagedConnection() |
add, add, add, add, add, add, add, add, addWithoutCommit, begin, begin, begin, clear, clearNamespaces, commit, exportStatements, exportStatements, getContextIDs, getDelegate, getIsolationLevel, getNamespace, getNamespaces, getStatements, hasStatement, hasStatement, isActive, isAutoCommit, isDelegatingAdd, isDelegatingRead, isDelegatingRemove, isEmpty, isOpen, prepare, prepareBooleanQuery, prepareGraphQuery, prepareQuery, prepareTupleQuery, prepareUpdate, remove, remove, remove, remove, removeNamespace, removeWithoutCommit, rollback, setAutoCommit, setDelegate, setIsolationLevel, setNamespace, setParserConfig, sizeaddWithoutCommit, conditionalCommit, conditionalRollback, export, getParserConfig, getRepository, getValueFactory, prepareBooleanQuery, prepareGraphQuery, prepareQuery, prepareTupleQuery, prepareUpdate, removeWithoutCommit, startLocalTransactionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, add, add, add, add, add, add, export, getParserConfig, getRepository, getStatements, getStatements, getValueFactory, hasStatement, prepareBooleanQuery, prepareBooleanQuery, prepareGraphQuery, prepareGraphQuery, prepareQuery, prepareQuery, prepareTupleQuery, prepareTupleQuery, prepareUpdate, prepareUpdate, remove, removepublic ManagedRepositoryConnection(Repository repository, RepositoryConnection delegate)
public void close()
throws RepositoryException
RepositoryConnectiontransaction is active on the
connection, all non-committed operations will be lost by actively calling RepositoryConnection.rollback() on any active
transactions.
Implementation note: All implementations must override this method if they have any resources that they need to free.
close in interface AutoCloseableclose in interface RepositoryConnectionclose in class RepositoryConnectionWrapperRepositoryException - If the connection could not be closed.public void closeManagedConnection()
throws RepositoryException
RepositoryExceptionCopyright © 2015-2021 Eclipse Foundation. All Rights Reserved.