Class ServiceDao


  • public class ServiceDao
    extends java.lang.Object
    DAO for loading Service records from the database. Results are returned in sort_order sequence.
    • Constructor Summary

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

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

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

      • ServiceDao

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

      • findAll

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