public class CachedQuery extends java.lang.Object implements CanEstimateSize
Connection.prepareStatement(String)
.Modifier and Type | Field and Description |
---|---|
boolean |
isFunction |
java.lang.Object |
key
Cache key.
|
boolean |
outParmBeforeFunc |
Query |
query |
Constructor and Description |
---|
CachedQuery(java.lang.Object key,
Query query,
boolean isFunction,
boolean outParmBeforeFunc) |
Modifier and Type | Method and Description |
---|---|
int |
getExecuteCount()
Number of times this statement has been used
|
long |
getSize() |
void |
increaseExecuteCount() |
void |
increaseExecuteCount(int inc) |
java.lang.String |
toString() |
public final java.lang.Object key
String
or org.postgresql.jdbc.CallableQueryKey
. It is assumed that
String.valueOf(key)*2
would give reasonable estimate of the number of retained bytes by
given key (see getSize()
).public final Query query
public final boolean isFunction
public final boolean outParmBeforeFunc
public CachedQuery(java.lang.Object key, Query query, boolean isFunction, boolean outParmBeforeFunc)
public void increaseExecuteCount()
public void increaseExecuteCount(int inc)
public int getExecuteCount()
public long getSize()
getSize
in interface CanEstimateSize
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2018 PostgreSQL Global Development Group. All rights reserved.