Package org.postgresql.core
Class QueryWithReturningColumnsKey
- java.lang.Object
-
- org.postgresql.core.BaseQueryKey
-
- org.postgresql.core.QueryWithReturningColumnsKey
-
- All Implemented Interfaces:
CanEstimateSize
class QueryWithReturningColumnsKey extends BaseQueryKey
Cache key for a query that have some returning columns.columnNamesshould contain non-quoted column names. The parser will quote them automatically.There's a special case of
columnNames == new String[]{"*"}that means all columns should be returned.Parseris aware of that and does not quote*
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String[]columnNamesprivate intsize-
Fields inherited from class org.postgresql.core.BaseQueryKey
escapeProcessing, isParameterized, sql
-
-
Constructor Summary
Constructors Constructor Description QueryWithReturningColumnsKey(java.lang.String sql, boolean isParameterized, boolean escapeProcessing, java.lang.String[] columnNames)
-
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
-
getSize
public long getSize()
- Specified by:
getSizein interfaceCanEstimateSize- Overrides:
getSizein classBaseQueryKey
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBaseQueryKey
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classBaseQueryKey
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBaseQueryKey
-
-