Class ManageDepartments

java.lang.Object
edu.pdx.cs.joy.jdbc.ManageDepartments

public class ManageDepartments extends Object
A command-line program that demonstrates CRUD operations on Department objects using the DepartmentDAO class with an H2 database.
  • Constructor Details

  • Method Details

    • main

      public static void main(String[] args) throws SQLException
      Main method that performs CRUD operations on departments in an H2 database file.
      Parameters:
      args - command line arguments where args[0] is the path to the database file and args[1] is the command (create, retrieve, update, delete, or list)
      Throws:
      SQLException - if a database error occurs