package cse308.swift.shared.beans; import java.sql.Timestamp; import java.util.Date; import java.math.BigDecimal; public class ClientPortfolioItem { /** * Time of the transaction */ private Timestamp timeOfTransaction; /** * Symbol of the transaction */ private String symbol; /** * The price at time of purchase for the symbol */ private double price_average; /** * The amount of shares purchased of the symbol */ private int shares; /** * Returns the TimeStamp of this transaction * * @return the TimeStamp of the transaction: TimeStamp */ public Date getTimeOfTransaction() { return this.timeOfTransaction; } /** * Sets the TimeStamp of this transaction * * @param initTimeOfTransaction is the TimeStamp of this transaction: TimeStamp */ public void setTimeOfTransaction(Timestamp initTimeOfTransaction) { this.timeOfTransaction = initTimeOfTransaction; } /** * Sets the symbol of this transaction * * @param symbol is the symbol for this transaction: String */ public void setSymbol(String symbol) { this.symbol = symbol; } /** * Returns the symbol of this transaction * * @return the symbol of this transaction: String */ public String getSymbol() { return this.symbol; } /** * Returns the buy price of this transaction * * @return the buy price of this transaction: BigDecimal */ public double getPriceAverage() { return this.price_average; } /** * Returns the buy price of this transaction * * @param buy_price they buy price of this transactions: BigDecimal */ public void setPriceAverage(double buyPrice) { this.price_average = buyPrice; } /** * Returns the number of shares in this transaction * * @return the number of shares in this transaction: Int */ public int getShares() { return this.shares; } /** * Sets the number of shares in this transaction * * @param initShares the number of shares for this transaction: Int */ public void setShares(int initShares) { this.shares = initShares; } }