| Modifier and Type | Class and Description |
|---|---|
protected static class |
DmlBase.PathCondition |
| Modifier and Type | Field and Description |
|---|---|
protected List<PathElement[]> |
cachedAssociation |
protected Condition |
condition |
protected AbstractDb |
db |
protected List<Condition> |
discriminatorConditions |
static String |
JOIN_PREFIX |
protected AliasBag |
joinBag |
protected List<Join> |
joins |
protected String |
lastFkAlias |
protected Join |
lastJoin |
protected Map<String,Object> |
parameters |
protected List<PathElement> |
path
list with the associations of the current path
|
protected static String |
PREFIX |
protected RawSql |
rawSql |
protected SimpleJdbc |
simpleJdbc |
protected Table |
table |
protected String |
tableAlias |
| Constructor and Description |
|---|
DmlBase(AbstractDb db,
Table table) |
| Modifier and Type | Method and Description |
|---|---|
protected List<PathElement> |
addJoin(List<PathElement> associations,
PathElement[] common,
boolean fetch) |
protected void |
applyInclude(List<PathElement> chain,
List<Function> tokens) |
protected void |
applyOn(List<PathElement> chain,
Condition condition)
condição a usar na associação imediatamente anterior
|
protected void |
applyWhere(Condition restriction) |
protected String |
callerName(StackTraceElement[] stack,
String fqcn) |
protected Connection |
connection() |
protected void |
debug(org.apache.log4j.Logger logger,
String fqcn,
String format,
Object... args) |
protected void |
debugSQL(org.apache.log4j.Logger logger,
String fqcn,
String sql) |
protected void |
debugTime(org.apache.log4j.Logger logger,
String fqcn,
long now) |
static 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() |
protected String |
dumpParameters(Map<String,Object> map) |
String |
getAliasForAssociation(Association association) |
Condition |
getCondition() |
AbstractDb |
getDb() |
List<Join> |
getJoins() |
Object |
getParameter(Column<?> column) |
Map<String,Object> |
getParameters() |
SimpleJdbc |
getSimpleJdbc() |
abstract RawSql |
getSql() |
Table |
getTable() |
String |
getTableAlias() |
protected void |
joinTo(List<PathElement> paths,
boolean fetch)
Indicates that the current association chain should be used to join only.
|
int |
nextRawIndex() |
protected void |
replaceRaw(Function token)
replaces RAW with PARAM
|
void |
setParameter(Column<?> col,
Object value)
Sets the value of parameter to the column.
Converts null values to NullSql type or Values interfaces to its value |
void |
setParameter(String name,
Object value) |
void |
setTableAlias(String alias) |
protected DmlBase |
where(Condition... restrictions) |
protected DmlBase |
where(Condition restriction) |
protected DmlBase |
where(List<Condition> restrictions) |
protected AbstractDb db
protected SimpleJdbc simpleJdbc
protected Table table
protected String tableAlias
protected Condition condition
public static final String JOIN_PREFIX
protected AliasBag joinBag
protected static final String PREFIX
protected String lastFkAlias
protected Join lastJoin
protected RawSql rawSql
protected List<PathElement> path
protected List<PathElement[]> cachedAssociation
public DmlBase(AbstractDb db, Table table)
public int nextRawIndex()
public AbstractDb getDb()
public Table getTable()
public String getTableAlias()
public void setTableAlias(String alias)
public Condition getCondition()
public void setParameter(Column<?> col, Object value)
col - The columnvalue - The value to set wrapped in a Parameterpublic static PathElement[] deepestCommonPath(List<PathElement[]> cachedAssociation, List<PathElement> associations)
cachedAssociation - listas de grupos de Foreign Keys (caminhos)associations - grupo de Foreign Keys para compararpublic String getAliasForAssociation(Association association)
protected void joinTo(List<PathElement> paths, boolean fetch)
paths - fetch - protected List<PathElement> addJoin(List<PathElement> associations, PathElement[] common, boolean fetch)
protected void applyOn(List<PathElement> chain, Condition condition)
chain - condition - protected void applyInclude(List<PathElement> chain, List<Function> tokens)
protected void applyWhere(Condition restriction)
protected Driver driver()
public SimpleJdbc getSimpleJdbc()
public abstract RawSql getSql()
protected Connection connection()
protected void debug(org.apache.log4j.Logger logger,
String fqcn,
String format,
Object... args)
protected void debugTime(org.apache.log4j.Logger logger,
String fqcn,
long now)
protected String callerName(StackTraceElement[] stack, String fqcn)
protected void replaceRaw(Function token)
token - Copyright © 2019. All rights reserved.