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 countlongprotected Connectionwrap(Connection con) Methods inherited from class com.inductiveautomation.ignition.gateway.localdb.DelegatingDataSource
getConnection, getConnection, getLoginTimeout, getLogWriter, getParentLogger, isWrapperFor, setLoginTimeout, setLogWriter, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilderMethods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Constructor Details
-
CountingDataSource
-
-
Method Details
-
wrap
- Overrides:
wrapin classDelegatingDataSource
-
getDelegateDatasource
Provides access to the underlying datasource for operations that shouldn't increment the count -
getUpdateCount
public long getUpdateCount()
-