Package com.portal.web.comp
Class Product
java.lang.Object
com.portal.web.comp.Product
Gathers details about a customer's product purchases and activity.
- Version:
- %version: 6 % %date_modified: Tue Nov 27 17:53:53 2001 %
- Author:
- sujata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the cycle start date for theProductobject.Gets the deal name for theProductobject.Gets the product name for theProductobject.Gets the product status for theProductobject.Gets the purchase date for theProductobject.Gets the service quantity for theProductobject.Gets the service type for theProductobject.Gets the usage start date for theProductobject.
-
Constructor Details
-
Product
public Product(String dealName, String productName, String productStatus, String serviceType, BigDecimal qty, Date purchaseDate, Date cycleDate, Date usageDate) Constructs an object with information to use for a product's balance.- Parameters:
dealName- aStringcontaining the name of the dealproductName- aStringcontaining the name of the productproductStatus- aStringcontaining the current statusserviceType- aStringcontaining the type of serviceqty- the number of productspurchaseDate- the plan's Purchase DatecycleDate- the plan's Cycle Start DateusageDate- the plan's Usage date
-
-
Method Details
-
getDealName
Gets the deal name for theProductobject.- Returns:
- The product's deal name, or an empty
Stringif the deal name is null.
-
getProductName
Gets the product name for theProductobject.- Returns:
- The product's name, or an empty
Stringif the product name is null.
-
getProductStatus
Gets the product status for theProductobject.- Returns:
- The product's status, or an empty
Stringif the status is null. - See Also:
-
getServiceType
Gets the service type for theProductobject.- Returns:
- The product's service type, or an empty
Stringif the service type is null.
-
getServiceQty
Gets the service quantity for theProductobject.- Returns:
- A
BigDecimalthat represents the service quantity for thisProduct, or a zero value if the service quantity is null.
-
getPurchaseDate
Gets the purchase date for theProductobject.- Returns:
- A
Dateindicating the purchase date for thisProduct, or today's date if the purchase date is null.
-
getCycleStartDate
Gets the cycle start date for theProductobject.- Returns:
- A
Dateindicating the cycle start date for thisProduct, or today's date if the cycle start date is null.
-
getUsageDate
Gets the usage start date for theProductobject.- Returns:
- A
Dateindicating the usage start date for thisProduct, or today's date if the usage start date is null.
-