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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started