Package org.postgresql.core
Class BaseQueryKey
- java.lang.Object
-
- org.postgresql.core.BaseQueryKey
-
- All Implemented Interfaces:
CanEstimateSize
- Direct Known Subclasses:
CallableQueryKey
,QueryWithReturningColumnsKey
class BaseQueryKey extends java.lang.Object implements CanEstimateSize
This class is used as a cache key for simple statements that have no "returning columns". Prepared statements that have no returning columns use justString sql
as a key. Simple and Prepared statements that have returning columns useQueryWithReturningColumnsKey
as a cache key.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
escapeProcessing
boolean
isParameterized
java.lang.String
sql
-
Constructor Summary
Constructors Constructor Description BaseQueryKey(java.lang.String sql, boolean isParameterized, boolean escapeProcessing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
long
getSize()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceCanEstimateSize
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-