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 theProduct
object.Gets the deal name for theProduct
object.Gets the product name for theProduct
object.Gets the product status for theProduct
object.Gets the purchase date for theProduct
object.Gets the service quantity for theProduct
object.Gets the service type for theProduct
object.Gets the usage start date for theProduct
object.
-
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
- aString
containing the name of the dealproductName
- aString
containing the name of the productproductStatus
- aString
containing the current statusserviceType
- aString
containing 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 theProduct
object.- Returns:
- The product's deal name, or an empty
String
if the deal name is null.
-
getProductName
Gets the product name for theProduct
object.- Returns:
- The product's name, or an empty
String
if the product name is null.
-
getProductStatus
Gets the product status for theProduct
object.- Returns:
- The product's status, or an empty
String
if the status is null. - See Also:
-
getServiceType
Gets the service type for theProduct
object.- Returns:
- The product's service type, or an empty
String
if the service type is null.
-
getServiceQty
Gets the service quantity for theProduct
object.- Returns:
- A
BigDecimal
that represents the service quantity for thisProduct
, or a zero value if the service quantity is null.
-
getPurchaseDate
Gets the purchase date for theProduct
object.- Returns:
- A
Date
indicating the purchase date for thisProduct
, or today's date if the purchase date is null.
-
getCycleStartDate
Gets the cycle start date for theProduct
object.- Returns:
- A
Date
indicating the cycle start date for thisProduct
, or today's date if the cycle start date is null.
-
getUsageDate
Gets the usage start date for theProduct
object.- Returns:
- A
Date
indicating the usage start date for thisProduct
, or today's date if the usage start date is null.
-