FileDocCategorySizeDatePackage
Purchase.javaAPI DocExample3748Sun Dec 14 22:47:40 GMT 2003oreilly.hcj.datamodeling

Purchase

public class Purchase extends MutableObject
A purchase object.
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.5 $

Fields Summary
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint
PURCHASE_ID_CONSTRAINT
Constraint for the property purchaseID.
public static final oreilly.hcj.datamodeling.constraints.StringConstraint
ITEM_SKU_CONSTRAINT
Constraint for the property itemSKU.
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint
PRICE_PAID_CONSTRAINT
Constraint for the property pricePaid.
Float
pricePaid
Holds the value of the property lastName.
Integer
purchaseID
Holds the value of the property customerID.
String
itemSKU
Holds the value of the property firstName.
Constructors Summary
Methods Summary
public booleanequals(java.lang.Object obj)

see
java.lang.Object#equals(java.lang.Object)

		if (!(obj instanceof Purchase)) {
			return false;
		} else {
			return (((Purchase)obj).getPurchaseID().equals(this.purchaseID));
		}
	
public java.lang.StringgetItemSKU()
Gets the value of the property itemSKU.

return
itemSKU The new value.

		return this.itemSKU;
	
public java.lang.FloatgetPricePaid()
Gets the value of the property pricePaid.

return
pricePaid The new value.

		return this.pricePaid;
	
public java.lang.IntegergetPurchaseID()
Gets the value of the property purchaseID.

return
purchaseID The new value.

		return this.purchaseID;
	
public inthashCode()

see
java.lang.Object#hashCode()

		return this.purchaseID.hashCode();
	
public voidsetFirstName(java.lang.String itemSKU)
Sets the value of the property itemSKU.

param
itemSKU The new value.


	             	 
	     
		ITEM_SKU_CONSTRAINT.validate(itemSKU);
		final String oldItemSKU = this.itemSKU;
		this.itemSKU = itemSKU;
		propertyChangeSupport.firePropertyChange("itemSKU", oldItemSKU, this.itemSKU);
	
public voidsetPricePaid(java.lang.Float pricePaid)
Sets the value of the property pricePaid.

param
pricePaid The new value.

		PRICE_PAID_CONSTRAINT.validate(pricePaid);
		final Float oldPricePaid = this.pricePaid;
		this.pricePaid = pricePaid;
		propertyChangeSupport.firePropertyChange("pricePaid", oldPricePaid, this.pricePaid);
	
public voidsetPurchaseID(java.lang.Integer purchaseID)
Sets the value of the property purchaseID.

param
purchaseID The new value.

		PURCHASE_ID_CONSTRAINT.validate(purchaseID);
		final Integer oldPurchaseID = this.purchaseID;
		this.purchaseID = purchaseID;
		propertyChangeSupport.firePropertyChange("purchaseID", oldPurchaseID,
		                                         this.purchaseID);