org.eobjects.metamodel.query
Class GroupByItem

java.lang.Object
  extended by org.eobjects.metamodel.util.BaseObject
      extended by org.eobjects.metamodel.query.GroupByItem
All Implemented Interfaces:
Serializable, Cloneable, QueryItem

public class GroupByItem
extends BaseObject
implements QueryItem, Cloneable

Represents a GROUP BY item. GroupByItems always use a select item (that may or not be a part of the query already) for grouping.

See Also:
GroupByClause, Serialized Form

Constructor Summary
GroupByItem(SelectItem selectItem)
          Constructs a GROUP BY item based on a select item that should be grouped.
 
Method Summary
protected  GroupByItem clone()
           
protected  void decorateIdentity(List<Object> identifiers)
          Subclasses should implement this method and add all fields to the list that are to be included in equals(...) and hashCode() evaluation
 Query getQuery()
           
 SelectItem getSelectItem()
           
 GroupByItem setQuery(Query query)
           
 String toSql()
           
 String toSql(boolean includeSchemaInColumnPaths)
           
 String toString()
           
 
Methods inherited from class org.eobjects.metamodel.util.BaseObject
classEquals, equals, hashCode
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupByItem

public GroupByItem(SelectItem selectItem)
Constructs a GROUP BY item based on a select item that should be grouped.

Parameters:
selectItem -
Method Detail

getSelectItem

public SelectItem getSelectItem()

toSql

public String toSql()
Specified by:
toSql in interface QueryItem

toSql

public String toSql(boolean includeSchemaInColumnPaths)
Specified by:
toSql in interface QueryItem

toString

public String toString()
Specified by:
toString in interface QueryItem
Overrides:
toString in class BaseObject

getQuery

public Query getQuery()
Specified by:
getQuery in interface QueryItem

setQuery

public GroupByItem setQuery(Query query)
Specified by:
setQuery in interface QueryItem

clone

protected GroupByItem clone()
Overrides:
clone in class Object

decorateIdentity

protected void decorateIdentity(List<Object> identifiers)
Description copied from class: BaseObject
Subclasses should implement this method and add all fields to the list that are to be included in equals(...) and hashCode() evaluation

Specified by:
decorateIdentity in class BaseObject


Copyright © 2007-2013. All Rights Reserved.