1 package smile.stored; 2 3 import java.util.*; 4 import java.sql.*; 5 6 16 public class s_deleteGroup extends StoredProcedure implements ProcedureInterface { 17 18 String in_groupID; 20 21 public s_deleteGroup() { 22 } 23 24 public void init(HashMap initData, Connection con) { 25 super.init(initData, con); 27 in_groupID = utils.getString(data, "GROUPID", ""); 29 } 30 31 public void checkAction() throws SQLException { 32 } 33 34 public void checkParams() throws SQLException { 35 } 36 37 public void executeAction() throws SQLException { 38 StringBuffer v_sb = new StringBuffer (); 39 v_sb.append("DELETE FROM tblpermgroups ").append(" WHERE groupID = " + in_groupID); 40 41 execStatement(v_sb.toString()); 42 43 execStatementToRS(queryResultOk); 44 } 45 } | Popular Tags |