|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mckoi.database.interpret.Statement
com.mckoi.database.interpret.DropTable
public class DropTable
The logic of the 'DROP TABLE' SQL command.
Field Summary |
---|
Fields inherited from class com.mckoi.database.interpret.Statement |
---|
cmd, database, query, table_list, user |
Constructor Summary | |
---|---|
DropTable()
|
Method Summary | |
---|---|
Table |
evaluate()
Evaluates the statement and returns a table that represents the result set. |
void |
prepare()
Prepares the statement with the given Database object. |
Methods inherited from class com.mckoi.database.interpret.Statement |
---|
addTable, Debug, init, resolveTree, resolveVariableName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DropTable()
Method Detail |
---|
public void prepare() throws DatabaseException
Statement
NOTE: Care must be taken to ensure that all methods called here are safe in as far as modifications to the data occuring. The rules for safety should be as follows. If the database is in EXCLUSIVE mode, then we need to wait until it's switched back to SHARED mode before this method is called. All collection of information done here should not involve any table state info. except for column count, column names, column types, etc. Queries such as obtaining the row count, selectable scheme information, and certainly 'getCellContents' must never be called during prepare. When prepare finishes, the affected tables are locked and the query is safe to 'evaluate' at which time table state is safe to inspect.
prepare
in class Statement
DatabaseException
public Table evaluate() throws DatabaseException
Statement
evaluate
in class Statement
DatabaseException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |