Class TransactionStatisticsResult

java.lang.Object
org.tentackle.log.StatisticsResult
org.tentackle.dbms.TransactionStatisticsResult

public class TransactionStatisticsResult extends StatisticsResult
Statistics result for transactions.
Extends StatisticsResult by number of statements.
  • Constructor Details

    • TransactionStatisticsResult

      public TransactionStatisticsResult()
      Creates a statement statistics result.
  • Method Details

    • countRollback

      public void countRollback()
      Counts a rollback.
    • getRollbackCount

      public long getRollbackCount()
      Gets the number of rollbacks.
      StatisticsResult.getCount() - getRollbackCount() gives the number of commits.
      Returns:
      the number of rollbacks
    • countStatements

      public void countStatements(int statements)
      Counts the statements statistics.
      Parameters:
      statements - the number of statements executed
    • getMinStatements

      public long getMinStatements()
      Gets the minimum number of statements.
      Returns:
      the statement count, Integer.MAX_VALUE if no statements involved
    • getMaxStatements

      public long getMaxStatements()
      Gets the maximum number of statements.
      Returns:
      the statement count, Integer.MIN_VALUE if no statements involved
    • getTotalStatements

      public long getTotalStatements()
      Gets the total number of statements.
      Returns:
      the total number of statements
    • toString

      public String toString()
      Overrides:
      toString in class StatisticsResult