Class SpannerPostgreSQLAggregateSupport
java.lang.Object
org.hibernate.dialect.aggregate.AggregateSupportImpl
org.hibernate.dialect.aggregate.PostgreSQLAggregateSupport
org.hibernate.dialect.aggregate.SpannerPostgreSQLAggregateSupport
- All Implemented Interfaces:
AggregateSupport
Spanner supports only JSON aggregation. It doesn't support XML or STRUCT aggregation
-
Nested Class Summary
Nested classes/interfaces inherited from interface AggregateSupport
AggregateSupport.AggregateColumnWriteExpression, AggregateSupport.WriteExpressionRenderer -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaggregateComponentAssignmentExpression(String aggregateParentAssignmentExpression, String columnExpression, int aggregateColumnTypeCode, Column column) Returns the assignment expression to use forcolumn, which is part of the aggregate type ofaggregatePath.aggregateComponentCustomReadExpression(String template, String placeholder, String aggregateParentReadExpression, String columnExpression, int aggregateColumnTypeCode, SqlTypedMapping column, TypeConfiguration typeConfiguration) Returns the custom read expression to use forcolumn.aggregateCustomWriteExpressionRenderer(SelectableMapping aggregateColumn, SelectableMapping[] columnsToUpdate, TypeConfiguration typeConfiguration) booleanrequiresAggregateCustomWriteExpressionRenderer(int aggregateSqlTypeCode) WhetherAggregateSupport.aggregateCustomWriteExpressionRenderer(SelectableMapping, SelectableMapping[], TypeConfiguration)is needed when assigning an expression to individual aggregated columns in an update statement.Methods inherited from class PostgreSQLAggregateSupport
preferSelectAggregateMapping, valueOfMethods inherited from class AggregateSupportImpl
aggregateAuxiliaryDatabaseObjects, aggregateComponentSqlTypeCode, aggregateCustomWriteExpression, preferBindAggregateMapping, supportsComponentCheckConstraintsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AggregateSupport
aggregateComponentAssignmentExpression, aggregateComponentCustomReadExpression, useLengthsInCasts
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
SpannerPostgreSQLAggregateSupport
public SpannerPostgreSQLAggregateSupport()
-
-
Method Details
-
aggregateComponentCustomReadExpression
public String aggregateComponentCustomReadExpression(String template, String placeholder, String aggregateParentReadExpression, String columnExpression, int aggregateColumnTypeCode, SqlTypedMapping column, TypeConfiguration typeConfiguration) Description copied from interface:AggregateSupportReturns the custom read expression to use forcolumn. Replaces the givenplaceholderin the giventemplateby the custom read expression to use forcolumn.- Specified by:
aggregateComponentCustomReadExpressionin interfaceAggregateSupport- Overrides:
aggregateComponentCustomReadExpressionin classPostgreSQLAggregateSupport- Parameters:
template- The custom read expression template of the columnplaceholder- The placeholder to replace with the actual read expressionaggregateParentReadExpression- The expression to the aggregate column, which contains the columncolumnExpression- The column within the aggregate type, for which to return the read expressionaggregateColumnTypeCode- The SQL type code of the aggregate columncolumn- The column within the aggregate type, for which to return the read expressiontypeConfiguration- The type configuration
-
aggregateComponentAssignmentExpression
public String aggregateComponentAssignmentExpression(String aggregateParentAssignmentExpression, String columnExpression, int aggregateColumnTypeCode, Column column) Description copied from interface:AggregateSupportReturns the assignment expression to use forcolumn, which is part of the aggregate type ofaggregatePath.- Specified by:
aggregateComponentAssignmentExpressionin interfaceAggregateSupport- Overrides:
aggregateComponentAssignmentExpressionin classPostgreSQLAggregateSupport- Parameters:
aggregateParentAssignmentExpression- The expression to the aggregate column, which contains the columncolumnExpression- The column within the aggregate type, for which to return the assignment expressionaggregateColumnTypeCode- The SQL type code of the aggregate columncolumn- The column within the aggregate type, for which to return the assignment expression
-
requiresAggregateCustomWriteExpressionRenderer
public boolean requiresAggregateCustomWriteExpressionRenderer(int aggregateSqlTypeCode) Description copied from interface:AggregateSupportWhetherAggregateSupport.aggregateCustomWriteExpressionRenderer(SelectableMapping, SelectableMapping[], TypeConfiguration)is needed when assigning an expression to individual aggregated columns in an update statement.- Specified by:
requiresAggregateCustomWriteExpressionRendererin interfaceAggregateSupport- Overrides:
requiresAggregateCustomWriteExpressionRendererin classPostgreSQLAggregateSupport
-
aggregateCustomWriteExpressionRenderer
public AggregateSupport.WriteExpressionRenderer aggregateCustomWriteExpressionRenderer(SelectableMapping aggregateColumn, SelectableMapping[] columnsToUpdate, TypeConfiguration typeConfiguration) - Specified by:
aggregateCustomWriteExpressionRendererin interfaceAggregateSupport- Overrides:
aggregateCustomWriteExpressionRendererin classPostgreSQLAggregateSupport- Parameters:
aggregateColumn- The mapping of the aggregate columncolumnsToUpdate- The mappings of the columns that should be updatedtypeConfiguration- The type configuration
-