com.ibm.websphere.samples.plantsbywebsphereejb
Class Report

java.lang.Object
  extended by com.ibm.websphere.samples.plantsbywebsphereejb.Report
All Implemented Interfaces:
java.io.Serializable

public class Report
extends java.lang.Object
implements java.io.Serializable

This class is the report produced using a database query.

See Also:
Serialized Form

Field Summary
static int ORDER_BILLADDR1
           
static int ORDER_BILLADDR2
           
static int ORDER_BILLCITY
           
static int ORDER_BILLPHONE
           
static int ORDER_BILLSTATE
           
static int ORDER_BILLZIP
           
static int ORDER_CREDITCARD
           
static int ORDER_CUSTOMERID
           
static java.lang.String[] ORDER_FIELDS
           
static int ORDER_FULLNAME
           
static int ORDER_INVENTORY_CATEGORY
           
static int ORDER_INVENTORY_COST
           
static int ORDER_INVENTORY_ID
           
static int ORDER_INVENTORY_NAME
           
static int ORDER_INVENTORY_PKGINFO
           
static int ORDER_INVENTORY_PRICE
           
static int ORDER_INVENTORY_QUANTITY
           
static int ORDER_ORDERID
           
static int ORDER_PROFIT
           
static int PROFITS
           
 
Constructor Summary
Report()
          Create a Report object.
 
Method Summary
 int getColumnCount()
          Get a count of the number of columns in the report.
 java.lang.Object getReportFieldByRow(int field, int index)
          Get the value of a particular field in a particular row.
 int getRowCount()
          Get a count of the number of rows in the report.
 void setReportFieldByRow(int field, java.util.Vector rows)
          Set the rows for a particular field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORDER_ORDERID

public static final int ORDER_ORDERID
See Also:
Constant Field Values

ORDER_CUSTOMERID

public static final int ORDER_CUSTOMERID
See Also:
Constant Field Values

ORDER_FULLNAME

public static final int ORDER_FULLNAME
See Also:
Constant Field Values

ORDER_BILLADDR1

public static final int ORDER_BILLADDR1
See Also:
Constant Field Values

ORDER_BILLADDR2

public static final int ORDER_BILLADDR2
See Also:
Constant Field Values

ORDER_BILLCITY

public static final int ORDER_BILLCITY
See Also:
Constant Field Values

ORDER_BILLSTATE

public static final int ORDER_BILLSTATE
See Also:
Constant Field Values

ORDER_BILLZIP

public static final int ORDER_BILLZIP
See Also:
Constant Field Values

ORDER_BILLPHONE

public static final int ORDER_BILLPHONE
See Also:
Constant Field Values

ORDER_CREDITCARD

public static final int ORDER_CREDITCARD
See Also:
Constant Field Values

ORDER_PROFIT

public static final int ORDER_PROFIT
See Also:
Constant Field Values

ORDER_INVENTORY_ID

public static final int ORDER_INVENTORY_ID
See Also:
Constant Field Values

ORDER_INVENTORY_NAME

public static final int ORDER_INVENTORY_NAME
See Also:
Constant Field Values

ORDER_INVENTORY_PKGINFO

public static final int ORDER_INVENTORY_PKGINFO
See Also:
Constant Field Values

ORDER_INVENTORY_PRICE

public static final int ORDER_INVENTORY_PRICE
See Also:
Constant Field Values

ORDER_INVENTORY_COST

public static final int ORDER_INVENTORY_COST
See Also:
Constant Field Values

ORDER_INVENTORY_QUANTITY

public static final int ORDER_INVENTORY_QUANTITY
See Also:
Constant Field Values

ORDER_INVENTORY_CATEGORY

public static final int ORDER_INVENTORY_CATEGORY
See Also:
Constant Field Values

PROFITS

public static final int PROFITS
See Also:
Constant Field Values

ORDER_FIELDS

public static final java.lang.String[] ORDER_FIELDS
Constructor Detail

Report

public Report()
Create a Report object.

Method Detail

getRowCount

public int getRowCount()
Get a count of the number of rows in the report.

Returns:
int - number of rows

getColumnCount

public int getColumnCount()
Get a count of the number of columns in the report.

Returns:
int - number of columns

setReportFieldByRow

public void setReportFieldByRow(int field,
                                java.util.Vector rows)
Set the rows for a particular field.

Parameters:
field - - The field desired.
rows - - Vector representing all the rows' data for this field.

getReportFieldByRow

public java.lang.Object getReportFieldByRow(int field,
                                            int index)
Get the value of a particular field in a particular row.

Parameters:
field - - The field desired.
index - - The row index desired.
Returns:
The value of the field for the row given.