Package Database

Class DAO

java.lang.Object
Database.DAO

public class DAO extends Object
A class container functions for making SQL Database Queries
  • Constructor Details

    • DAO

      public DAO()
  • Method Details

    • query

      public static ResultSet query(String sql)
      Function to make SQL database queries
      Parameters:
      sql - the string value sql string query
      Returns:
      [result] ResultSet value representing the result of the query
    • update

      public static void update(String sql)
      Function to make SQL database updates
      Parameters:
      sql - the string value sql string query