Is it possible to get complete query from prepare statement object.
PreparedStatement stmt = null;
try
{
stmt = connection.prepareStatement("insert into xyz(col1, col2)values(?, ?)");
CourseFeedbackSettings feedbackSettings = course.getFeedbackSettings();
stmt.setString (1, "vinay");
stmt.setString (2, "sharma");
}
now i want to get complete query form stmt like as follows: insert into xyz(col1, col2)values('vinay', 'sharma'); is it possible. If yes then how it is possible in J2EE.