public class ReporterPropertyExpression extends Object implements Expression
Throws an UnsupportedOperationException
if
Query.getQueryType()
isn't QueryType.SQL
.
Dynamic.reporter(String)
Modifier and Type | Field and Description |
---|---|
private String |
column |
private String |
property |
private static Map<String,String> |
propertyToColumn |
private Boolean |
useCloned |
Constructor and Description |
---|
ReporterPropertyExpression(String property)
Create a new reporter property expression.
|
ReporterPropertyExpression(String property,
Boolean useCloned)
Create a new reporter property expression.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
This expression is equal to another ReporterPropertyExpression if they
represent the same reporter property.
|
Collection<? extends QueryElement> |
getChildren()
Get the children of this query element or null if it has no children.
|
private static String |
getColumn(String property) |
int |
hashCode() |
String |
toQl(Query query,
DbControl dc)
Create a query language string of the query element.
|
String |
toString() |
boolean |
useCloned(ClonableReporterQuery query)
Check if this reporter property should use the cloned
reporter for the given query or not.
|
private final String property
private final String column
private final Boolean useCloned
public ReporterPropertyExpression(String property) throws InvalidDataException
property
- The name of the propertyInvalidDataException
public ReporterPropertyExpression(String property, Boolean useCloned)
property
- The name of the propertyuseCloned
- TRUE to use cloned reporter information (if available),
FALSE to not use cloned information, null to automatically decidepublic 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)
public boolean useCloned(ClonableReporterQuery query)
DynamicQuery.useClonedReporters()
.query
- The query to check with