SelectRequest
is an SQL request of the following syntax:
SELECT [ALL|DISTINCT] select-item[,select-item]* FROM table-specification[,table-specification]* [WHERE search-condition] [GROUP BY grouping-column[,grouping-column]] [HAVING search-condition] [ORDER BY sort-specification[,sort-specification]] [LIMIT ignored]
Note that table-specification in the FROM
clause can be a sub-select. Everything after the end of the WHERE
clause is ignored.
SelectRequest.java の 63 行で定義されています。
Public メソッド | |
SelectRequest (String sqlQuery, boolean escapeProcessing, int timeout, String lineSeparator, DatabaseSchema schema, int granularity, boolean isCaseSensitive) throws SQLException | |
SelectRequest (String sqlQuery, boolean escapeProcessing, int timeout, String lineSeparator) | |
void | parse (DatabaseSchema schema, int granularity, boolean isCaseSensitive) throws SQLException |
void | cloneParsing (AbstractRequest request) |
ArrayList | getSelect () |
ArrayList | getFrom () |
ArrayList | getAliasedFrom () |
ArrayList | getWhere () |
ArrayList | getOrderBy () |
Hashtable | getWhereValues () |
boolean | isReadRequest () |
boolean | isWriteRequest () |
boolean | isUnknownRequest () |
String | getPkValue () |
void | setPkValue (String pkValue) |
String | getCursorName () |
void | setCursorName (String cursorName) |
void | debug () |
Public 変数 | |
transient int | funcType = 0 |
Static Public 変数 | |
final int | NO_FUNCTION = 0 |
final int | MAX_FUNCTION = 1 |
final int | MIN_FUNCTION = 2 |
final int | AVERAGE_FUNCTION = 3 |
final int | COUNT_FUNCTION = 4 |
final int | SUM_FUNCTION = 5 |
Private メソッド | |
ArrayList | getFromTables (String fromClause, DatabaseSchema schema, boolean isCaseSensitive) throws SQLException |
ArrayList | getSelectedColumns (String selectClause, ArrayList aliasedFrom, boolean isCaseSensitive) |
boolean | isSqlFunction (String str) |
ArrayList | getWhereColumns (String whereClause, ArrayList aliasedFrom, boolean setUniqueCacheable, boolean isCaseSensitive) |
Private 変数 | |
transient ArrayList | select |
transient ArrayList | from |
transient ArrayList | aliasFrom |
transient ArrayList | where |
transient ArrayList | order |
transient String | pkValue |
transient Hashtable | whereValues |
String | cursorName = null |
|
Creates a new
The SQL request is parsed and selected tables and columns are retrieved using the given If the syntax is incorrect an exception is thrown.
参照先 org.objectweb.cjdbc.common.sql.SelectRequest.parse(). 参照元 org.objectweb.cjdbc.common.sql.SelectRequest.getFromTables().
|
|
Creates a new The request is not parsed but it can be done later by a call to parse(DatabaseSchema, int, boolean).
参照先 org.objectweb.cjdbc.common.sql.SelectRequest.pkValue.
|
|
|
Displays some debugging information about this request. org.objectweb.cjdbc.common.sql.AbstractRequestを再定義しています。 SelectRequest.java の 1069 行で定義されています。 参照先 org.objectweb.cjdbc.common.sql.SelectRequest.from, org.objectweb.cjdbc.common.sql.SelectRequest.pkValue, org.objectweb.cjdbc.common.sql.SelectRequest.select, と org.objectweb.cjdbc.common.sql.SelectRequest.where.
|
|
Returns an
参照先 org.objectweb.cjdbc.common.sql.SelectRequest.aliasFrom.
|
|
Returns the cursorName value.
参照先 org.objectweb.cjdbc.common.sql.SelectRequest.cursorName. 参照元 org.objectweb.cjdbc.controller.virtualdatabase.ControllerResultSet.ControllerResultSet().
|
|
Returns an
参照先 org.objectweb.cjdbc.common.sql.SelectRequest.from. 参照元 org.objectweb.cjdbc.common.sql.SelectRequest.cloneParsing(), org.objectweb.cjdbc.common.sql.SelectRequest.getFromTables(), org.objectweb.cjdbc.common.sql.CreateRequest.parse(), org.objectweb.cjdbc.controller.cache.result.ResultCacheTable.processAddToCache(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.processAddToCache(), と org.objectweb.cjdbc.controller.cache.result.ResultCacheColumn.processAddToCache().
|
|
Extracts the tables from the given
参照先 org.objectweb.cjdbc.common.sql.SelectRequest.getFrom(), org.objectweb.cjdbc.common.sql.AbstractRequest.getLineSeparator(), org.objectweb.cjdbc.common.sql.schema.DatabaseTable.getName(), org.objectweb.cjdbc.common.sql.SelectRequest.parse(), と org.objectweb.cjdbc.common.sql.SelectRequest.SelectRequest(). 参照元 org.objectweb.cjdbc.common.sql.SelectRequest.parse().
|
|
Returns an
参照先 org.objectweb.cjdbc.common.sql.SelectRequest.order.
|
|
参照先 org.objectweb.cjdbc.common.sql.SelectRequest.pkValue. 参照元 org.objectweb.cjdbc.common.sql.SelectRequest.cloneParsing(), と org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.processAddToCache().
|
|
Returns an
参照先 org.objectweb.cjdbc.common.sql.SelectRequest.select. 参照元 org.objectweb.cjdbc.common.sql.SelectRequest.cloneParsing(), org.objectweb.cjdbc.common.sql.CreateRequest.parse(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.processAddToCache(), と org.objectweb.cjdbc.controller.cache.result.ResultCacheColumn.processAddToCache().
|
|
Gets all the columns selected in the given
The selected columns or tables must be found in the given
参照先 org.objectweb.cjdbc.common.sql.schema.AliasedDatabaseTable.getAlias(), org.objectweb.cjdbc.common.sql.schema.DatabaseTable.getColumn(), org.objectweb.cjdbc.common.sql.schema.DatabaseTable.getColumns(), org.objectweb.cjdbc.common.sql.schema.DatabaseColumn.getName(), org.objectweb.cjdbc.common.sql.schema.DatabaseTable.getName(), org.objectweb.cjdbc.common.sql.schema.AliasedDatabaseTable.getTable(), と org.objectweb.cjdbc.common.sql.SelectRequest.isSqlFunction(). 参照元 org.objectweb.cjdbc.common.sql.SelectRequest.parse().
|
|
Returns an
参照先 org.objectweb.cjdbc.common.sql.SelectRequest.where. 参照元 org.objectweb.cjdbc.common.sql.SelectRequest.cloneParsing(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.processAddToCache(), と org.objectweb.cjdbc.controller.cache.result.ResultCacheColumn.processAddToCache().
|
|
Gets all the columns involved in the given
The selected columns or tables must be found in the given
参照先 org.objectweb.cjdbc.common.sql.schema.DatabaseTable.getColumns(), org.objectweb.cjdbc.common.sql.schema.DatabaseTable.getName(), org.objectweb.cjdbc.common.sql.schema.DatabaseColumn.getName(), org.objectweb.cjdbc.common.sql.schema.DatabaseColumn.isUnique, と org.objectweb.cjdbc.common.sql.SelectRequest.pkValue. 参照元 org.objectweb.cjdbc.common.sql.SelectRequest.parse().
|
|
Returns an
参照先 org.objectweb.cjdbc.common.sql.SelectRequest.whereValues.
|
|
org.objectweb.cjdbc.common.sql.AbstractRequestを実装しています. SelectRequest.java の 1007 行で定義されています。
|
|
Checks if the string parameter represents an SQL function, e. g., MAX, COUNT, SUM, etc.
参照先 org.objectweb.cjdbc.common.sql.SelectRequest.funcType. 参照元 org.objectweb.cjdbc.common.sql.SelectRequest.getSelectedColumns().
|
|
org.objectweb.cjdbc.common.sql.AbstractRequestを実装しています. SelectRequest.java の 1025 行で定義されています。
|
|
org.objectweb.cjdbc.common.sql.AbstractRequestを実装しています. SelectRequest.java の 1016 行で定義されています。
|
|
The result of the parsing is accessible through the getSelect(), getFrom()and getWhere()functions.
org.objectweb.cjdbc.common.sql.AbstractRequestを実装しています. SelectRequest.java の 173 行で定義されています。 参照先 org.objectweb.cjdbc.common.sql.SelectRequest.aliasFrom, org.objectweb.cjdbc.common.sql.SelectRequest.from, org.objectweb.cjdbc.common.sql.SelectRequest.getFromTables(), org.objectweb.cjdbc.common.sql.SelectRequest.getSelectedColumns(), org.objectweb.cjdbc.common.sql.SelectRequest.getWhereColumns(), org.objectweb.cjdbc.common.sql.SelectRequest.select, と org.objectweb.cjdbc.common.sql.SelectRequest.where. 参照元 org.objectweb.cjdbc.common.sql.SelectRequest.getFromTables(), org.objectweb.cjdbc.common.sql.CreateRequest.parse(), と org.objectweb.cjdbc.common.sql.SelectRequest.SelectRequest().
|
|
Sets the cursorName value.
参照元 org.objectweb.cjdbc.driver.Statement.executeQuery(), と org.objectweb.cjdbc.controller.virtualdatabase.VirtualDatabaseWorkerThread.readRequestFromStream().
|
|
|
|
参照元 org.objectweb.cjdbc.common.sql.SelectRequest.getAliasedFrom(), と org.objectweb.cjdbc.common.sql.SelectRequest.parse(). |
|
Represents a SQL average() macro SelectRequest.java の 87 行で定義されています。 |
|
Represents a SQL count() macro SelectRequest.java の 89 行で定義されています。 |
|
SelectRequest.java の 110 行で定義されています。 参照元 org.objectweb.cjdbc.common.sql.SelectRequest.getCursorName(). |
|
|
Need to keep track of type of query, e.g. MAX, COUNT, etc. SelectRequest.java の 94 行で定義されています。 参照元 org.objectweb.cjdbc.common.sql.SelectRequest.isSqlFunction(). |
|
Represents a SQL max() macro SelectRequest.java の 83 行で定義されています。 |
|
Represents a SQL min() macro SelectRequest.java の 85 行で定義されています。 |
|
Some values to keep track of function in the SELECT request SelectRequest.java の 81 行で定義されています。 |
|
参照元 org.objectweb.cjdbc.common.sql.SelectRequest.getOrderBy(). |
|
Primary key value in case of a unique selection SelectRequest.java の 97 行で定義されています。 参照元 org.objectweb.cjdbc.common.sql.SelectRequest.cloneParsing(), org.objectweb.cjdbc.common.sql.SelectRequest.debug(), org.objectweb.cjdbc.common.sql.SelectRequest.getPkValue(), org.objectweb.cjdbc.common.sql.SelectRequest.getWhereColumns(), と org.objectweb.cjdbc.common.sql.SelectRequest.SelectRequest(). |
|
参照元 org.objectweb.cjdbc.common.sql.SelectRequest.cloneParsing(), org.objectweb.cjdbc.common.sql.SelectRequest.debug(), org.objectweb.cjdbc.common.sql.SelectRequest.getSelect(), と org.objectweb.cjdbc.common.sql.SelectRequest.parse(). |
|
Represents a SQL sum() macro SelectRequest.java の 91 行で定義されています。 |
|
参照元 org.objectweb.cjdbc.common.sql.SelectRequest.cloneParsing(), org.objectweb.cjdbc.common.sql.SelectRequest.debug(), org.objectweb.cjdbc.common.sql.SelectRequest.getWhere(), と org.objectweb.cjdbc.common.sql.SelectRequest.parse(). |
|
Used with the SelectRequest.java の 108 行で定義されています。 参照元 org.objectweb.cjdbc.common.sql.SelectRequest.getWhereValues(). |