Package | Description |
---|---|
net.java.ao | |
net.java.ao.db |
Modifier and Type | Method and Description |
---|---|
Query |
Query.alias(Class<? extends RawEntity<?>> table,
String alias) |
Query |
Query.distinct() |
Query |
Query.from(Class<? extends RawEntity<?>> tableType) |
Query |
Query.from(String table) |
Query |
Query.group(String clause) |
Query |
Query.having(String clause) |
Query |
Query.join(Class<? extends RawEntity<?>> join) |
Query |
Query.join(Class<? extends RawEntity<?>> join,
String on) |
Query |
Query.limit(int limit) |
Query |
Query.offset(int offset) |
Query |
Query.order(String clause) |
static Query |
Query.select()
Create a
Query which will select the primary key field of the entity. |
static Query |
Query.select(String fields)
Create a
Query and set the field list in the SELECT clause. |
Query |
Query.where(String clause,
Object... params) |
Modifier and Type | Method and Description |
---|---|
<K> int |
EntityManager.count(Class<? extends RawEntity<K>> type,
Query query)
Counts all entities of the specified type matching the given
Query instance. |
<T extends RawEntity<K>,K> |
EntityManager.find(Class<T> type,
Query query)
Selects all entities matching the given type and
Query . |
<T extends RawEntity<K>,K> |
EntityManager.find(Class<T> type,
String field,
Query query)
Selects all entities of the specified type which match the given
Query . |
protected String |
DatabaseProvider.querySelectFields(Query query,
TableNameConverter converter) |
protected String |
DatabaseProvider.queryTableName(Query query,
TableNameConverter converter) |
String |
DatabaseProvider.renderQuery(Query query,
TableNameConverter converter,
boolean count)
Top level delegating method for rendering a database-agnostic
Query object into its (potentially) database-specific
query statement. |
protected String |
DatabaseProvider.renderQueryGroupBy(Query query)
Renders the GROUP BY portion of the query in the database-specific SQL
dialect.
|
protected String |
DatabaseProvider.renderQueryHaving(Query query)
Renders the HAVING portion of the query in the database-specific SQL
dialect.
|
protected String |
DatabaseProvider.renderQueryJoins(Query query,
TableNameConverter converter)
Renders the JOIN portion of the query in the database-specific SQL
dialect.
|
protected String |
DatabaseProvider.renderQueryLimit(Query query)
Renders the LIMIT portion of the query in the database-specific SQL
dialect.
|
protected String |
DatabaseProvider.renderQueryOrderBy(Query query)
Renders the ORDER BY portion of the query in the database-specific SQL
dialect.
|
protected String |
DatabaseProvider.renderQuerySelect(Query query,
TableNameConverter converter,
boolean count)
Renders the SELECT portion of a given
Query instance in the
manner required by the database-specific SQL implementation. |
protected String |
DatabaseProvider.renderQueryWhere(Query query)
Renders the WHERE portion of the query in the database-specific SQL
dialect.
|
void |
DatabaseProvider.setQueryResultSetProperties(ResultSet res,
Query query)
Allows the provider to set database-specific options on a
ResultSet instance prior to its use by the library. |
void |
DatabaseProvider.setQueryStatementProperties(Statement stmt,
Query query)
Allows the provider to set database-specific options on a
Statement instance prior to its usage in a SELECT
query. |
<T extends RawEntity<K>,K> |
EntityManager.stream(Class<T> type,
Query query,
EntityStreamCallback<T,K> streamCallback)
Selects all entities of the given type and feeds them to the callback, one by one.
|
Modifier and Type | Method and Description |
---|---|
protected String |
SQLServerDatabaseProvider.renderQueryLimit(Query query) |
protected String |
OracleDatabaseProvider.renderQueryLimit(Query query) |
protected String |
MySQLDatabaseProvider.renderQueryLimit(Query query) |
protected String |
HSQLDatabaseProvider.renderQueryLimit(Query query) |
protected String |
H2DatabaseProvider.renderQueryLimit(Query query) |
protected String |
SQLServerDatabaseProvider.renderQuerySelect(Query query,
TableNameConverter converter,
boolean count) |
protected String |
OracleDatabaseProvider.renderQuerySelect(Query query,
TableNameConverter converter,
boolean count) |
protected String |
HSQLDatabaseProvider.renderQuerySelect(Query query,
TableNameConverter converter,
boolean count) |
void |
SQLServerDatabaseProvider.setQueryResultSetProperties(ResultSet res,
Query query) |
Copyright © 2007-2015. All Rights Reserved.