Class StandardAggregateSupport
java.lang.Object
org.hibernate.dialect.aggregate.spi.StandardAggregateSupport
- All Implemented Interfaces:
AggregateSupport
Standard aggregate base for focused provider overrides.
- Since:
- 8.0
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreate a provider aggregate support by selectively overriding the standard behavior. -
Method Summary
Modifier and TypeMethodDescriptionDeclare auxiliary schema objects required by an aggregate type.Render the assignment target for one component of an aggregate column.Render the read expression for one component of an aggregate column.intaggregateComponentSqlTypeCode(int aggregateCode, int columnCode) Resolve the effective SQL type code of a component within an aggregate representation.Render a custom JDBC write expression for the complete aggregate value.Supply the renderer for a partial aggregate assignment.booleanpreferBindAggregateMapping(int code) Determine whether binding should write the aggregate as one value instead of binding its components independently.booleanpreferSelectAggregateMapping(int code) Determine whether selection should read the aggregate as one value instead of selecting its components independently.booleanDetermine whether partial updates of this aggregate representation require a custom renderer.booleanDetermine whether component nullability and checks may be expressed as a check constraint on the containing table.
-
Constructor Details
-
StandardAggregateSupport
-
-
Method Details
-
aggregateComponentCustomReadExpression
Description copied from interface:AggregateSupportRender the read expression for one component of an aggregate column.- Specified by:
aggregateComponentCustomReadExpressionin interfaceAggregateSupport- Parameters:
request- the call-scoped read facts; do not retain it- Returns:
- the component read expression
-
aggregateComponentAssignmentExpression
Description copied from interface:AggregateSupportRender the assignment target for one component of an aggregate column.- Specified by:
aggregateComponentAssignmentExpressionin interfaceAggregateSupport- Parameters:
request- the call-scoped assignment facts; do not retain it- Returns:
- the component assignment expression
-
aggregateCustomWriteExpression
Description copied from interface:AggregateSupportRender a custom JDBC write expression for the complete aggregate value.- Specified by:
aggregateCustomWriteExpressionin interfaceAggregateSupport- Parameters:
request- the call-scoped aggregate facts; do not retain it- Returns:
- the custom write expression, or
nullto use ordinary binding
-
requiresAggregateCustomWriteExpressionRenderer
public boolean requiresAggregateCustomWriteExpressionRenderer(int code) Description copied from interface:AggregateSupportDetermine whether partial updates of this aggregate representation require a custom renderer.- Specified by:
requiresAggregateCustomWriteExpressionRendererin interfaceAggregateSupport
-
preferSelectAggregateMapping
public boolean preferSelectAggregateMapping(int code) Description copied from interface:AggregateSupportDetermine whether selection should read the aggregate as one value instead of selecting its components independently.- Specified by:
preferSelectAggregateMappingin interfaceAggregateSupport
-
preferBindAggregateMapping
public boolean preferBindAggregateMapping(int code) Description copied from interface:AggregateSupportDetermine whether binding should write the aggregate as one value instead of binding its components independently.- Specified by:
preferBindAggregateMappingin interfaceAggregateSupport
-
aggregateCustomWriteExpressionRenderer
public AggregateWriteExpressionRenderer aggregateCustomWriteExpressionRenderer(AggregateWriteRendererRequest request) Description copied from interface:AggregateSupportSupply the renderer for a partial aggregate assignment.- Specified by:
aggregateCustomWriteExpressionRendererin interfaceAggregateSupport- Parameters:
request- the call-scoped selectable mappings; do not retain it- Returns:
- the renderer for this assignment
- See Also:
-
aggregateAuxiliaryObjects
public List<AggregateAuxiliaryObject> aggregateAuxiliaryObjects(AggregateAuxiliaryObjectRequest request) Description copied from interface:AggregateSupportDeclare auxiliary schema objects required by an aggregate type. Return immutable descriptors and never mutate Hibernate's namespace model.- Specified by:
aggregateAuxiliaryObjectsin interfaceAggregateSupport- Parameters:
request- the call-scoped aggregate facts; do not retain it
-
aggregateComponentSqlTypeCode
public int aggregateComponentSqlTypeCode(int aggregateCode, int columnCode) Description copied from interface:AggregateSupportResolve the effective SQL type code of a component within an aggregate representation.- Specified by:
aggregateComponentSqlTypeCodein interfaceAggregateSupport
-
supportsComponentCheckConstraints
public boolean supportsComponentCheckConstraints()Description copied from interface:AggregateSupportDetermine whether component nullability and checks may be expressed as a check constraint on the containing table.- Specified by:
supportsComponentCheckConstraintsin interfaceAggregateSupport
-