Fields Summary |
---|
public static final oreilly.hcj.datamodeling.constraints.StringConstraint | PAYMENT_CODE_CONSTRAINTConstraint for the property code. |
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint | PAYEE_CONSTRAINTConstraint for the property payee . |
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint | PAYER_CONSTRAINTConstraint for the property payer. |
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint | AMOUNT_CONSTRAINTConstraint for the property amount. |
private Customer | payeeThe customer to be paid. |
private Customer | payerThe customer making the payment. |
private Float | amountThe amount to be paid |
private String | paymentCodeHolds value of property paymentCode. |
Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (!(obj instanceof AutomaticPayment)) {
return false;
} else {
return (((AutomaticPayment)obj).getPaymentCode().equals(this.paymentCode));
}
|
public java.lang.Float | getAmount()Getter for property amount.
return amount;
|
public Customer | getPayee()Getter for property payee.
return payee;
|
public Customer | getPayer()Getter for property payer.
return payer;
|
public java.lang.String | getPaymentCode()Getter for property paymentCode.
return this.paymentCode;
|
public int | hashCode()
return this.paymentCode.hashCode();
|
public void | setAmount(java.lang.Float amount)Setter for property amount.
AMOUNT_CONSTRAINT.validate(amount);
final Float oldAmount = this.amount;
this.amount = amount;
propertyChangeSupport.firePropertyChange("amount", oldAmount, this.amount);
|
public void | setPayee(Customer payee)Setter for property payee.
PAYEE_CONSTRAINT.validate(payee);
final Customer oldPayee = this.payee;
this.payee = payee;
propertyChangeSupport.firePropertyChange("payee", oldPayee, this.payee);
|
public void | setPayer(Customer payer)Setter for property payer.
PAYER_CONSTRAINT.validate(payer);
final Customer oldPayer = this.payer;
this.payer = payer;
propertyChangeSupport.firePropertyChange("payer", oldPayer, this.payer);
|
public void | setPaymentCode(java.lang.String paymentCode)Setter for property paymentCode.
PAYMENT_CODE_CONSTRAINT.validate(paymentCode);
final String oldPaymentCode = this.paymentCode;
this.paymentCode = paymentCode;
propertyChangeSupport.firePropertyChange("paymentCode", oldPaymentCode,
paymentCode);
|