java.lang.Object
com.aoindustries.aoserv.client.sql.SqlSelect
Represents a parsed SELECT statement.
- Author:
- AO Industries, Inc.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSqlSelect(List<SqlExpression> expressions, Table fromTable, List<SqlOrderByExpression> orderBy) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(AoservConnector connector, Appendable out, boolean isInteractive) Executes the query for display output.SqlExpression.isAggregate()on every expression will matchisAggregate().booleantoString()
-
Field Details
-
SELECT
The case-insensitive SELECT keyword.- See Also:
-
FROM
The case-insensitive FROM keyword.- See Also:
-
ORDER
The case-insensitive ORDER keyword.- See Also:
-
BY
The case-insensitive BY keyword.- See Also:
-
-
Constructor Details
-
SqlSelect
public SqlSelect(List<SqlExpression> expressions, Table fromTable, List<SqlOrderByExpression> orderBy) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
-
Method Details
-
toString
-
isAggregate
public boolean isAggregate() -
getExpressions
SqlExpression.isAggregate()on every expression will matchisAggregate(). Mixed aggregate and non-aggregate not currently supported. -
getFromTable
-
getOrderBy
-
execute
public void execute(AoservConnector connector, Appendable out, boolean isInteractive) throws IOException, SQLException Executes the query for display output. TODO: This does not yet implement WHERE, so does not yet have any query planner phase. TODO: This implementation writes to the given out, and has not yet been split into separate execute and display phases.- Throws:
IOExceptionSQLException
-
