All Packages Class Hierarchy This Package Previous Next Index
Class PREDATOR.Query
java.lang.Object
|
+----PREDATOR.Query
- public class Query
- extends Object
This class embodies a "query", which can also be a non-query
statement, such as an update statement or commands like TRANS begin
or list rels. All
PREDATOR queries are
phrased in a language, which identifies the database engine
responsible for processing the query. The relational engine has the
language "SQL", and the default engine has the language "XXX".
Query objects can only contain one logical query. For example:
Query Q = new Query("SELECT I.picture FROM Images I");
is acceptable, whereas
Query Q = new Query("TRANS begin; SELECT I.picture FROM Images I; TRANS commit;");
is not.
- See Also:
- processQuery
-
Query(String)
- This constructor is short-hand for queries phrased in SQL.
-
Query(String, String)
- Constructor.
-
toString()
- Produces a text-version of this query suitable for parsing by the
server.
Query
public Query(String LanguageName,
String QueryText) throws BadQueryException
- Constructor.
- Parameters:
- LanguageName - The name of the language the query is phrased in.
SQL queries should use the language "SQL".
- QueryText - The actual query.
- Throws: BadQueryException
- If the query is improperly formatted
Query
public Query(String QueryText) throws BadQueryException
- This constructor is short-hand for queries phrased in SQL.
- Parameters:
- QueryText - The actual query.
- Throws: BadQueryException
- If the query is improperly formatted
toString
public String toString()
- Produces a text-version of this query suitable for parsing by the
server.
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index