Interface AggregateSupport

    • Method Detail

      • aggregateComponentCustomReadExpression

        String aggregateComponentCustomReadExpression​(String template,
                                                      String placeholder,
                                                      String aggregateParentReadExpression,
                                                      String column,
                                                      ColumnTypeInformation aggregateColumnType,
                                                      ColumnTypeInformation columnType)
        Returns the custom read expression to use for column. Replaces the given placeholder in the given template by the custom read expression to use for column.
        Parameters:
        template - The custom read expression template of the column
        placeholder - The placeholder to replace with the actual read expression
        aggregateParentReadExpression - The expression to the aggregate column, which contains the column
        column - The column within the aggregate type, for which to return the read expression
        aggregateColumnType - The type information for the aggregate column
        columnType - The type information for the column within the aggregate type
      • aggregateComponentAssignmentExpression

        String aggregateComponentAssignmentExpression​(String aggregateParentAssignmentExpression,
                                                      String column,
                                                      ColumnTypeInformation aggregateColumnType,
                                                      ColumnTypeInformation columnType)
        Returns the assignment expression to use for column, which is part of the aggregate type of aggregatePath.
        Parameters:
        aggregateParentAssignmentExpression - The expression to the aggregate column, which contains the column
        column - The column within the aggregate type, for which to return the assignment expression
        aggregateColumnType - The type information for the aggregate column
        columnType - The type information for the column within the aggregate type
      • aggregateCustomWriteExpression

        String aggregateCustomWriteExpression​(ColumnTypeInformation aggregateColumnType,
                                              List<Column> aggregatedColumns)
        Returns the custom write expression to use for an aggregate column of the given column type, containing the given aggregated columns.
        Parameters:
        aggregateColumnType - The type information for the aggregate column
        aggregatedColumns - The columns of the aggregate type
      • preferSelectAggregateMapping

        boolean preferSelectAggregateMapping​(int aggregateSqlTypeCode)
        Whether to prefer selecting the aggregate column as a whole instead of individual parts.
      • preferBindAggregateMapping

        boolean preferBindAggregateMapping​(int aggregateSqlTypeCode)
        Whether to prefer binding the aggregate column as a whole instead of individual parts.
      • aggregateComponentSqlTypeCode

        int aggregateComponentSqlTypeCode​(int aggregateColumnSqlTypeCode,
                                          int columnSqlTypeCode)
        Returns the SqlTypes type code to use for the given column type code, when aggregated within a column of the given aggregate column type code. Allows to change types when a database does not allow to use certain types within an aggregate type, like DB2 doesn't allow the use of boolean within an object/struct type.
        Parameters:
        aggregateColumnSqlTypeCode - The SqlTypes type code of the aggregate column
        columnSqlTypeCode - The SqlTypes type code of the column
      • supportsComponentCheckConstraints

        boolean supportsComponentCheckConstraints()
        Returns whether the database supports the use of a check constraint on tables, to implement not-null and other constraints of an aggregate type.