Skip to content

one of the two projects in database management class

Notifications You must be signed in to change notification settings

coolandrew0825/CS4347_JDBC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS4347_JDBC

class name: database system programming languages: Java and SQL

The team used JDBC as the method to build connection between the java programs and MySQL database. The team created a schema with five tables, and the tables are address, creditcard, customer, product, and purchase. Each table in the database comes with 2 classes and 1 interface. For example, Address table has Address, AddressDaoImpl, and AddressDAO.

AddressDAO is an interface for AddressDaoImpl class. CreditCardDAO is an interface for CreditCardDaoImpl class. CustomerDAO is an interface for CustomerDaoImpl class. ProductDAO is an interface for ProductDaoImpl class. PurchaseDAO is an interface for PurchaseDaoImpl class.

AddressDaoImpl has create, delete, and retrieve functions. CreditCardDaoImpl has create, delete, and retrieve functions. CustomerDaoImpl has create, delete, and retrieve functions. ProductDaoImpl has create, delete, and retrieve functions. PurchaseDaoImpl has create, delete, and retrieve functions.

Address contains getter and setter functions for the private variables. CreditCard contains getter and setter functions for the private variables. Customer contains getter and setter functions for the private variables. Product contains getter and setter functions for the private variables. Purchase contains getter and setter functions for the private variables.

CustomerPersistenceService is an interface for CustomerPersistenceServiceImpl class. ProductPersistenceService is an interface for ProductPersistenceServiceImpl class. PurchasePersistenceService is an interface for PurchasePersistenceServiceImpl class. PurchaseSummary returns a summary of purchase

CustomerPersistenceServiceImpl has create, retrieve, update, delete, retrieveByZipCode, and retrieveByDOB functions. ProductPersistenceServiceImpl has create, retrieve, update, delete, retrieveByUPC, and retrieveByCategory functions. PurchasePersistenceServiceImpl has create, retrieve, update, delete functions.

DAOException class handles exception.

CustomerPersistenceServiceTest used dummy data to test each functions in CustomerPersistenceServiceImpl class.

About

one of the two projects in database management class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages