Class SetFilterData

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

public class SetFilterData extends DAO
A Data Access Object to write Content Filtering lists.
Since:
11.0
Version:
11.1
Author:
Luke
  • Constructor Details

    • SetFilterData

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

    • add

      public void add(String kw, boolean isSafe) throws DAOException
      Adds a Content Filtering keyword to the database.
      Parameters:
      kw - the keyword
      isSafe - TRUE if safe, otherwise FALSE
      Throws:
      DAOException - if a JDBC error occurs
    • delete

      public void delete(String kw, boolean isSafe) throws DAOException
      Deletes a Content Filtering keyword from the database.
      Parameters:
      kw - the keyword
      isSafe - TRUE if safe, otherwise FALSE
      Throws:
      DAOException - if a JDBC error occurs