| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| MutableAccount |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Created on Aug 22, 2007 by wyatt | |
| 3 | */ | |
| 4 | package org.homeunix.thecave.buddi.plugin.api.model; | |
| 5 | ||
| 6 | import java.util.Date; | |
| 7 | ||
| 8 | import org.homeunix.thecave.buddi.plugin.api.exception.InvalidValueException; | |
| 9 | ||
| 10 | public interface MutableAccount extends ImmutableAccount, MutableSource { | |
| 11 | ||
| 12 | /** | |
| 13 | * Sets the type for this account | |
| 14 | * @param accountType | |
| 15 | */ | |
| 16 | public void setAccountType(MutableAccountType accountType) throws InvalidValueException; | |
| 17 | ||
| 18 | /** | |
| 19 | * Sets the starting balance for this account | |
| 20 | * @param startingBalance | |
| 21 | */ | |
| 22 | public void setStartingBalance(long startingBalance) throws InvalidValueException; | |
| 23 | /** | |
| 24 | * Returns the Type object associated with the account. | |
| 25 | * @return | |
| 26 | */ | |
| 27 | public MutableAccountType getAccountType(); | |
| 28 | ||
| 29 | /** | |
| 30 | * Sets the Overdraft Limit (for debit accounts) or Credit Limit (for credit accounts) | |
| 31 | * @param overdraftCreditLimit | |
| 32 | */ | |
| 33 | public void setOverdraftCreditLimit(long overdraftCreditLimit) throws InvalidValueException; | |
| 34 | ||
| 35 | /** | |
| 36 | * Sets the starting date for the account. | |
| 37 | * @param startDate | |
| 38 | */ | |
| 39 | public void setStartDate(Date startDate); | |
| 40 | ||
| 41 | /** | |
| 42 | * Sets the interest rate. This is a three decimal-place value interpreted as a long; | |
| 43 | * for instance, the value "6123" would mean "6.123%". This value cannot be negative, | |
| 44 | * and should not be greater than 100% (100000 long) (we currently don't check that | |
| 45 | * the value is less than 100%, but we may do this in the future, so to be safe, don't rely | |
| 46 | * on being able to do this). | |
| 47 | * @param interestRate | |
| 48 | */ | |
| 49 | public void setInterestRate(long interestRate) throws InvalidValueException; | |
| 50 | } |