public class GenericGet extends Session
The following example illustrate how to use the GenericGet class.
TelesalesServiceRequest serviceRequest = new TelesalesServiceRequest("com.ibm.commerce.telesales.findCustomer", parms); TelesalesRequestStatus status = TelesalesController.getInstance().performServiceRequest(serviceRequest); GenericGet getData = (GenericGet) status.getData(); if (getData != null) { Object customers[] = getData.getGetData(); for (int i = 0; i < customers.length; i++) { Customer customer = (Customer) customers[i]; // ... } }
Modifier and Type | Field and Description |
---|---|
static java.lang.String | PROP_CURRENT_NUM_OF_RECORDS
Constant for the 'Current Number Of Records' property name.
|
static java.lang.String | PROP_FILTERED_RECORDS
Constant for the 'Filtered Records' property name.
|
static java.lang.String | PROP_GETS
Constant for the gets property name.
|
static java.lang.String | PROP_PAGESIZE_EXCEEDED
Constant for the 'page size exceeded' property name.
|
static java.lang.String | PROP_RESULTS_EXCEEDED
Constant for the 'result size exceeded' property name.
|
static java.lang.String | PROP_TOTAL_NUM_OF_RECORDS
Constant for the 'Total Number Of Records' property name.
|
Constructor and Description |
---|
GenericGet()
Constructor for GenericGet.
|
Modifier and Type | Method and Description |
---|---|
void | addGet(java.lang.Object get)
This method is a convenience method for updating the "gets" property.
|
int | getCurrentNumOfRecords()
This method is a convenience method for retrieving the current setting of the "current.num.records" property.
|
int | getFilteredNumOfRecords()
This method is a convenience method for retrieving the current setting of the "filtered.num.records" property.
|
java.lang.Object[] | getGetData()
This method is a convenience method for retrieving the current setting of the "gets" property.
|
ModelObjectList | getGetsModelObjectList()
This method is a convenience method for retrieving the current setting of the "gets" property.
|
boolean | getPageSizeExceeded()
This method is a convenience method for retrieving the current setting of the "page.size.Exceeded" property.
|
boolean | getResultSizeExceeded()
This method is a convenience method for retrieving the current setting of the "result.size.Exceeded" property.
|
int | getTotalNumOfRecords()
This method is a convenience method for retrieving the current setting of the "total.num.records" property.
|
void | reset()
This method is a convenience method for updating the "gets" property.
|
void | setCurrentNumOfRecords(int numOfRecords)
This method is a convenience method for updating the "current.num.records" property.
|
void | setFilteredNumOfRecords(int filteredRecords)
This method is a convenience method for updating the "filtered.num.records" property.
|
void | setPageSizeExceeded(boolean pageSizeExceeded)
This method is a convenience method for the "page.size.exceeded" property.
|
void | setResultSizeExceeded(boolean resultSizeExceeded)
This method is a convenience method for the "result.size.exceeded" property.
|
void | setTotalNumOfRecords(int numOfRecords)
This method is a convenience method for updating the "total.num.records" property.
|
public static final java.lang.String PROP_GETS
The value is "gets".
The data stored under the "gets" property is a ModelObjectList that contains model objects returned from a get.
public static final java.lang.String PROP_CURRENT_NUM_OF_RECORDS
The value is "current.num.records".
The data stored under the "current.num.records" property is an int
public static final java.lang.String PROP_TOTAL_NUM_OF_RECORDS
The value is "total.num.records".
The data stored under the "total.num.records" property is an int
public static final java.lang.String PROP_FILTERED_RECORDS
The value is "filtered.num.records".
The data stored under the "filtered.num.records" property is an int
public static final java.lang.String PROP_RESULTS_EXCEEDED
The value is "result.size.exceeded".
The data stored under the "result.size.exceeded" property is a boolean
public static final java.lang.String PROP_PAGESIZE_EXCEEDED
The value is "page.size.exceeded".
The data stored under the "page.size.exceeded" property is an boolean
public ModelObjectList getGetsModelObjectList()
public void addGet(java.lang.Object get)
public java.lang.Object[] getGetData()
public void reset()
public int getCurrentNumOfRecords()
public void setCurrentNumOfRecords(int numOfRecords)
public void setResultSizeExceeded(boolean resultSizeExceeded)
It sets a boolean value to indicate if the result size for the request has exceeded the threshold.
public boolean getResultSizeExceeded()
public void setPageSizeExceeded(boolean pageSizeExceeded)
It sets a boolean value to indicate if the page size for the request has exceeded the threshold.
public boolean getPageSizeExceeded()
public int getFilteredNumOfRecords()
public void setFilteredNumOfRecords(int filteredRecords)
public int getTotalNumOfRecords()
public void setTotalNumOfRecords(int numOfRecords)