Top Inners Fields Constructors Methods
org.hibernate.dialect.aggregate

public Class PostgreSQLAggregateSupport

extends AggregateSupportImpl
Class Inheritance
Imports
java.util.LinkedHashMap, .Map, org.hibernate.dialect.Dialect, org.hibernate.metamodel.mapping.SelectableMapping, .SelectablePath, org.hibernate.sql.ast.SqlAstNodeRenderingMode, .SqlAstTranslator, org.hibernate.sql.ast.spi.SqlAppender, org.hibernate.tool.schema.extract.spi.ColumnTypeInformation, org.hibernate.type.spi.TypeConfiguration

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
pack-priv static interface
private static class

Field Summary

Modifier and TypeField and Description
private static final AggregateSupport

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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
)

Overrides org.hibernate.dialect.aggregate.AggregateSupportImpl.aggregateComponentAssignmentExpression.

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
)

Overrides org.hibernate.dialect.aggregate.AggregateSupportImpl.aggregateComponentCustomReadExpression.

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

Returns the custom read expression to use for column.
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
)

Overrides org.hibernate.dialect.aggregate.AggregateSupportImpl.aggregateCustomWriteExpressionRenderer.

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

private AggregateSupport.WriteExpressionRenderer
private static String
jsonCustomWriteExpression(String customWriteExpression, int sqlTypeCode)

public boolean
preferSelectAggregateMapping(int aggregateSqlTypeCode)

Overrides org.hibernate.dialect.aggregate.AggregateSupportImpl.preferSelectAggregateMapping.

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

Whether to prefer selecting the aggregate column as a whole instead of individual parts.
public boolean
public static AggregateSupport
valueOf(Dialect dialect)

Inherited from org.hibernate.dialect.aggregate.AggregateSupportImpl:
aggregateAuxiliaryDatabaseObjectsaggregateComponentSqlTypeCodeaggregateCustomWriteExpressionpreferBindAggregateMappingsupportsComponentCheckConstraints

Field Detail

INSTANCEback to summary
private static final AggregateSupport INSTANCE

Hides org.hibernate.dialect.aggregate.AggregateSupportImpl.INSTANCE.

Constructor Detail

PostgreSQLAggregateSupportback to summary
public PostgreSQLAggregateSupport()

Method Detail

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

Overrides org.hibernate.dialect.aggregate.AggregateSupportImpl.aggregateComponentAssignmentExpression.

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)

Overrides org.hibernate.dialect.aggregate.AggregateSupportImpl.aggregateComponentCustomReadExpression.

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
aggregateCustomWriteExpressionRendererback to summary
public AggregateSupport.WriteExpressionRenderer aggregateCustomWriteExpressionRenderer(SelectableMapping aggregateColumn, SelectableMapping[] columnsToUpdate, TypeConfiguration typeConfiguration)

Overrides org.hibernate.dialect.aggregate.AggregateSupportImpl.aggregateCustomWriteExpressionRenderer.

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
jsonAggregateColumnWriterback to summary
private AggregateSupport.WriteExpressionRenderer jsonAggregateColumnWriter(SelectableMapping aggregateColumn, SelectableMapping[] columns)
jsonCustomWriteExpressionback to summary
private static String jsonCustomWriteExpression(String customWriteExpression, int sqlTypeCode)
preferSelectAggregateMappingback to summary
public boolean preferSelectAggregateMapping(int aggregateSqlTypeCode)

Overrides org.hibernate.dialect.aggregate.AggregateSupportImpl.preferSelectAggregateMapping.

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)

Overrides org.hibernate.dialect.aggregate.AggregateSupportImpl.requiresAggregateCustomWriteExpressionRenderer.

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
valueOfback to summary
public static AggregateSupport valueOf(Dialect dialect)
org.hibernate.dialect.aggregate back to summary

private Class PostgreSQLAggregateSupport.AggregateJsonWriteExpression

extends Object
implements JsonWriteExpression
Class Inheritance
  • java.lang.Object
  • org.hibernate.dialect.aggregate.PostgreSQLAggregateSupport.AggregateJsonWriteExpression
All Implemented Interfaces
org.hibernate.dialect.aggregate.PostgreSQLAggregateSupport.JsonWriteExpression
Known Direct Subclasses
org.hibernate.dialect.aggregate.PostgreSQLAggregateSupport.RootJsonWriteExpression

Field Summary

Modifier and TypeField and Description
private final LinkedHashMap<String, PostgreSQLAggregateSupport.JsonWriteExpression>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public void
protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

subExpressionsback to summary
private final LinkedHashMap<String, PostgreSQLAggregateSupport.JsonWriteExpression> subExpressions

Constructor Detail

AggregateJsonWriteExpressionback to summary
private AggregateJsonWriteExpression()

Method Detail

appendback to summary
public void append(SqlAppender sb, String path, SqlAstTranslator<?> translator, AggregateSupport.AggregateColumnWriteExpression expression)

Implements org.hibernate.dialect.aggregate.PostgreSQLAggregateSupport.JsonWriteExpression.append.

Annotations
@Override
initializeSubExpressionsback to summary
protected void initializeSubExpressions(SelectableMapping[] columns)
org.hibernate.dialect.aggregate back to summary

private Class PostgreSQLAggregateSupport.BasicJsonWriteExpression

extends Object
implements JsonWriteExpression
Class Inheritance
  • java.lang.Object
  • org.hibernate.dialect.aggregate.PostgreSQLAggregateSupport.BasicJsonWriteExpression
All Implemented Interfaces
org.hibernate.dialect.aggregate.PostgreSQLAggregateSupport.JsonWriteExpression

Field Summary

Modifier and TypeField and Description
private final String
private final String
private final SelectableMapping

Constructor Summary

AccessConstructor and Description
pack-priv
BasicJsonWriteExpression(SelectableMapping selectableMapping, String customWriteExpression)

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

customWriteExpressionEndback to summary
private final String customWriteExpressionEnd
customWriteExpressionStartback to summary
private final String customWriteExpressionStart
selectableMappingback to summary
private final SelectableMapping selectableMapping

Constructor Detail

BasicJsonWriteExpressionback to summary
pack-priv BasicJsonWriteExpression(SelectableMapping selectableMapping, String customWriteExpression)

Method Detail

appendback to summary
public void append(SqlAppender sb, String path, SqlAstTranslator<?> translator, AggregateSupport.AggregateColumnWriteExpression expression)

Implements org.hibernate.dialect.aggregate.PostgreSQLAggregateSupport.JsonWriteExpression.append.

Annotations
@Override
org.hibernate.dialect.aggregate back to summary

pack-priv Interface PostgreSQLAggregateSupport.JsonWriteExpression

Known Direct Implementers
org.hibernate.dialect.aggregate.PostgreSQLAggregateSupport.AggregateJsonWriteExpression, org.hibernate.dialect.aggregate.PostgreSQLAggregateSupport.BasicJsonWriteExpression

Method Summary

Modifier and TypeMethod and Description
public void

Method Detail

appendback to summary
public void append(SqlAppender sb, String path, SqlAstTranslator<?> translator, AggregateSupport.AggregateColumnWriteExpression expression)
org.hibernate.dialect.aggregate back to summary

private Class PostgreSQLAggregateSupport.RootJsonWriteExpression

extends AggregateJsonWriteExpression
implements WriteExpressionRenderer
Class Inheritance
All Implemented Interfaces
org.hibernate.dialect.aggregate.AggregateSupport.WriteExpressionRenderer

Field Summary

Modifier and TypeField and Description
private final boolean
private final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
render(SqlAppender sqlAppender, SqlAstTranslator<?> translator, AggregateSupport.AggregateColumnWriteExpression aggregateColumnWriteExpression, String qualifier)

Implements org.hibernate.dialect.aggregate.AggregateSupport.WriteExpressionRenderer.render.

Renders the qualified custom write expression to the SqlAppender with the value expressions for each selectable as returned by AggregateColumnWriteExpression#getValueExpression(SelectableMapping).
Inherited from org.hibernate.dialect.aggregate.PostgreSQLAggregateSupport.AggregateJsonWriteExpression:
appendinitializeSubExpressions

Field Detail

nullableback to summary
private final boolean nullable
pathback to summary
private final String path

Constructor Detail

RootJsonWriteExpressionback to summary
pack-priv RootJsonWriteExpression(SelectableMapping aggregateColumn, SelectableMapping[] columns)

Method Detail

renderback to summary
public void render(SqlAppender sqlAppender, SqlAstTranslator<?> translator, AggregateSupport.AggregateColumnWriteExpression aggregateColumnWriteExpression, String qualifier)

Implements org.hibernate.dialect.aggregate.AggregateSupport.WriteExpressionRenderer.render.

Doc from org.hibernate.dialect.aggregate.AggregateSupport.WriteExpressionRenderer.render.

Renders the qualified custom write expression to the SqlAppender with the value expressions for each selectable as returned by AggregateColumnWriteExpression#getValueExpression(SelectableMapping).

Annotations
@Override