org.eobjects.metamodel.query
Class GroupByItem
java.lang.Object
org.eobjects.metamodel.util.BaseObject
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. |
GroupByItem
public GroupByItem(SelectItem selectItem)
- Constructs a GROUP BY item based on a select item that should be grouped.
- Parameters:
selectItem -
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.