public abstract class CommonConnectionAccessor extends Object implements ConnectionAccessor
| Constructor and Description |
|---|
CommonConnectionAccessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
<R> R |
doWithConnection(ConnectionTask<R> connectionTask) |
abstract Connection |
getConnection()
Get a new connection that must be closed by the caller
|
public abstract Connection getConnection() throws SQLException
SQLException - if anything goes wrongpublic <R> R doWithConnection(ConnectionTask<R> connectionTask)
doWithConnection in interface ConnectionAccessorpublic void dispose()
dispose in interface ConnectionAccessorCopyright © 2016 Eclipse NeoSCADA Project. All rights reserved.