Class GetUserData

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

public class GetUserData extends DAO
A Data Access Object to load cross-application User data.
Since:
1.0
Version:
11.1
Author:
Luke
  • Constructor Details

    • GetUserData

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

    • get

      public AirlineInformation get(String code) throws DAOException
      Returns cross-application Airline data for a specific Airline.
      Parameters:
      code - the Airline code
      Returns:
      an AirlineInformation bean, or null if not found
      Throws:
      DAOException - if a JDBC error occurs
      NullPointerException - if code is null
      See Also:
    • getAirlines

      public Map<String, AirlineInformation> getAirlines(boolean includeSelf) throws DAOException
      Returns all available Airlines on this application server.
      Parameters:
      includeSelf - TRUE if we include this Airline, otherwise FALSE
      Returns:
      a Map of AirlineInformation beans, indexed by code
      Throws:
      DAOException - if a JDBC error occurs
    • get

      public UserData get(int id) throws DAOException
      Returns cross-application data for a particular database ID.
      Parameters:
      id - the User's database ID
      Returns:
      the UserData object for that user, or null if not found
      Throws:
      DAOException - if a JDBC error occurs
    • getByThread

      public UserDataMap getByThread(int threadID) throws DAOException
      Returns cross-application data for a particular Water Cooler message thread.
      Parameters:
      threadID - the Message Thread database ID
      Returns:
      a UserDataMap
      Throws:
      DAOException - if a JDBC error occurs
    • getByEvent

      public UserDataMap getByEvent(int eventID) throws DAOException
      Returns cross-application data for a particular Online Event.
      Parameters:
      eventID - the Online Event database ID
      Returns:
      a UserDataMap
      Throws:
      DAOException - if a JDBC error occurs
    • get

      public UserDataMap get(Collection<Integer> ids) throws DAOException
      Returns cross-application data for a Set of User IDs.
      Parameters:
      ids - a Collection of Integers with user IDs
      Returns:
      a UserDataMap
      Throws:
      DAOException - if a JDBC error occurs