| Package | Description |
|---|---|
| com.github.quintans.ezSQL | |
| com.github.quintans.ezSQL.dml | |
| com.github.quintans.ezSQL.driver | |
| com.github.quintans.ezSQL.transformers |
| Modifier and Type | Method and Description |
|---|---|
Query |
AbstractDb.query(Query query) |
Query |
AbstractDb.query(Table table)
selct over a table.
If no columns are added, when executing a select or list all columns of the driving table will be added. |
| Modifier and Type | Method and Description |
|---|---|
Query |
AbstractDb.query(Query query) |
| Modifier and Type | Method and Description |
|---|---|
Query |
Query.all() |
Query |
Query.as(String alias)
Defines the alias of the last column, or if none was defined, defines the table alias;
|
Query |
Query.asc()
Define a direção ASCENDENTE da ordem a aplicar na ultima ordem definida
|
Query |
Query.asc(boolean dir)
Define a direção da ordem a aplicar na ultima ordem definida
|
Query |
Query.asc(Column<?> column) |
Query |
Query.asc(Column<?> column,
String alias) |
Query |
Query.asc(String column) |
Query |
Query.ascBy(Column<?> column) |
Query |
Query.column(Object... cols) |
Query |
Query.count() |
Query |
Query.count(Object... expr) |
Query |
Query.desc()
Define a direção DESCENDENTE da ordem a aplicar na ultima ordem definida
|
Query |
Query.desc(Column<?> column) |
Query |
Query.desc(Column<?> column,
String alias) |
Query |
Query.desc(String column) |
Query |
Query.descBy(Column<?> column) |
Query |
Query.distinct() |
Query |
Query.exclude(Column<?>... columns)
includes all column from the table from the last association but the ones declared in this method.
|
Query |
Query.fetch()
This will trigger a result that can be dumped in a tree object
using current association path to build the tree result.
If no columns where included in this path, it will includes all the columns of all the tables referred by the association path. |
Query |
Union.getQuery() |
Query |
Query.getSubquery() |
Query |
Query.groupBy(Column<?>... cols) |
Query |
Query.groupBy(int... pos) |
Query |
Query.groupBy(String... aliases) |
Query |
Query.groupByUntil(int untilPos) |
Query |
Query.having(Condition... having)
Adds a Having clause to the query.
|
Query |
Query.include(Object... columns)
Includes any kind of column (table column or function)
referring to the table targeted by the last association.
|
Query |
Query.inner(Association... associations)
includes the associations as inner joins to the current path.
|
Query |
Query.innerFetch(Association... associations)
Executa um INNER join com as tabelas definidas pelas foreign keys.
TODAS as colunas das tabelas intermédias são incluidas no select bem como TODAS as colunas da tabela no fim das associações. |
Query |
Query.innerJoin(Association... associations)
The same as inner(...).join()
|
Query |
Query.join()
This will NOT trigger a result that can be dumped in a tree object.
Any included column, will be considered as belonging to the root object. |
Query |
Query.limit(int maxResults) |
Query |
Query.on(Condition... condition)
Restriction to apply to the previous association
|
Query |
Query.order(Column<?> column)
Order by a column belonging to the driving table
If you want to order by a column from the table targeted by the last association, use orderBy |
Query |
Query.order(Column<?> column,
Association... associations)
Order by column belonging to another table.
|
Query |
Query.order(Column<?> column,
String alias) |
Query |
Query.order(String column) |
Query |
Query.orderBy(Column<?> column)
Define a coluna a ordenar.
|
Query |
Query.outer(Association... associations)
includes the associations as outer joins to the current path
|
Query |
Query.outerFetch(Association... associations)
Executa um OUTER join com as tabelas definidas pelas foreign keys.
TODAS as colunas das tabelas intermédias são incluidas no select bem como a TODAS as colunas da tabela no fim das associações. |
Query |
Query.outerJoin(Association... associations)
The same as outer(...).join()
|
Query |
Query.skip(int firstResult) |
Query |
Query.union(Query query) |
Query |
Query.unionAll(Query query) |
Query |
Query.where(Condition... restrictions) |
Query |
Query.where(Condition restriction) |
Query |
Query.where(List<Condition> restrictions) |
| Modifier and Type | Method and Description |
|---|---|
void |
Query.copy(Query other) |
static Function |
Definition.subQuery(Query inner) |
Query |
Query.union(Query query) |
Query |
Query.unionAll(Query query) |
| Constructor and Description |
|---|
Query(Query subquery) |
Union(Query query,
boolean all) |
| Modifier and Type | Field and Description |
|---|---|
protected Query |
GenericQueryBuilder.query |
| Modifier and Type | Method and Description |
|---|---|
QueryBuilder |
GenericDriver.createQueryBuilder(Query query) |
String |
GenericDriver.getSql(Query query) |
String |
Driver.getSql(Query query) |
String |
PostgreSQLDriver.paginate(Query query,
String sql) |
String |
MySQLDriver.paginate(Query query,
String sql) |
abstract String |
GenericDriver.paginate(Query query,
String sql) |
String |
DB2Driver.paginate(Query query,
String sql) |
String |
OracleDriver.paginate(Query query,
String sql) |
String |
H2Driver.paginate(Query query,
String sql) |
String |
HSQLDBDriver.paginate(Query query,
String sql) |
int |
GenericDriver.paginationColumnOffset(Query query) |
int |
OracleDriver.paginationColumnOffset(Query query) |
int |
Driver.paginationColumnOffset(Query query) |
| Constructor and Description |
|---|
GenericQueryBuilder(Query query) |
| Modifier and Type | Method and Description |
|---|---|
Query |
MapTransformer.getQuery() |
Query |
IQueryRowTransformer.getQuery() |
| Modifier and Type | Method and Description |
|---|---|
void |
MapTransformer.setQuery(Query query) |
void |
IQueryRowTransformer.setQuery(Query query) |
| Constructor and Description |
|---|
MapTransformer(Query query,
boolean reuse,
QueryMapper mapper) |
Copyright © 2019. All rights reserved.