java.lang.Object
org.hibernate.query.sqm.function.AbstractSqmFunctionDescriptor
org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor
ch.tocco.nice2.persist.core.impl.hibernate.dialect.GlobSqlFunction
All Implemented Interfaces:
org.hibernate.query.sqm.function.FunctionRenderer, org.hibernate.query.sqm.function.FunctionRenderingSupport, org.hibernate.query.sqm.function.SqmFunctionDescriptor

public class GlobSqlFunction extends org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor
Implements the functionality of the 'glob' user type. Replaces the '*' and '?' chars with '%' and '_' in the like pattern.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GlobSqlFunction(org.hibernate.type.spi.TypeConfiguration typeConfiguration, SqlWriterBase.SqlWriterConfiguration configuration)
     
  • 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.query.ReturnableType<?> returnableType, org.hibernate.sql.ast.SqlAstTranslator<?> walker)
     

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

    generateSqmAggregateFunctionExpression, generateSqmFunctionExpression, generateSqmOrderedSetAggregateFunctionExpression, generateSqmWindowFunctionExpression, getFunctionKind

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

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

    Methods inherited from class java.lang.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.FunctionRenderingSupport

    render, render, render

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

    alwaysIncludesParentheses, generateSqmExpression, generateSqmExpression
  • Constructor Details

  • Method Details

    • render

      public void render(org.hibernate.sql.ast.spi.SqlAppender sqlAppender, List<? extends org.hibernate.sql.ast.tree.SqlAstNode> sqlAstArguments, org.hibernate.query.ReturnableType<?> returnableType, org.hibernate.sql.ast.SqlAstTranslator<?> walker)
      Specified by:
      render in interface org.hibernate.query.sqm.function.FunctionRenderer
      Specified by:
      render in interface org.hibernate.query.sqm.function.FunctionRenderingSupport
      Overrides:
      render in class org.hibernate.query.sqm.function.AbstractSqmSelfRenderingFunctionDescriptor