Class CountingDataSource
java.lang.Object
com.inductiveautomation.ignition.gateway.localdb.DelegatingDataSource
com.inductiveautomation.ignition.gateway.localdb.CountingDataSource
- All Implemented Interfaces:
Wrapper
,CommonDataSource
,DataSource
A delegating DataSource that maintains a count of all update-style queries that go through it.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.inductiveautomation.ignition.gateway.localdb.DelegatingDataSource
DelegatingDataSource.DelegatingConnection
-
Field Summary
Fields inherited from class com.inductiveautomation.ignition.gateway.localdb.DelegatingDataSource
delegateDatasource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvides access to the underlying datasource for operations that shouldn't increment the countlong
protected Connection
wrap
(Connection con) Methods inherited from class com.inductiveautomation.ignition.gateway.localdb.DelegatingDataSource
getConnection, getConnection, getLoginTimeout, getLogWriter, getParentLogger, isWrapperFor, setLoginTimeout, setLogWriter, unwrap
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder
Methods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
CountingDataSource
-
-
Method Details
-
wrap
- Overrides:
wrap
in classDelegatingDataSource
-
getDelegateDatasource
Provides access to the underlying datasource for operations that shouldn't increment the count -
getUpdateCount
public long getUpdateCount()
-