public class CachedQuery extends Object implements CanEstimateSize
Connection.prepareStatement(String).| Modifier and Type | Field and Description |
|---|---|
boolean |
isFunction |
Object |
key
Cache key.
|
Query |
query |
| Constructor and Description |
|---|
CachedQuery(Object key,
Query query,
boolean isFunction) |
| Modifier and Type | Method and Description |
|---|---|
int |
getExecuteCount()
Number of times this statement has been used.
|
long |
getSize() |
void |
increaseExecuteCount() |
void |
increaseExecuteCount(int inc) |
String |
toString()
Returns a string representation of the object.
|
public final Query query
public final boolean isFunction
public void increaseExecuteCount()
public void increaseExecuteCount(int inc)
public int getExecuteCount()
public long getSize()
getSize in interface CanEstimateSizepublic String toString()
java.lang.ObjecttoString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
Copyright © 2018 PostgreSQL Global Development Group. All rights reserved.