Class HsqlMultiRootCatalogGraphNativeSqlStrategy

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

    public class HsqlMultiRootCatalogGraphNativeSqlStrategy
    extends Object
    implements NativeSqlStrategy
    HSQL specific strategy for fetching a complete catalog inheritance graph given multiple starting points.
    Author:
    Jeff Fischer
    • Constructor Detail

      • HsqlMultiRootCatalogGraphNativeSqlStrategy

        public HsqlMultiRootCatalogGraphNativeSqlStrategy​(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