public class GenericQueryBuilder extends Object implements QueryBuilder
| Modifier and Type | Field and Description |
|---|---|
protected Appender |
columnPart |
protected Appender |
fromPart |
protected Appender |
groupPart |
protected StringBuilder |
havingPart |
protected StringBuilder |
joinPart |
protected Appender |
orderPart |
protected Query |
query |
protected StringBuilder |
unionPart |
protected Appender |
wherePart |
| Constructor and Description |
|---|
GenericQueryBuilder(Query query) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendJoins() |
void |
column() |
protected PathElement[] |
deepestCommonPath(List<PathElement[]> cachedAssociation,
List<PathElement> associations)
das listas de grupos de Foreign Keys (caminhos), obtem as Foreign Keys
correspondentes ao caminho comum mais longo que se consegue percorrer com
o grupo de Foreign Keys passado
|
protected Driver |
driver() |
void |
from() |
void |
fromSubQuery() |
String |
getColumnPart() |
String |
getFromPart() |
String |
getGroupPart() |
String |
getHavingPart() |
String |
getJoinPart() |
String |
getOrderPart() |
String |
getUnionPart() |
String |
getWherePart() |
void |
group() |
void |
having() |
void |
joinAssociation(Association fk,
boolean inner) |
void |
joinCriteria(Condition criteria) |
void |
order() |
protected List<PathElement> |
reduceAssociations(List<PathElement[]> cachedAssociation,
Join join) |
void |
union() |
void |
where() |
protected Query query
protected Appender columnPart
protected Appender fromPart
protected StringBuilder joinPart
protected Appender wherePart
protected Appender groupPart
protected StringBuilder havingPart
protected Appender orderPart
protected StringBuilder unionPart
public GenericQueryBuilder(Query query)
protected Driver driver()
public String getColumnPart()
getColumnPart in interface QueryBuilderpublic String getFromPart()
getFromPart in interface QueryBuilderpublic String getJoinPart()
getJoinPart in interface QueryBuilderpublic String getWherePart()
getWherePart in interface QueryBuilderpublic String getGroupPart()
getGroupPart in interface QueryBuilderpublic String getHavingPart()
getHavingPart in interface QueryBuilderpublic String getOrderPart()
getOrderPart in interface QueryBuilderpublic String getUnionPart()
getUnionPart in interface QueryBuilderpublic void column()
public void from()
public void fromSubQuery()
public void joinAssociation(Association fk, boolean inner)
public void joinCriteria(Condition criteria)
public void where()
public void group()
public void having()
public void order()
public void union()
protected PathElement[] deepestCommonPath(List<PathElement[]> cachedAssociation, List<PathElement> associations)
cachedAssociation - listas de grupos de Foreign Keys (caminhos)associations - grupo de Foreign Keys para compararprotected List<PathElement> reduceAssociations(List<PathElement[]> cachedAssociation, Join join)
protected void appendJoins()
Copyright © 2019. All rights reserved.