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 ConnectionAccessor
public void dispose()
dispose
in interface ConnectionAccessor
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.