class DynamicRestriction extends Object implements Restriction
tableAlias.column = value
or
queryRootAlias.column = value
Modifier and Type | Field and Description |
---|---|
private VirtualColumn |
column |
private VirtualTable |
table |
private int |
value |
Constructor and Description |
---|
DynamicRestriction(VirtualColumn column,
int value)
Create a new restriction for column in the root entity of the query:
queryRootAlias.column = value . |
DynamicRestriction(VirtualTable table,
VirtualColumn column,
int value)
Create a new restriction for column in a joined table:
tableAlias.column = value . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
This restriction is equal to another DynamicRestriction if their
table, column and values are equal.
|
Collection<? extends QueryElement> |
getChildren()
Get the children of this query element or null if it has no children.
|
int |
hashCode() |
String |
toQl(Query query,
DbControl dc)
Create a query language string of the query element.
|
String |
toString() |
private final VirtualTable table
private final VirtualColumn column
private final int value
DynamicRestriction(VirtualColumn column, int value)
queryRootAlias.column = value
.column
- The column to use in the restrictionvalue
- The value to look forDynamicRestriction(VirtualTable table, VirtualColumn column, int value)
tableAlias.column = value
. It is assumed that
the table specified has been joined in the query.table
- The table the column is located incolumn
- The column to use in the restrictionvalue
- The value to look forDynamicJoin
public String toQl(Query query, DbControl dc) throws BaseException
QueryElement
Query.getQueryType()
method to find out which query language is wanted
in case the element requires different syntax for different languages.toQl
in interface QueryElement
query
- The query that is about to be executeddc
- The DbControl
object used to execute the queryBaseException
- If there is any other errorpublic Collection<? extends QueryElement> getChildren()
QueryElement
AddExpression
has two children, the expression
beeing added.getChildren
in interface QueryElement
public boolean equals(Object other)