|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.core.ReporterPropertyExpression
public class ReporterPropertyExpression
An expression representing the property of a reporter.
Throws an UnsupportedOperationException
if
Query.getQueryType()
isn't QueryType.SQL
.
Dynamic.reporter(String)
Field Summary | |
---|---|
private String |
column
|
private String |
property
|
private static Map<String,String> |
propertyToColumn
|
private Boolean |
useCloned
|
Constructor Summary | |
---|---|
ReporterPropertyExpression(String property)
Create a new reporter property expression. |
|
ReporterPropertyExpression(String property,
Boolean useCloned)
Create a new reporter property expression. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static volatile Map<String,String> propertyToColumn
private final String property
private final String column
private final Boolean useCloned
Constructor Detail |
---|
public ReporterPropertyExpression(String property) throws InvalidDataException
property
- The name of the property
InvalidDataException
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 decideMethod Detail |
---|
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 query
BaseException
- If there is any other errorpublic Collection<? extends QueryElement> getChildren()
QueryElement
AddExpression
has two children, the expression
beeing added.
getChildren
in interface QueryElement
public String toString()
toString
in class Object
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean useCloned(ClonableReporterQuery query)
DynamicQuery.useClonedReporters()
.
query
- The query to check with
private static String getColumn(String property)
|
3.2.4: 2013-12-06 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |