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.columnNames
should 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.Parser
is aware of that and does not quote*
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String[]
columnNames
private int
size
-
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 boolean
equals(java.lang.Object o)
long
getSize()
int
hashCode()
java.lang.String
toString()
-
-
-
Method Detail
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceCanEstimateSize
- Overrides:
getSize
in classBaseQueryKey
-
toString
public java.lang.String toString()
- Overrides:
toString
in classBaseQueryKey
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classBaseQueryKey
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classBaseQueryKey
-
-