Class DefaultCatalogRelationshipNativeSqlStrategy

java.lang.Object
com.broadleafcommerce.tenant.provider.jpa.repository.strategies.DefaultCatalogRelationshipNativeSqlStrategy
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy, org.springframework.core.Ordered

public class DefaultCatalogRelationshipNativeSqlStrategy extends Object implements com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy
Strategy for retrieving a list of catalog IDs that are members of the same inheritance graph. This implementation is for Postgres and MySQL.
See Also:
  • Constructor Details

    • DefaultCatalogRelationshipNativeSqlStrategy

      public DefaultCatalogRelationshipNativeSqlStrategy()
  • Method Details

    • isValid

      public boolean isValid(jakarta.persistence.EntityManager em)
      Specified by:
      isValid in interface com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy
    • getName

      public String getName()
      Specified by:
      getName in interface com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy
    • getSql

      public String getSql(Map<String,Object> args)
      Specified by:
      getSql in interface com.broadleafcommerce.data.tracking.jpa.persistence.NativeSqlStrategy