org.plasma.query.dsl
Class DomainRoot

java.lang.Object
  extended by org.plasma.query.dsl.DomainObject
      extended by org.plasma.query.dsl.PathNode
          extended by org.plasma.query.dsl.DomainRoot
All Implemented Interfaces:
DomainQuery, PathProperty, Property, Query, Term
Direct Known Subclasses:
QConstraint, QGlobalVariable, QGlobalVariable, QTable, QTable, QTableColumn, QTableColumn, QTableColumnComment, QTableColumnConstraint, QTableColumnConstraint, QTableColumnKeyUsage, QTableComment, QTableConstraint, QVersion, QVersion, QView, QView, QViewColumn, QViewColumnComment, QViewComment

public class DomainRoot
extends PathNode
implements DomainQuery

The implementation of a domain query as a root within a query graph.


Field Summary
 
Fields inherited from class org.plasma.query.dsl.PathNode
expr, isRoot, type
 
Fields inherited from class org.plasma.query.dsl.DomainObject
source, sourceProperty
 
Constructor Summary
protected DomainRoot(PathNode source, java.lang.String sourceProperty)
           
protected DomainRoot(PathNode source, java.lang.String sourceProperty, Expression expr)
           
protected DomainRoot(Type type)
           
 
Method Summary
 void clearOrderByClause()
           
 GroupBy findGroupByClause()
           
 OrderBy findOrderByClause()
           
 Where findWhereClause()
           
 java.lang.Integer getEndRange()
          Gets the value of the endRange property.
 From getFromClause()
           
 Query getModel()
          Returns the underlying query model for this query.
 java.lang.String getName()
          Gets the value of the name property.
 Select getSelectClause()
           
 java.lang.Integer getStartRange()
          Gets the value of the startRange property.
 Where getWhereClause()
           
 DomainQuery groupBy(DataProperty property)
          Appends the given data property to the group by clause within this query and returns the query.
 DomainQuery orderBy(DataProperty property)
          Appends the given data property to the order by clause within this query and returns the query.
 DomainQuery select(DataProperty property)
          Appends the given property to the select clause within this query and returns the query.
 DomainQuery select(Wildcard property)
          Appends the given wildcard property to the select clause within this query and returns the query.
 void setEndRange(java.lang.Integer value)
          Sets the value of the endRange property.
 void setName(java.lang.String value)
          Sets the value of the name property.
 void setStartRange(java.lang.Integer value)
          Sets the value of the startRange property.
 DomainQuery where(Expression expr)
          Appends the given expression to the where clause within this query and returns the query.
 
Methods inherited from class org.plasma.query.dsl.PathNode
getSource, getSourceProperty, group, isNotNull, isNull, isRoot, wildcard
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DomainRoot

protected DomainRoot(Type type)

DomainRoot

protected DomainRoot(PathNode source,
                     java.lang.String sourceProperty)

DomainRoot

protected DomainRoot(PathNode source,
                     java.lang.String sourceProperty,
                     Expression expr)
Method Detail

getModel

public Query getModel()
Description copied from interface: Query
Returns the underlying query model for this query.

Specified by:
getModel in interface Query
Returns:
the underlying query model for this query

where

public DomainQuery where(Expression expr)
Description copied from interface: DomainQuery
Appends the given expression to the where clause within this query and returns the query.

Specified by:
where in interface DomainQuery
Parameters:
expr - the expression
Returns:
the query

select

public DomainQuery select(DataProperty property)
Description copied from interface: DomainQuery
Appends the given property to the select clause within this query and returns the query.

Specified by:
select in interface DomainQuery
Parameters:
property - the property
Returns:
the query

select

public DomainQuery select(Wildcard property)
Description copied from interface: DomainQuery
Appends the given wildcard property to the select clause within this query and returns the query.

Specified by:
select in interface DomainQuery
Parameters:
property - the wildcard property
Returns:
the query

orderBy

public DomainQuery orderBy(DataProperty property)
Description copied from interface: DomainQuery
Appends the given data property to the order by clause within this query and returns the query.

Specified by:
orderBy in interface DomainQuery
Parameters:
property - the data property
Returns:
the query

groupBy

public DomainQuery groupBy(DataProperty property)
Description copied from interface: DomainQuery
Appends the given data property to the group by clause within this query and returns the query.

Specified by:
groupBy in interface DomainQuery
Parameters:
property - the data property
Returns:
the query

getFromClause

public From getFromClause()
Specified by:
getFromClause in interface Query

clearOrderByClause

public void clearOrderByClause()
Specified by:
clearOrderByClause in interface Query

findGroupByClause

public GroupBy findGroupByClause()
Specified by:
findGroupByClause in interface Query

findOrderByClause

public OrderBy findOrderByClause()
Specified by:
findOrderByClause in interface Query

findWhereClause

public Where findWhereClause()
Specified by:
findWhereClause in interface Query

getEndRange

public java.lang.Integer getEndRange()
Description copied from interface: Query
Gets the value of the endRange property.

Specified by:
getEndRange in interface Query
Returns:
possible object is Integer

getName

public java.lang.String getName()
Description copied from interface: Query
Gets the value of the name property.

Specified by:
getName in interface Query
Returns:
possible object is String

getSelectClause

public Select getSelectClause()
Specified by:
getSelectClause in interface Query

getStartRange

public java.lang.Integer getStartRange()
Description copied from interface: Query
Gets the value of the startRange property.

Specified by:
getStartRange in interface Query
Returns:
possible object is Integer

getWhereClause

public Where getWhereClause()
Specified by:
getWhereClause in interface Query

setEndRange

public void setEndRange(java.lang.Integer value)
Description copied from interface: Query
Sets the value of the endRange property.

Specified by:
setEndRange in interface Query
Parameters:
value - allowed object is Integer

setName

public void setName(java.lang.String value)
Description copied from interface: Query
Sets the value of the name property.

Specified by:
setName in interface Query
Parameters:
value - allowed object is String

setStartRange

public void setStartRange(java.lang.Integer value)
Description copied from interface: Query
Sets the value of the startRange property.

Specified by:
setStartRange in interface Query
Parameters:
value - allowed object is Integer


Copyright © 2013. All Rights Reserved.