Class GaussDBArrayContainsOperatorFunction

java.lang.Object
org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor
org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor
org.hibernate.dialect.function.array.AbstractArrayContainsFunction
org.hibernate.dialect.function.array.ArrayContainsUnnestFunction
org.hibernate.community.dialect.function.array.GaussDBArrayContainsOperatorFunction
All Implemented Interfaces:
org.hibernate.query.sqm.function.FunctionRenderer, org.hibernate.query.sqm.function.SqmFunctionDescriptor

public class GaussDBArrayContainsOperatorFunction extends org.hibernate.dialect.function.array.ArrayContainsUnnestFunction
Special array contains function that also applies a cast to the element argument. PostgreSQL needs this, because by default it assumes a text[], which is not compatible with varchar[].
  • Field Summary

    Fields inherited from class org.hibernate.dialect.function.array.AbstractArrayContainsFunction

    LOG, nullable
  • Constructor Summary

    Constructors
    Constructor
    Description
    GaussDBArrayContainsOperatorFunction(boolean nullable, org.hibernate.type.spi.TypeConfiguration typeConfiguration)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(org.hibernate.sql.ast.spi.SqlAppender sqlAppender, List<? extends org.hibernate.sql.ast.tree.SqlAstNode> sqlAstArguments, org.hibernate.metamodel.model.domain.ReturnableType<?> returnType, org.hibernate.sql.ast.SqlAstTranslator<?> walker)
     

    Methods inherited from class org.hibernate.dialect.function.array.AbstractArrayContainsFunction

    getArgumentListSignature

    Methods inherited from class org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor

    filterClauseSupported, generateSqmAggregateFunctionExpression, generateSqmFunctionExpression, generateSqmOrderedSetAggregateFunctionExpression, generateSqmWindowFunctionExpression, getFunctionKind

    Methods inherited from class org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor

    generateAggregateSqmExpression, generateOrderedSetAggregateSqmExpression, generateSqmExpression, generateWindowSqmExpression, getArgumentsValidator, getArgumentTypeResolver, getName, getReturnSignature, getReturnTypeResolver, getSignature

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.hibernate.query.sqm.function.FunctionRenderer

    render, render, render, render

    Methods inherited from interface org.hibernate.query.sqm.function.SqmFunctionDescriptor

    alwaysIncludesParentheses, generateSqmExpression, generateSqmExpression, isPredicate
  • Constructor Details

    • GaussDBArrayContainsOperatorFunction

      public GaussDBArrayContainsOperatorFunction(boolean nullable, org.hibernate.type.spi.TypeConfiguration typeConfiguration)
  • Method Details

    • render

      public void render(org.hibernate.sql.ast.spi.SqlAppender sqlAppender, List<? extends org.hibernate.sql.ast.tree.SqlAstNode> sqlAstArguments, org.hibernate.metamodel.model.domain.ReturnableType<?> returnType, org.hibernate.sql.ast.SqlAstTranslator<?> walker)
      Specified by:
      render in interface org.hibernate.query.sqm.function.FunctionRenderer
      Overrides:
      render in class org.hibernate.dialect.function.array.ArrayContainsUnnestFunction