Class SetPartner

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

public class SetPartner extends DAO
A Data Access Object to write virtual airline Partner information to the database.
Since:
10.3
Version:
10.6
Author:
Luke
  • Constructor Details

    • SetPartner

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

    • write

      public void write(PartnerInfo pi) throws DAOException
      Updates a Partner record in the database.
      Parameters:
      pi - the PartnerInfo bean
      Throws:
      DAOException - if a JDBC error occurs
    • refer

      public void refer(int id) throws DAOException
      Increments the refer count for a particular Partner.
      Parameters:
      id - the Partner database ID
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(int id) throws DAOException
      Deletes a Partner from the database.
      Parameters:
      id - the Partner database ID
      Throws:
      DAOException - if a JDBC error occurs