Top Description Constructors Methods
org.hibernate.dialect

public Class PostgreSQLSqlAstTranslator<T extends org.hibernate.sql.exec.spi.JdbcOperation>

extends SqlAstTranslatorWithMerge<T extends JdbcOperation>
Class Inheritance
Imports
org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.metamodel.mapping.JdbcMappingContainer, org.hibernate.query.sqm.ComparisonOperator, .FetchClauseType, org.hibernate.sql.ast.tree.Statement, org.hibernate.sql.ast.tree.cte.CteMaterialization, .CteStatement, org.hibernate.sql.ast.tree.expression.BinaryArithmeticExpression, .Expression, .Literal, .Summarization, org.hibernate.sql.ast.tree.predicate.BooleanExpressionPredicate, .InArrayPredicate, .LikePredicate, .NullnessPredicate, org.hibernate.sql.ast.tree.select.QueryGroup, .QueryPart, .QuerySpec, org.hibernate.sql.exec.spi.JdbcOperation, org.hibernate.sql.model.internal.TableInsertStandard, org.hibernate.type.SqlTypes

A SQL AST translator for PostgreSQL.
Author
Christian Beikov

Constructor Summary

AccessConstructor and Description
public
PostgreSQLSqlAstTranslator(SessionFactoryImplementor sessionFactory, Statement statement)

Deprecated as a consequence of SessionFactoryImplementor being deprecated.

Method Summary

Modifier and TypeMethod and Description
protected String
getArrayContainsFunction()

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.getArrayContainsFunction.

Returns the name of the array_contains(array, element) function, which is used for emulating the cycle clause.
protected String
protected String
protected void
protected void
protected void
protected void
protected void
protected void
protected boolean
protected boolean
public boolean
protected boolean
supportsRecursiveCycleClause()

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.supportsRecursiveCycleClause.

Whether the SQL cycle clause is supported, which can be used for recursive CTEs.
protected boolean
protected boolean
supportsRecursiveSearchClause()

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.supportsRecursiveSearchClause.

Whether the SQL search clause is supported, which can be used for recursive CTEs.
protected boolean
public void
public void
public void
public void
public void
public void
public void
public void
Inherited from org.hibernate.dialect.SqlAstTranslatorWithMerge:
createMergeOperationrenderMergeDeleterenderMergeInsertrenderMergeIntorenderMergeOnrenderMergeSourceAliasrenderMergeStatementrenderMergeTargetAliasrenderMergeUpdaterenderMergeUsingrenderMergeUsingQuerySelection

Constructor Detail

PostgreSQLSqlAstTranslatorback to summary
public PostgreSQLSqlAstTranslator(SessionFactoryImplementor sessionFactory, Statement statement)

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Method Detail

getArrayContainsFunctionback to summary
protected String getArrayContainsFunction()

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.getArrayContainsFunction.

Doc from org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.getArrayContainsFunction.

Returns the name of the array_contains(array, element) function, which is used for emulating the cycle clause.

Annotations
@Override
getForShareback to summary
protected String getForShare(int timeoutMillis)

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.getForShare.

Annotations
@Override
getForUpdateback to summary
protected String getForUpdate()

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.getForUpdate.

Annotations
@Override
renderComparisonback to summary
protected void renderComparison(Expression lhs, ComparisonOperator operator, Expression rhs)

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.renderComparison.

Annotations
@Override
renderExpressionAsClauseItemback to summary
protected void renderExpressionAsClauseItem(Expression expression)

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.renderExpressionAsClauseItem.

Annotations
@Override
renderInsertIntoNoColumnsback to summary
protected void renderInsertIntoNoColumns(TableInsertStandard tableInsert)

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.renderInsertIntoNoColumns.

Doc from org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.renderInsertIntoNoColumns.

Handle rendering an insert with no columns

Annotations
@Override
renderMaterializationHintback to summary
protected void renderMaterializationHint(CteMaterialization materialization)

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.renderMaterializationHint.

Annotations
@Override
renderPartitionItemback to summary
protected void renderPartitionItem(Expression expression)

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.renderPartitionItem.

Annotations
@Override
renderStandardCycleClauseback to summary
protected void renderStandardCycleClause(CteStatement cte)

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.renderStandardCycleClause.

Annotations
@Override
shouldEmulateFetchClauseback to summary
protected boolean shouldEmulateFetchClause(QueryPart queryPart)
supportsArrayConstructorback to summary
protected boolean supportsArrayConstructor()

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.supportsArrayConstructor.

Doc from org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.supportsArrayConstructor.

Whether the SQL array constructor is supported.

Annotations
@Override
supportsFilterClauseback to summary
public boolean supportsFilterClause()

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.supportsFilterClause.

Implements org.hibernate.sql.ast.SqlAstTranslator.supportsFilterClause.

Doc from org.hibernate.sql.ast.SqlAstTranslator.supportsFilterClause.

Whether the FILTER clause for aggregate functions is supported.

Annotations
@Override
supportsRecursiveCycleClauseback to summary
protected boolean supportsRecursiveCycleClause()

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.supportsRecursiveCycleClause.

Doc from org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.supportsRecursiveCycleClause.

Whether the SQL cycle clause is supported, which can be used for recursive CTEs.

Annotations
@Override
supportsRecursiveCycleUsingClauseback to summary
protected boolean supportsRecursiveCycleUsingClause()

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.supportsRecursiveCycleUsingClause.

Doc from org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.supportsRecursiveCycleUsingClause.

Whether the SQL cycle clause supports the using sub-clause.

Annotations
@Override
supportsRecursiveSearchClauseback to summary
protected boolean supportsRecursiveSearchClause()

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.supportsRecursiveSearchClause.

Doc from org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.supportsRecursiveSearchClause.

Whether the SQL search clause is supported, which can be used for recursive CTEs.

Annotations
@Override
supportsRowConstructorback to summary
protected boolean supportsRowConstructor()

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.supportsRowConstructor.

Doc from org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.supportsRowConstructor.

Whether the SQL row constructor is supported.

Annotations
@Override
visitBinaryArithmeticExpressionback to summary
public void visitBinaryArithmeticExpression(BinaryArithmeticExpression arithmeticExpression)

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.visitBinaryArithmeticExpression.

Implements org.hibernate.sql.ast.SqlAstWalker.visitBinaryArithmeticExpression.

Annotations
@Override
visitBooleanExpressionPredicateback to summary
public void visitBooleanExpressionPredicate(BooleanExpressionPredicate booleanExpressionPredicate)

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.visitBooleanExpressionPredicate.

Implements org.hibernate.sql.ast.SqlAstWalker.visitBooleanExpressionPredicate.

Annotations
@Override
visitInArrayPredicateback to summary
public void visitInArrayPredicate(InArrayPredicate inArrayPredicate)

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.visitInArrayPredicate.

Implements org.hibernate.sql.ast.SqlAstWalker.visitInArrayPredicate.

Annotations
@Override
visitLikePredicateback to summary
public void visitLikePredicate(LikePredicate likePredicate)

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.visitLikePredicate.

Implements org.hibernate.sql.ast.SqlAstWalker.visitLikePredicate.

Annotations
@Override
visitNullnessPredicateback to summary
public void visitNullnessPredicate(NullnessPredicate nullnessPredicate)

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.visitNullnessPredicate.

Implements org.hibernate.sql.ast.SqlAstWalker.visitNullnessPredicate.

Annotations
@Override
visitOffsetFetchClauseback to summary
public void visitOffsetFetchClause(QueryPart queryPart)

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.visitOffsetFetchClause.

Implements org.hibernate.sql.ast.SqlAstWalker.visitOffsetFetchClause.

Annotations
@Override
visitQueryGroupback to summary
public void visitQueryGroup(QueryGroup queryGroup)

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.visitQueryGroup.

Implements org.hibernate.sql.ast.SqlAstWalker.visitQueryGroup.

Annotations
@Override
visitQuerySpecback to summary
public void visitQuerySpec(QuerySpec querySpec)

Overrides org.hibernate.sql.ast.spi.AbstractSqlAstTranslator.visitQuerySpec.

Implements org.hibernate.sql.ast.SqlAstWalker.visitQuerySpec.

Annotations
@Override