Fields Summary |
---|
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint | PURCHASE_ID_CONSTRAINTConstraint for the property purchaseID. |
public static final oreilly.hcj.datamodeling.constraints.StringConstraint | ITEM_SKU_CONSTRAINTConstraint for the property itemSKU. |
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint | PRICE_PAID_CONSTRAINTConstraint for the property pricePaid. |
Float | pricePaidHolds the value of the property lastName. |
Integer | purchaseIDHolds the value of the property customerID. |
String | itemSKUHolds the value of the property firstName. |
Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (!(obj instanceof Purchase)) {
return false;
} else {
return (((Purchase)obj).getPurchaseID().equals(this.purchaseID));
}
|
public java.lang.String | getItemSKU()Gets the value of the property itemSKU.
return this.itemSKU;
|
public java.lang.Float | getPricePaid()Gets the value of the property pricePaid.
return this.pricePaid;
|
public java.lang.Integer | getPurchaseID()Gets the value of the property purchaseID.
return this.purchaseID;
|
public int | hashCode()
return this.purchaseID.hashCode();
|
public void | setFirstName(java.lang.String itemSKU)Sets the value of the property itemSKU.
ITEM_SKU_CONSTRAINT.validate(itemSKU);
final String oldItemSKU = this.itemSKU;
this.itemSKU = itemSKU;
propertyChangeSupport.firePropertyChange("itemSKU", oldItemSKU, this.itemSKU);
|
public void | setPricePaid(java.lang.Float pricePaid)Sets the value of the property pricePaid.
PRICE_PAID_CONSTRAINT.validate(pricePaid);
final Float oldPricePaid = this.pricePaid;
this.pricePaid = pricePaid;
propertyChangeSupport.firePropertyChange("pricePaid", oldPricePaid, this.pricePaid);
|
public void | setPurchaseID(java.lang.Integer purchaseID)Sets the value of the property purchaseID.
PURCHASE_ID_CONSTRAINT.validate(purchaseID);
final Integer oldPurchaseID = this.purchaseID;
this.purchaseID = purchaseID;
propertyChangeSupport.firePropertyChange("purchaseID", oldPurchaseID,
this.purchaseID);
|