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 sqlas a key. Simple and Prepared statements that have returning columns useQueryWithReturningColumnsKeyas a cache key.
-
-
Field Summary
Fields Modifier and Type Field Description booleanescapeProcessingbooleanisParameterizedjava.lang.Stringsql
-
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 booleanequals(java.lang.Object o)longgetSize()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getSize
public long getSize()
- Specified by:
getSizein interfaceCanEstimateSize
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-