Class DefaultApplicationOwnedCatalogNativeSqlStrategy

  • All Implemented Interfaces:
    NativeSqlStrategy, org.springframework.core.Ordered

    public class DefaultApplicationOwnedCatalogNativeSqlStrategy
    extends Object
    implements NativeSqlStrategy
    Standard strategy for fetching an inheritance line from a starting catalog to a leaf catalog owned by a application. Covers Postgres, Mysql, and MariaDB.
    Author:
    Jeff Fischer
    • Constructor Detail

      • DefaultApplicationOwnedCatalogNativeSqlStrategy

        public DefaultApplicationOwnedCatalogNativeSqlStrategy​(com.broadleafcommerce.data.tracking.jpa.IdType idType)
    • Method Detail

      • isValid

        public boolean isValid​(javax.persistence.EntityManager em)
        Description copied from interface: NativeSqlStrategy
        Is this strategy valid for the given entity manager.
        Specified by:
        isValid in interface NativeSqlStrategy
        Parameters:
        em - The entity manager instance to check
        Returns:
        Whether or not this strategy is valid
      • getSql

        public String getSql​(Map<String,​Object> args)
        Description copied from interface: NativeSqlStrategy
        The fully formed SQL query
        Specified by:
        getSql in interface NativeSqlStrategy
        Parameters:
        args - Arguments passed to the strategy that could be useful during sql generation
        Returns:
        The fully formed SQL query