Package edu.pdx.cs.joy.jdbc
Class ManageDepartments
java.lang.Object
edu.pdx.cs.joy.jdbc.ManageDepartments
A command-line program that demonstrates CRUD operations on Department objects
using the DepartmentDAO class with an H2 database.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ManageDepartments
public ManageDepartments()
-
-
Method Details
-
main
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
-