|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.plantsbywebsphereejb.ReportFormat
public class ReportFormat
Report format for database query. Currently, this format only determines whether the data is sorted in an ascending or descending order. This class can be expanded to allow for selecting what columns appear, order of columns, etc.
Constructor Summary | |
---|---|
ReportFormat()
Create a ReportFormat object which defaults to an ascending sort order. |
|
ReportFormat(boolean ascending)
Create a ReportFormat object. |
Method Summary | |
---|---|
boolean |
isAscending()
Is report sorted in ascending order? |
void |
sortBy(boolean ascending)
Used to establish the sorting rules. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReportFormat()
public ReportFormat(boolean ascending)
ascending
- A boolean value set to TRUE when sortingby ascending
values, and FALSE when sorting by descending values.Method Detail |
---|
public void sortBy(boolean ascending)
ascending
- A boolean value set to TRUE when sortingby ascending
values, and FALSE when sorting by descending values.public boolean isAscending()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |