Class SetCoolerChannel

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

public class SetCoolerChannel extends DAO
A Data Access Object to write Water Cooler Channel Profiles.
Since:
1.0
Version:
9.0
Author:
Luke
  • Constructor Details

    • SetCoolerChannel

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

    • create

      public void create(Channel c) throws DAOException
      Writes a new Channel Profile to the database.
      Parameters:
      c - the Channel Profile bean
      Throws:
      DAOException - if a JDBC error occurs
    • update

      public void update(Channel c, String newName) throws DAOException
      Updates an existing Channel Profile within the database.
      Parameters:
      c - the Channel Profile bean
      newName - the new Channel name if renaming, otherwise the old name
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(Channel c) throws DAOException
      Deletes a Water Cooler channel profile.
      Parameters:
      c - the Channel bean
      Throws:
      DAOException - if a JDBC error occurs