1 11 12 package com.nilostep.xlsql.sql; 13 14 import com.nilostep.xlsql.database.xlDatabase; 15 import com.nilostep.xlsql.database.*; 16 17 import java.sql.*; 18 19 24 public class xlSqlDelete implements xlSqlCommand { 25 27 protected com.nilostep.xlsql.database.xlDatabase db; 28 protected String _schema; 29 protected String _table; 30 31 39 public xlSqlDelete(com.nilostep.xlsql.database.xlDatabase database, String schema, String table) { 40 if (database == null) { 41 throw new NullPointerException ("xlSQL: database null"); 42 } else { 43 db = database; 44 } 45 46 if (schema == null) { 47 throw new NullPointerException ("xlSQL: schema null"); 48 } else { 49 _schema = schema; 50 } 51 52 if (table == null) { 53 throw new NullPointerException ("xlSQL: table null"); 54 } else { 55 _table = table; 56 } 57 } 58 59 66 public boolean execAllowed() throws SQLException { 67 boolean ret = true; 68 return ret; 69 } 70 71 76 public void execute() throws SQLException { 77 db.touchSchema(_schema); 78 db.touchTable(_schema, _table); 79 } 80 } | Popular Tags |