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 query(String query)

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!