|
|||||||||
| Home >> All >> org >> jdaemon >> [ era overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jdaemon.era
Class Grouping

java.lang.Objectorg.jdaemon.era.Grouping
- public class Grouping
- extends java.lang.Object
Class representing a Grouping.
| Field Summary | |
private org.jdaemon.util.QuickList |
aggregates
|
private Grouping |
child
|
private org.jdaemon.util.QuickList |
sorts
|
| Constructor Summary | |
Grouping()
|
|
Grouping(org.jdaemon.util.QuickList sorts,
org.jdaemon.util.QuickList aggregates,
Grouping child)
|
|
| Method Summary | |
void |
addAggregate(Aggregate aggregate)
Add an aggregate function to this grouping. |
void |
addAggregate(java.lang.String attribute_name,
int type)
Add an aggregate function to this grouping. |
void |
addSort(Sort sort)
Add a sort to this grouping. |
void |
addSort(java.lang.String attribute_name,
int direction)
Add a sort to this grouping. |
java.lang.Object |
clone()
This method may be called to create a new copy of the Object. |
org.jdaemon.util.QuickList |
getAggregates()
Get a list of all the Aggregates in this grouping |
Grouping |
getChildGrouping()
|
org.jdaemon.util.QuickList |
getSorts()
Get a list of the Sorts implicit in this grouping. |
void |
setChildGrouping(Grouping child)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
sorts
private org.jdaemon.util.QuickList sorts
aggregates
private org.jdaemon.util.QuickList aggregates
child
private Grouping child
| Constructor Detail |
Grouping
public Grouping(org.jdaemon.util.QuickList sorts, org.jdaemon.util.QuickList aggregates, Grouping child)
Grouping
public Grouping()
| Method Detail |
setChildGrouping
public void setChildGrouping(Grouping child)
getChildGrouping
public Grouping getChildGrouping()
clone
public java.lang.Object clone()
- Description copied from class:
java.lang.Object - This method may be called to create a new copy of the
Object. The typical behavior is as follows:
o == o.clone()is falseo.getClass() == o.clone().getClass()is trueo.equals(o)is true
However, these are not strict requirements, and may be violated if necessary. Of the three requirements, the last is the most commonly violated, particularly if the subclass does not override Object.equals(Object)>
Object.equals(Object)55 .If the Object you call clone() on does not implement java.lang.Cloneable (which is a placeholder interface), then a CloneNotSupportedException is thrown. Notice that Object does not implement Cloneable; this method exists as a convenience for subclasses that do.
Object's implementation of clone allocates space for the new Object using the correct class, without calling any constructors, and then fills in all of the new field values with the old field values. Thus, it is a shallow copy. However, subclasses are permitted to make a deep copy.
All array types implement Cloneable, and override this method as follows (it should never fail):
public Object clone() { try { super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(e.getMessage()); } }
addAggregate
public void addAggregate(Aggregate aggregate)
- Add an aggregate function to this grouping.
addSort
public void addSort(Sort sort)
- Add a sort to this grouping.
addAggregate
public void addAggregate(java.lang.String attribute_name, int type)
- Add an aggregate function to this grouping.
Equivalent to addAggregate(new Aggregate(attribute_name, type)).
addSort
public void addSort(java.lang.String attribute_name, int direction)
- Add a sort to this grouping.
Equivalent to addSort(new Sort(attribute_name, direction)).
getSorts
public org.jdaemon.util.QuickList getSorts()
- Get a list of the Sorts implicit in this grouping.
getAggregates
public org.jdaemon.util.QuickList getAggregates()
- Get a list of all the Aggregates in this grouping
|
|||||||||
| Home >> All >> org >> jdaemon >> [ era overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.jdaemon.era.Grouping