|
3.1.1: 2012-03-29 | ||||||||
| 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 decide| Method Detail |
|---|
public String toQl(Query query,
DbControl dc)
throws BaseException
QueryElementQuery.getQueryType() method to find out which query language is wanted
in case the element requires different syntax for different languages.
toQl in interface QueryElementquery - 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()
QueryElementAddExpression has two children, the expression
beeing added.
getChildren in interface QueryElementpublic String toString()
toString in class Objectpublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean useCloned(ClonableReporterQuery query)
DynamicQuery.useClonedReporters().
query - The query to check with
private static String getColumn(String property)
|
3.1.1: 2012-03-29 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||