public static class EndpointBase.ManagedRepositoryConnection extends RepositoryConnectionWrapper
RepositoryConnection
s 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, size
addWithoutCommit, conditionalCommit, conditionalRollback, export, getParserConfig, getRepository, getValueFactory, prepareBooleanQuery, prepareGraphQuery, prepareQuery, prepareTupleQuery, prepareUpdate, removeWithoutCommit, startLocalTransaction
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, 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, remove
public ManagedRepositoryConnection(Repository repository, RepositoryConnection delegate)
public void close() throws RepositoryException
RepositoryConnection
transaction
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 AutoCloseable
close
in interface RepositoryConnection
close
in class RepositoryConnectionWrapper
RepositoryException
- If the connection could not be closed.public void closeManagedConnection() throws RepositoryException
RepositoryException
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.