Class CountingDataSource

java.lang.Object
com.inductiveautomation.ignition.gateway.localdb.DelegatingDataSource
com.inductiveautomation.ignition.gateway.localdb.CountingDataSource
All Implemented Interfaces:
Wrapper, CommonDataSource, DataSource

public class CountingDataSource extends DelegatingDataSource
A delegating DataSource that maintains a count of all update-style queries that go through it.
  • Constructor Details

    • CountingDataSource

      public CountingDataSource(DataSource delegateDatasource)
  • Method Details

    • wrap

      protected Connection wrap(Connection con)
      Overrides:
      wrap in class DelegatingDataSource
    • getDelegateDatasource

      public DataSource getDelegateDatasource()
      Provides access to the underlying datasource for operations that shouldn't increment the count
    • getUpdateCount

      public long getUpdateCount()