Class SetPilotPush


public class SetPilotPush extends PilotWriteDAO
A Data Access Object to write push notification subscription data to the database.
Since:
10.0
Version:
10.0
Author:
Luke
  • Constructor Details

    • SetPilotPush

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

    • write

      public void write(PushEndpoint ep) throws DAOException
      Writes a push notification endpoint to the database
      Parameters:
      ep - a PushEndpoint bean
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(int pilotID, String url) throws DAOException
      Deletes a push notification endpoint from the database.
      Parameters:
      pilotID - the Pilot's database ID
      url - the endpoint URL
      Throws:
      DAOException - if a JDBC error occurs