Class MerchandiseDao


  • public class MerchandiseDao
    extends java.lang.Object
    DAO for loading Merchandise records from the database. Results are returned in sort_order sequence. The pricing_mode column is mapped to Merchandise.PricingMode.
    • Constructor Summary

      Constructors 
      Constructor Description
      MerchandiseDao​(javax.sql.DataSource dataSource)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Merchandise> findAll()
      Returns all merchandise items ordered by sort_order.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MerchandiseDao

        public MerchandiseDao​(javax.sql.DataSource dataSource)
        Parameters:
        dataSource - the application data source
    • Method Detail

      • findAll

        public java.util.List<Merchandise> findAll()
        Returns all merchandise items ordered by sort_order.
        Returns:
        a non-null, possibly empty list of Merchandise objects
        Throws:
        java.lang.RuntimeException - if the query fails