Class BroadleafDialectEnhancer.DialectInterceptor

java.lang.Object
com.broadleafcommerce.common.jpa.data.dialect.BroadleafDialectEnhancer.DialectInterceptor
Enclosing class:
BroadleafDialectEnhancer

public static class BroadleafDialectEnhancer.DialectInterceptor extends Object
Inner interceptor class used by ByteBuddy to delegate method calls.
  • Constructor Details

    • DialectInterceptor

      public DialectInterceptor()
  • Method Details

    • getSqlAstTranslatorFactory

      @RuntimeType public static org.hibernate.sql.ast.SqlAstTranslatorFactory getSqlAstTranslatorFactory(@SuperCall Callable<org.hibernate.sql.ast.SqlAstTranslatorFactory> superCall) throws Exception
      Intercepts the invocation of getSqlAstTranslatorFactory() on the dynamically generated subclass. Instead of returning the standard dialect factory, this returns a new instance of BroadleafSqlAstTranslatorFactory.
      Parameters:
      superCall - the original super-method invocation reference (not executed here as we completely bypass it)
      Returns:
      a BroadleafSqlAstTranslatorFactory instance
      Throws:
      Exception - if an error occurs during interception