Just open up a connection to the fruit database using localhost
send it three data manipulatin statements using addBatch and then
executeBatch - executeBatch returns results rows modified
Uses the basic java.sql.Statements...
Just open up a connection to the fruit database using localhost
and send select query to list the contents of the fruit table
all students in class have their own database
they should not be using this one
Same version as FruitThreadServer but adds the client request XML,
XML is a toggle once set, it wraps all query data with XML tags representing
the column names.
The controller portion of the MVC
the controller listens for input and drives the model and viewer
Used to add data to inventory and also to monitor the current inventory.
Viewer portion of the Select MVC with FruitThreadServer
JApplet is the Viewer, has three buttons that are handled by InventoryController,
InventoryController creates sockets and I/O streams.
Just connect to the IP/Port and then send requests
Constructor creates socket and SQL statement,
thread run creates server I/O for socket, and then waits for Client request
Just open up a connection to the fruit database
Accept a query from the keyboard
output the response to standard output
Queries can be select, describe table or show tables;
The controller portion of the MVC
the controller listens for input and drives the model and viewer
constructor opens up a socket connection to FruitThreadServer
current system has three buttons that send three different queries to Server