1 27 28 29 package com.sun.ebank.util; 30 31 import java.math.BigDecimal ; 32 import java.util.Date ; 33 import java.util.ArrayList ; 34 35 36 40 public class AccountDetails implements java.io.Serializable { 41 private String accountId; 42 private String type; 43 private String description; 44 private BigDecimal balance; 45 private BigDecimal creditLine; 46 private BigDecimal beginBalance; 47 private Date beginBalanceTimeStamp; 48 private ArrayList customerIds; 49 50 public AccountDetails(String accountId, String type, String description, 51 BigDecimal balance, BigDecimal creditLine, BigDecimal beginBalance, 52 Date beginBalanceTimeStamp, ArrayList customerIds) { 53 this.accountId = accountId; 54 this.type = type; 55 this.description = description; 56 this.balance = balance; 57 this.creditLine = creditLine; 58 this.beginBalance = beginBalance; 59 this.beginBalanceTimeStamp = beginBalanceTimeStamp; 60 this.customerIds = customerIds; 61 } 62 63 public String getAccountId() { 65 return accountId; 66 } 67 68 public String getDescription() { 69 return description; 70 } 71 72 public String getType() { 73 return type; 74 } 75 76 public BigDecimal getBalance() { 77 return balance; 78 } 79 80 public BigDecimal getCreditLine() { 81 return creditLine; 82 } 83 84 public BigDecimal getBeginBalance() { 85 return beginBalance; 86 } 87 88 public Date getBeginBalanceTimeStamp() { 89 return beginBalanceTimeStamp; 90 } 91 92 public ArrayList getCustomerIds() { 93 return customerIds; 94 } 95 96 public BigDecimal getRemainingCredit() { 97 return creditLine.subtract(balance); 98 } 99 100 public void setAccountId(String accountId) { 102 this.accountId = accountId; 103 } 104 105 public void setType(String type) { 106 this.type = type; 107 } 108 109 public void setDescription(String description) { 110 this.description = description; 111 } 112 113 public void setBalance(BigDecimal balance) { 114 this.balance = balance; 115 } 116 117 public void setCreditLine(BigDecimal creditLine) { 118 this.creditLine = creditLine; 119 } 120 121 public void setBeginBalance(BigDecimal beginBalance) { 122 this.beginBalance = beginBalance; 123 } 124 125 public void setBeginBalanceTimeStamp(Date beginBalanceTimeStamp) { 126 this.beginBalanceTimeStamp = beginBalanceTimeStamp; 127 } 128 129 public void setCustomerIds(ArrayList customerIds) { 130 this.customerIds = customerIds; 131 } 132 } 133 | Popular Tags |