public class Select extends Statement
| Constructor and Description |
|---|
Select() |
| Modifier and Type | Method and Description |
|---|---|
Table |
evaluate()
Evaluates the select statement with the given Database context.
|
void |
prepare()
Prepares the select statement with a Database object.
|
String |
toString()
Outputs information for debugging.
|
addTable, Debug, init, resolveTree, resolveVariableNamepublic void prepare()
throws DatabaseException
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 ia safe to 'evaluate' at which time table state is safe to inspect.
prepare in class StatementDatabaseExceptionpublic Table evaluate() throws DatabaseException
evaluate in class StatementDatabaseExceptionCopyright © 2016. All rights reserved.