Write Java App Connects Coffeedb Database Allows User Select Customer Change Customer S Re Q37081859

Write a Java app that connects to the CoffeeDB databaseand allows:

  • the user to select a customer, then change that customer’srecords in the database.
  • build a method to delete a record
  • design the relational database to enforce referential integrityby preventing the end-user from deleting the primary key. Likewise,prevent attempts to change the customer number because it’sreferenced in multiple tables.

Enforce referential integrity by preventing the end-user fromdeleting the primary key.  

Code to create the CoffeeDB:

import java.sql.*; // Needed for JDBC classes/** * This program creates the CoffeeDB database. */public class CreateCoffeeDB{ public static void main(String[] args) {

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.