Class GenericPreparedStatement.RowCountStatistics

java.lang.Object
org.apache.derby.impl.sql.GenericPreparedStatement.RowCountStatistics
Enclosing class:
GenericPreparedStatement

private static class GenericPreparedStatement.RowCountStatistics extends Object
This class holds information about stale plan check interval, execution count and row count statistics for a GenericPreparedStatement. The fields and methods should ideally live in GenericPreparedStatement, not in a separate class. However, triggers clone the GPS on each execution, which means the statistics would be reset on each execution if they lived directly inside GPS. Instead, keep the statistics in an object that can be shared between multiple GPS instances when they are cloned.