Question: I NEED JUST THE IMPLEMENTATION FOR THIS TWO PUBLIC CLASSES. Thank you public ArrayList query(String query ) Input parameter query contains an SQL query (i.e.,
I NEED JUST THE IMPLEMENTATION FOR THIS TWO PUBLIC CLASSES. Thank you
public ArrayList
Input parameter query contains an SQL query (i.e., selectstatement). The method creates a JDBC Statement object that executes the query. The ResultSet that is created by the JDBC Statement object is stored in an ArrayList of Strings and is returned by this method.
The method returns null if an exception occurs within this method, or if the ResultSet is empty.
public boolean executeDML(String dml)
Input parameter dml contains a SQL Data Modification Language statement (i.e., insert, update, or delete). The method creates a JDBC Statement object that executes the DML statement.
The method return true if the DML statement executes successfully, or false if it does not
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
