/** Package sqlObjects @author: Ismael H F Santos @version: 1.0 @see */ package sqlObjects; import java.sql.*; import java.util.*; public class Update { boolean status = false; public Update (Connection c, String sql) { try { Statement sqlStatement = c.createStatement(); sqlStatement.executeUpdate(sql); // set status to true this.status = true; } catch (SQLException e) { // Set status to false this.status = false; } } public boolean getSuccess () { // return status of executed statement return this.status; } }