Package org.postgresql.core
Class QueryWithReturningColumnsKey
java.lang.Object
org.postgresql.core.BaseQueryKey
org.postgresql.core.QueryWithReturningColumnsKey
- All Implemented Interfaces:
CanEstimateSize
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
FieldsFields inherited from class org.postgresql.core.BaseQueryKey
escapeProcessing, isParameterized, sql
-
Constructor Summary
ConstructorsConstructorDescriptionQueryWithReturningColumnsKey
(String sql, boolean isParameterized, boolean escapeProcessing, String[] columnNames) -
Method Summary
-
Field Details
-
columnNames
-
size
private int size
-
-
Constructor Details
-
QueryWithReturningColumnsKey
-
-
Method Details
-
getSize
public long getSize()- Specified by:
getSize
in interfaceCanEstimateSize
- Overrides:
getSize
in classBaseQueryKey
-
toString
- Overrides:
toString
in classBaseQueryKey
-
equals
- Overrides:
equals
in classBaseQueryKey
-
hashCode
public int hashCode()- Overrides:
hashCode
in classBaseQueryKey
-