|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.core.query.ReporterListExpression
public class ReporterListExpression
Represents a property of a reporter list in a dynamic query:
alias.property
.
Field Summary | |
---|---|
private JoinType |
autoJoinType
|
private boolean |
hqlMode
|
private String |
joinAlias
|
private String |
joinProperty
|
private String |
property
|
private ReporterList |
reporterList
|
private String |
tableAlias
|
private String |
tableColumn
|
Constructor Summary | |
---|---|
ReporterListExpression(ReporterList reporterList,
String tableColumn,
JoinType autoJoinType)
Create a new expression for the specified reporter list. |
|
ReporterListExpression(ReporterList reporterList,
String joinAlias,
String joinProperty,
String property,
JoinType autoJoinType)
|
Method Summary | |
---|---|
boolean |
equals(Object other)
This expression is equal to another ReporterListExpression if they use the same property from the same reporter list and uses the same auto join type. |
JoinType |
getAutoJoinType()
Get the join type for automatic joins. |
Collection<? extends QueryElement> |
getChildren()
Get the children of this query element or null if it has no children. |
String |
getJoinAlias()
|
String |
getJoinProperty()
|
ReporterList |
getReporterList()
Get the reporter list. |
int |
hashCode()
|
String |
toQl(Query query,
DbControl dc)
Create a query language string of the query element. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private final boolean hqlMode
private final ReporterList reporterList
private final String tableAlias
private String tableColumn
private String joinAlias
private String joinProperty
private String property
private final JoinType autoJoinType
Constructor Detail |
---|
ReporterListExpression(ReporterList reporterList, String tableColumn, JoinType autoJoinType)
reporterList
- The reporter listtableColumn
- The name of the column we should selectautoJoinType
- If an automatic join is done use this type, the join
type depends on if we are checking if a reporter is part of or not part
of a reporter listDynamic.isPartOf(ReporterList)
,
Dynamic.isNotPartOf(ReporterList)
,
Dynamic.score(ReporterList)
ReporterListExpression(ReporterList reporterList, String joinAlias, String joinProperty, String property, JoinType autoJoinType)
Method 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 ReporterList getReporterList()
public String getJoinAlias()
public String getJoinProperty()
public JoinType getAutoJoinType()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |