Fields Summary |
---|
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint | ID_CONSTRAINTConstraint for the ID property. |
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint | CUSTOMER_CONSTRAINTConstraint for the customer property. |
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint | BALANCE_CONSTRAINTConstraint for the balance property. |
public static final oreilly.hcj.datamodeling.constraints.CollectionConstraint | TRANSACTION_LIST_CONSTRAINTConstraint for the transactionList property. |
private Customer | customerThe customer that holds this account. |
private Float | balanceBalance on the account. |
private Integer | IDHolds value of property ID. |
private Set | transactionListThe list of transactions executed on thsi account. |
Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (!(obj instanceof Account)) {
return false;
} else {
return (((Account)obj).getID().equals(this.ID));
}
|
public java.lang.Float | getBalance()Getter for property balance.
return balance;
|
public Customer | getCustomer()Getter for property customer.
return customer;
|
public java.lang.Integer | getID()Getter for property ID.
return this.ID;
|
public java.util.Set | getTransactionList()Getter for property transactionList.
return Collections.unmodifiableSet(transactionList);
|
public int | hashCode()
return this.ID.hashCode();
|
public void | setBalance(java.lang.Float balance)Setter for property balance.
// of type Transaction
BALANCE_CONSTRAINT.validate(balance);
final Float oldBalance = this.balance;
this.balance = balance;
propertyChangeSupport.firePropertyChange("balance", oldBalance, this.balance);
|
public void | setCustomer(Customer customer)Setter for property customer.
this.customer = customer;
|
public void | setID(java.lang.Integer ID)Setter for property ID.
ID_CONSTRAINT.validate(ID);
final Integer oldID = this.ID;
this.ID = ID;
propertyChangeSupport.firePropertyChange("ID", oldID, ID);
|
public void | setTransactionList(java.util.Set transactionList)Setter for property transactionList.
TRANSACTION_LIST_CONSTRAINT.validate(transactionList);
final Set oldTransactionList = Collections.unmodifiableSet(this.transactionList);
this.transactionList = new HashSet(transactionList);
propertyChangeSupport.firePropertyChange("transactionList", oldTransactionList,
getTransactionList());
|