Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inference Control In Statistical Databases From Theory To Practice Lncs 2316

Authors: Josep Domingo-Ferrer

2002nd Edition

3540436146, 978-3540436140

Students also viewed these Databases questions