Class GatewayContextConnectionProvider
- java.lang.Object
-
- com.inductiveautomation.gateway.tags.history.processing.GatewayContextConnectionProvider
-
- All Implemented Interfaces:
ConnectionProvider<SRConnection>
public class GatewayContextConnectionProvider extends java.lang.Object implements ConnectionProvider<SRConnection>
-
-
Constructor Summary
Constructors Constructor Description GatewayContextConnectionProvider(GatewayContext context, java.lang.String dataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SRConnection
getConnection()
protected QueryCache
getQueryCache()
java.lang.String
prepareQuery(java.lang.String query)
Takes a query, quotes the columns according to the translator, and performs any other modifications necessary to make it runnable.
-
-
-
Constructor Detail
-
GatewayContextConnectionProvider
public GatewayContextConnectionProvider(GatewayContext context, java.lang.String dataSource)
-
-
Method Detail
-
getQueryCache
protected QueryCache getQueryCache()
-
getConnection
public SRConnection getConnection() throws java.sql.SQLException
- Specified by:
getConnection
in interfaceConnectionProvider<SRConnection>
- Throws:
java.sql.SQLException
-
prepareQuery
public java.lang.String prepareQuery(java.lang.String query)
Description copied from interface:ConnectionProvider
Takes a query, quotes the columns according to the translator, and performs any other modifications necessary to make it runnable. The query should have columns wrapped in '$' to indicate where quotes should go.- Specified by:
prepareQuery
in interfaceConnectionProvider<SRConnection>
-
-