1 29 30 package com.caucho.db.sql; 31 32 import com.caucho.db.Database; 33 import com.caucho.db.store.Transaction; 34 import com.caucho.log.Log; 35 import com.caucho.util.L10N; 36 37 import java.sql.SQLException ; 38 import java.util.logging.Logger ; 39 40 class DropQuery extends Query { 41 private static final L10N L = new L10N(DropQuery.class); 42 43 private static final Logger log = Log.open(DropQuery.class); 44 45 private Database _database; 46 private String _tableName; 47 48 DropQuery(String sql, Database database, String tableName) 49 throws SQLException 50 { 51 super(database, sql, null); 52 53 _database = database; 54 _tableName = tableName; 55 } 56 57 60 public void execute(QueryContext queryContext, Transaction xa) 61 throws SQLException 62 { 63 _database.dropTable(_tableName); 64 } 65 66 public String toString() 67 { 68 return "InsertQuery[]"; 69 } 70 } 71 | Popular Tags |