Package org.postgresql.core
Class CachedQuery
java.lang.Object
org.postgresql.core.CachedQuery
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Number of times this statement has been used.long
getSize()
void
void
increaseExecuteCount
(int inc) toString()
-
Field Details
-
key
Cache key.String
ororg.postgresql.util.CanEstimateSize
. -
query
-
isFunction
public final boolean isFunction -
executeCount
private int executeCount
-
-
Constructor Details
-
CachedQuery
-
-
Method Details
-
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
-
getSize
public long getSize()- Specified by:
getSize
in interfaceCanEstimateSize
-
toString
-