Class SetUserData

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

public class SetUserData extends DAO
A Data Access Object to write cross-applicaton User data.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetUserData

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

    • write

      public void write(UserData usr) throws DAOException
      Writes a new UserData entry to the database.
      Parameters:
      usr - the UserData object
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(int id) throws DAOException
      Removes a User Data entry from the database.
      Parameters:
      id - the user's database ID
      Throws:
      DAOException - if a JDBC error occurs
    • update

      public void update(AirlineInformation info) throws DAOException
      Updates Airline Information in the database. This cannot update the airline code or domain name.
      Parameters:
      info - the Airline Information bean
      Throws:
      DAOException - if a JDBC error occurs