Class CachedQuery

  • All Implemented Interfaces:
    CanEstimateSize

    public class CachedQuery
    extends java.lang.Object
    implements CanEstimateSize
    Stores information on the parsed JDBC query. It is used to cut parsing overhead when executing the same query through Connection.prepareStatement(String).
    • Field Detail

      • key

        public final java.lang.Object key
        Cache key. String or org.postgresql.util.CanEstimateSize.
      • query

        public final Query query
      • isFunction

        public final boolean isFunction
    • Constructor Detail

      • CachedQuery

        public CachedQuery​(java.lang.Object key,
                           Query query,
                           boolean isFunction)
    • Method Detail

      • increaseExecuteCount

        public void increaseExecuteCount()
      • increaseExecuteCount

        public void increaseExecuteCount​(int inc)
      • getExecuteCount

        public int getExecuteCount()
        Number of times this statement has been used.
        Returns:
        number of times this statement has been used
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object