Class Product

java.lang.Object
com.portal.web.comp.Product

public class Product extends Object
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 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 - a String containing the name of the deal
      productName - a String containing the name of the product
      productStatus - a String containing the current status
      serviceType - a String containing the type of service
      qty - the number of products
      purchaseDate - the plan's Purchase Date
      cycleDate - the plan's Cycle Start Date
      usageDate - the plan's Usage date
  • Method Details

    • getDealName

      public String getDealName()
      Gets the deal name for the Product object.
      Returns:
      The product's deal name, or an empty String if the deal name is null.
    • getProductName

      public String getProductName()
      Gets the product name for the Product object.
      Returns:
      The product's name, or an empty String if the product name is null.
    • getProductStatus

      public String getProductStatus()
      Gets the product status for the Product object.
      Returns:
      The product's status, or an empty String if the status is null.
      See Also:
    • getServiceType

      public String getServiceType()
      Gets the service type for the Product object.
      Returns:
      The product's service type, or an empty String if the service type is null.
    • getServiceQty

      public BigDecimal getServiceQty()
      Gets the service quantity for the Product object.
      Returns:
      A BigDecimal that represents the service quantity for this Product, or a zero value if the service quantity is null.
    • getPurchaseDate

      public Date getPurchaseDate()
      Gets the purchase date for the Product object.
      Returns:
      A Date indicating the purchase date for this Product, or today's date if the purchase date is null.
    • getCycleStartDate

      public Date getCycleStartDate()
      Gets the cycle start date for the Product object.
      Returns:
      A Date indicating the cycle start date for this Product, or today's date if the cycle start date is null.
    • getUsageDate

      public Date getUsageDate()
      Gets the usage start date for the Product object.
      Returns:
      A Date indicating the usage start date for this Product, or today's date if the usage start date is null.