Class DerbyDao

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    public class DerbyDao
    extends org.springframework.jdbc.core.support.JdbcDaoSupport
    Class used to interact with the Apache Derby DAO. We use this in our test Servlet used to verify that jdbc connectors are working.
    See Also:
    TestServlet
    • Field Summary

      • Fields inherited from class org.springframework.dao.support.DaoSupport

        logger
    • Constructor Summary

      Constructors 
      Constructor Description
      DerbyDao()  
    • Constructor Detail

      • DerbyDao

        public DerbyDao()
    • Method Detail

      • createTable

        public void createTable()
        Creates the Person table.
      • dropTable

        public void dropTable()
        Drops the Person table.
      • create

        public void create​(String firstName,
                           String lastName)
        Creates a person.
        Parameters:
        firstName - First name.
        lastName - Last name.
      • selectAll

        public List selectAll()
        Returns:
        All Person objects in the Person database.