Fields Summary |
---|
public static final oreilly.hcj.datamodeling.constraints.StringConstraint | CODE_CONSTRAINTConstraint for the property code. |
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint | SOURCE_CONSTRAINTConstraint for the property source. |
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint | TARGET_CONSTRAINTConstraint for the property target. |
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint | SUCCESSFUL_CONSTRAINTConstraint for the property successful. |
public static final oreilly.hcj.datamodeling.constraints.ObjectConstraint | REQUESTER_CONSTRAINTConstraint for the property requester. |
public static final oreilly.hcj.datamodeling.constraints.DateConstraint | TIMESTAMP_CONSTRAINTConstraint for the property timestamp. |
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint | AMOUNT_CONSTRAINTConstraint for the property amount. |
public static final oreilly.hcj.datamodeling.constraints.NumericConstraint | FEE_CONSTRAINTConstraint for the property fee. |
private Account | sourceThe source of the money being transferred. |
private Account | targetThe target of the money being transferred. |
private Boolean | successfulWhether or not the transaction was executed successfully. |
private Customer | requesterThe customer requesting the transaction. |
private Date | timestampThe time and date of the transaction's attempted execution. |
private Float | amountThe amount to be transferred. |
private Float | feeThe fee charged for this transaction. |
private String | codeHolds value of property code. |
Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (!(obj instanceof Transaction)) {
return false;
} else {
return (((Transaction)obj).getCode().equals(this.code));
}
|
public java.lang.Float | getAmount()Getter for property amount.
return amount;
|
public java.lang.String | getCode()Getter for property code.
return this.code;
|
public java.lang.Float | getFee()Getter for property fee.
return fee;
|
public Customer | getRequester()Getter for property requester.
return requester;
|
public Account | getSource()Getter for property source.
return source;
|
public java.lang.Boolean | getSuccessful()Getter for property successful.
return successful;
|
public Account | getTarget()Getter for property target.
return target;
|
public java.util.Date | getTimestamp()Getter for property timestamp.
return timestamp;
|
public int | hashCode()
return this.code.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 | setCode(java.lang.String code)Setter for property code.
CODE_CONSTRAINT.validate(code);
final String oldCode = this.code;
this.code = code;
propertyChangeSupport.firePropertyChange("code", oldCode, code);
|
public void | setFee(java.lang.Float fee)Setter for property fee.
FEE_CONSTRAINT.validate(fee);
final Float oldFee = this.fee;
this.fee = fee;
propertyChangeSupport.firePropertyChange("fee", oldFee, this.fee);
|
public void | setRequester(Customer requester)Setter for property requester.
REQUESTER_CONSTRAINT.validate(requester);
final Customer oldRequester = this.requester;
this.requester = requester;
propertyChangeSupport.firePropertyChange("requester", oldRequester, this.requester);
|
public void | setSource(Account source)Setter for property source.
SOURCE_CONSTRAINT.validate(source);
final Account oldSource = this.source;
this.source = source;
propertyChangeSupport.firePropertyChange("source", oldSource, this.source);
|
public void | setSuccessful(java.lang.Boolean successful)Setter for property successful.
SUCCESSFUL_CONSTRAINT.validate(successful);
final Boolean oldSuccessful = this.successful;
this.successful = successful;
propertyChangeSupport.firePropertyChange("successful", oldSuccessful,
this.successful);
|
public void | setTarget(Account target)Setter for property target.
TARGET_CONSTRAINT.validate(target);
final Account oldTarget = this.target;
this.target = target;
propertyChangeSupport.firePropertyChange("target", oldTarget, this.target);
|
public void | setTimestamp(java.util.Date timestamp)Setter for property timestamp.
TIMESTAMP_CONSTRAINT.validate(timestamp);
final Date oldTimeStamp = this.timestamp;
this.timestamp = timestamp;
propertyChangeSupport.firePropertyChange("timestamp", oldTimeStamp, this.timestamp);
|