public final class ConnectionHandler extends Object implements InvocationHandler
A connection that can't be closed.
All calls to Active Objects must happen within a transaction. For this transactions to be successful, we can't let ActiveObjects close the connection in the middle of it.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ConnectionHandler.Closeable |
| Constructor and Description |
|---|
ConnectionHandler(Connection delegate,
ConnectionHandler.Closeable closeable) |
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(Object proxy,
Method method,
Object[] args) |
static Connection |
newInstance(Connection c) |
static Connection |
newInstance(Connection c,
ConnectionHandler.Closeable closeable) |
public ConnectionHandler(Connection delegate, ConnectionHandler.Closeable closeable)
public Object invoke(Object proxy, Method method, Object[] args) throws SQLException
invoke in interface InvocationHandlerSQLExceptionpublic static Connection newInstance(Connection c)
public static Connection newInstance(Connection c, ConnectionHandler.Closeable closeable)
Copyright © 2018 Atlassian. All rights reserved.