Top Description Fields Constructors Methods
org.postgresql.core

public Class CachedQuery

extends Object
implements CanEstimateSize
Class Inheritance
All Implemented Interfaces
org.postgresql.util.CanEstimateSize
Imports
org.postgresql.util.CanEstimateSize

Stores information on the parsed JDBC query. It is used to cut parsing overhead when executing the same query through java.sql.Connection#prepareStatement(String).

Field Summary

Modifier and TypeField and Description
private int
public final boolean
public final Object
key

Cache key.

public final Query

Constructor Summary

AccessConstructor and Description
public
CachedQuery(Object key, Query query, boolean isFunction)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

number of times this statement has been used
getExecuteCount
()

Number of times this statement has been used.

public long
public void
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

executeCountback to summary
private int executeCount
isFunctionback to summary
public final boolean isFunction
keyback to summary
public final Object key

Cache key. String or org.postgresql.util.CanEstimateSize.

queryback to summary
public final Query query

Constructor Detail

CachedQueryback to summary
public CachedQuery(Object key, Query query, boolean isFunction)

Method Detail

getExecuteCountback to summary
public int getExecuteCount()

Number of times this statement has been used.

Returns:int

number of times this statement has been used

getSizeback to summary
public long getSize()

Implements org.postgresql.util.CanEstimateSize.getSize.

Annotations
@Override
increaseExecuteCountback to summary
public void increaseExecuteCount()
increaseExecuteCountback to summary
public void increaseExecuteCount(int inc)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override