Class GetStaff

java.lang.Object
org.deltava.dao.DAO
org.deltava.dao.GetStaff

public class GetStaff extends DAO
A Data Access Object to return Staff Profiles.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • GetStaff

      public GetStaff(Connection c)
      Initializes the Data Access Object.
      Parameters:
      c - the JDBC connection to use
  • Method Details

    • get

      public Staff get(int id) throws DAOException
      Returns the staff profile corresponding to a particular database ID.
      Parameters:
      id - the pilot ID
      Returns:
      the Staff profile, or null if not found
      Throws:
      DAOException - if a JDBC error occurs
    • getStaff

      public Collection<Staff> getStaff() throws DAOException
      Returns all Staff Profile objects from the database.
      Returns:
      a List of Staff Profiles
      Throws:
      DAOException - if a JDBC error occurs