Top Fields Constructors Methods
org.hibernate.dialect.aggregate

public Class AggregateSupportImpl

extends Object
implements AggregateSupport
Class Inheritance
All Implemented Interfaces
org.hibernate.dialect.aggregate.AggregateSupport
Known Direct Subclasses
org.hibernate.dialect.aggregate.DB2AggregateSupport, org.hibernate.dialect.aggregate.OracleAggregateSupport, org.hibernate.dialect.aggregate.PostgreSQLAggregateSupport
Imports
java.util.Collections, .List, org.hibernate.boot.model.relational.AuxiliaryDatabaseObject, .Namespace, org.hibernate.mapping.Column, org.hibernate.metamodel.mapping.SelectableMapping, org.hibernate.tool.schema.extract.spi.ColumnTypeInformation, org.hibernate.type.spi.TypeConfiguration

Field Summary

Modifier and TypeField and Description
public static final AggregateSupport

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public List<AuxiliaryDatabaseObject>
aggregateAuxiliaryDatabaseObjects(Namespace namespace, String aggregatePath, ColumnTypeInformation aggregateColumnType, List<Column> aggregatedColumns)

Implements org.hibernate.dialect.aggregate.AggregateSupport.aggregateAuxiliaryDatabaseObjects.

Allows to generate auxiliary database objects for an aggregate type.
public String
aggregateComponentAssignmentExpression(String
The expression to the aggregate column, which contains the column
aggregateParentAssignmentExpression
,
String
The column within the aggregate type, for which to return the assignment expression
column
,
ColumnTypeInformation
The type information for the aggregate column
aggregateColumnType
,
ColumnTypeInformation
The type information for the column within the aggregate type
columnType
)

Implements org.hibernate.dialect.aggregate.AggregateSupport.aggregateComponentAssignmentExpression.

Returns the assignment expression to use for column, which is part of the aggregate type of aggregatePath.
public String
aggregateComponentCustomReadExpression(String
The custom read expression template of the column
template
,
String
The placeholder to replace with the actual read expression
placeholder
,
String
The expression to the aggregate column, which contains the column
aggregateParentReadExpression
,
String
The column within the aggregate type, for which to return the read expression
column
,
ColumnTypeInformation
The type information for the aggregate column
aggregateColumnType
,
ColumnTypeInformation
The type information for the column within the aggregate type
columnType
)

Implements org.hibernate.dialect.aggregate.AggregateSupport.aggregateComponentCustomReadExpression.

Returns the custom read expression to use for column.
public int
aggregateComponentSqlTypeCode(int
The org.hibernate.type.SqlTypes type code of the aggregate column
aggregateColumnSqlTypeCode
,
int
The org.hibernate.type.SqlTypes type code of the column
columnSqlTypeCode
)

Implements org.hibernate.dialect.aggregate.AggregateSupport.aggregateComponentSqlTypeCode.

Returns the org.hibernate.type.SqlTypes type code to use for the given column type code, when aggregated within a column of the given aggregate column type code.
public String
aggregateCustomWriteExpression(ColumnTypeInformation
The type information for the aggregate column
aggregateColumnType
,
List<Column>
The columns of the aggregate type
aggregatedColumns
)

Implements org.hibernate.dialect.aggregate.AggregateSupport.aggregateCustomWriteExpression.

Returns the custom write expression to use for an aggregate column of the given column type, containing the given aggregated columns.
public AggregateSupport.WriteExpressionRenderer
aggregateCustomWriteExpressionRenderer(SelectableMapping
The mapping of the aggregate column
aggregateColumn
,
SelectableMapping[]
The mappings of the columns that should be updated
columnsToUpdate
,
TypeConfiguration
The type configuration
typeConfiguration
)

Implements org.hibernate.dialect.aggregate.AggregateSupport.aggregateCustomWriteExpressionRenderer.

public boolean
preferBindAggregateMapping(int aggregateSqlTypeCode)

Implements org.hibernate.dialect.aggregate.AggregateSupport.preferBindAggregateMapping.

Whether to prefer binding the aggregate column as a whole instead of individual parts.
public boolean
preferSelectAggregateMapping(int aggregateSqlTypeCode)

Implements org.hibernate.dialect.aggregate.AggregateSupport.preferSelectAggregateMapping.

Whether to prefer selecting the aggregate column as a whole instead of individual parts.
public boolean
public boolean
supportsComponentCheckConstraints()

Implements org.hibernate.dialect.aggregate.AggregateSupport.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.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
public static final AggregateSupport INSTANCE

Constructor Detail

AggregateSupportImplback to summary
public AggregateSupportImpl()

Method Detail

aggregateAuxiliaryDatabaseObjectsback to summary
public List<AuxiliaryDatabaseObject> aggregateAuxiliaryDatabaseObjects(Namespace namespace, String aggregatePath, ColumnTypeInformation aggregateColumnType, List<Column> aggregatedColumns)

Implements org.hibernate.dialect.aggregate.AggregateSupport.aggregateAuxiliaryDatabaseObjects.

Doc from org.hibernate.dialect.aggregate.AggregateSupport.aggregateAuxiliaryDatabaseObjects.

Allows to generate auxiliary database objects for an aggregate type.

Annotations
@Override
aggregateComponentAssignmentExpressionback to summary
public String aggregateComponentAssignmentExpression(String aggregateParentAssignmentExpression, String column, ColumnTypeInformation aggregateColumnType, ColumnTypeInformation columnType)

Implements org.hibernate.dialect.aggregate.AggregateSupport.aggregateComponentAssignmentExpression.

Doc from org.hibernate.dialect.aggregate.AggregateSupport.aggregateComponentAssignmentExpression.

Returns the assignment expression to use for column, which is part of the aggregate type of aggregatePath.

Parameters
aggregateParentAssignmentExpression:String

The expression to the aggregate column, which contains the column

column:String

The column within the aggregate type, for which to return the assignment expression

aggregateColumnType:ColumnTypeInformation

The type information for the aggregate column

columnType:ColumnTypeInformation

The type information for the column within the aggregate type

Annotations
@Override
aggregateComponentCustomReadExpressionback to summary
public String aggregateComponentCustomReadExpression(String template, String placeholder, String aggregateParentReadExpression, String column, ColumnTypeInformation aggregateColumnType, ColumnTypeInformation columnType)

Implements org.hibernate.dialect.aggregate.AggregateSupport.aggregateComponentCustomReadExpression.

Doc from org.hibernate.dialect.aggregate.AggregateSupport.aggregateComponentCustomReadExpression.

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:String

The custom read expression template of the column

placeholder:String

The placeholder to replace with the actual read expression

aggregateParentReadExpression:String

The expression to the aggregate column, which contains the column

column:String

The column within the aggregate type, for which to return the read expression

aggregateColumnType:ColumnTypeInformation

The type information for the aggregate column

columnType:ColumnTypeInformation

The type information for the column within the aggregate type

Annotations
@Override
aggregateComponentSqlTypeCodeback to summary
public int aggregateComponentSqlTypeCode(int aggregateColumnSqlTypeCode, int columnSqlTypeCode)

Implements org.hibernate.dialect.aggregate.AggregateSupport.aggregateComponentSqlTypeCode.

Doc from org.hibernate.dialect.aggregate.AggregateSupport.aggregateComponentSqlTypeCode.

Returns the org.hibernate.type.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:int

The org.hibernate.type.SqlTypes type code of the aggregate column

columnSqlTypeCode:int

The org.hibernate.type.SqlTypes type code of the column

Annotations
@Override
aggregateCustomWriteExpressionback to summary
public String aggregateCustomWriteExpression(ColumnTypeInformation aggregateColumnType, List<Column> aggregatedColumns)

Implements org.hibernate.dialect.aggregate.AggregateSupport.aggregateCustomWriteExpression.

Doc from org.hibernate.dialect.aggregate.AggregateSupport.aggregateCustomWriteExpression.

Returns the custom write expression to use for an aggregate column of the given column type, containing the given aggregated columns.

Parameters
aggregateColumnType:ColumnTypeInformation

The type information for the aggregate column

aggregatedColumns:List<Column>

The columns of the aggregate type

Annotations
@Override
aggregateCustomWriteExpressionRendererback to summary
public AggregateSupport.WriteExpressionRenderer aggregateCustomWriteExpressionRenderer(SelectableMapping aggregateColumn, SelectableMapping[] columnsToUpdate, TypeConfiguration typeConfiguration)

Implements org.hibernate.dialect.aggregate.AggregateSupport.aggregateCustomWriteExpressionRenderer.

Parameters
aggregateColumn:SelectableMapping

Doc from org.hibernate.dialect.aggregate.AggregateSupport.aggregateCustomWriteExpressionRenderer.

The mapping of the aggregate column

columnsToUpdate:SelectableMapping[]

Doc from org.hibernate.dialect.aggregate.AggregateSupport.aggregateCustomWriteExpressionRenderer.

The mappings of the columns that should be updated

typeConfiguration:TypeConfiguration

Doc from org.hibernate.dialect.aggregate.AggregateSupport.aggregateCustomWriteExpressionRenderer.

The type configuration

Annotations
@Override
preferBindAggregateMappingback to summary
public boolean preferBindAggregateMapping(int aggregateSqlTypeCode)

Implements org.hibernate.dialect.aggregate.AggregateSupport.preferBindAggregateMapping.

Doc from org.hibernate.dialect.aggregate.AggregateSupport.preferBindAggregateMapping.

Whether to prefer binding the aggregate column as a whole instead of individual parts.

Annotations
@Override
preferSelectAggregateMappingback to summary
public boolean preferSelectAggregateMapping(int aggregateSqlTypeCode)

Implements org.hibernate.dialect.aggregate.AggregateSupport.preferSelectAggregateMapping.

Doc from org.hibernate.dialect.aggregate.AggregateSupport.preferSelectAggregateMapping.

Whether to prefer selecting the aggregate column as a whole instead of individual parts.

Annotations
@Override
requiresAggregateCustomWriteExpressionRendererback to summary
public boolean requiresAggregateCustomWriteExpressionRenderer(int aggregateSqlTypeCode)

Implements org.hibernate.dialect.aggregate.AggregateSupport.requiresAggregateCustomWriteExpressionRenderer.

Doc from org.hibernate.dialect.aggregate.AggregateSupport.requiresAggregateCustomWriteExpressionRenderer.

Whether aggregateCustomWriteExpressionRenderer(SelectableMapping, SelectableMapping[], TypeConfiguration) is needed when assigning an expression to individual aggregated columns in an update statement.

Annotations
@Override
supportsComponentCheckConstraintsback to summary
public boolean supportsComponentCheckConstraints()

Implements org.hibernate.dialect.aggregate.AggregateSupport.supportsComponentCheckConstraints.

Doc from org.hibernate.dialect.aggregate.AggregateSupport.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.

Annotations
@Override