All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.hsr.mas.oms.domain.dto.Position Maven / Gradle / Ivy

The newest version!
package ch.hsr.mas.oms.domain.dto;

import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
    "positionId",
    "orderId",
    "symbol",
    "quantity",
    "reservedQty",
    "currency",
    "price",
    "currentPrice",
    "profit",
    "date"
})
@XmlRootElement(name = "position")
public class Position implements Serializable {

	private static final long serialVersionUID = 4404515504235007236L;
	protected int positionId;
    protected int orderId;
    @XmlElement(required = true)
    protected String symbol;
    protected int quantity;
    private int reservedQty;
    @XmlElement(required = true)
    protected String currency;
    protected double price;
    protected Double currentPrice;
    protected Double profit;
    @XmlElement(required = true)
    protected String date;

    public int getPositionId() {
        return positionId;
    }

    public void setPositionId(int positionId) {
        this.positionId = positionId;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Double getCurrentPrice() {
        return currentPrice;
    }

    public void setCurrentPrice(Double currentPrice) {
        this.currentPrice = currentPrice;
    }

    public Double getProfit() {
        return profit;
    }

    public void setProfit(Double profit) {
        this.profit = profit;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String toString() {
		   return ReflectionToStringBuilder.toString(this);
	}

	public int getReservedQty() {
		return reservedQty;
	}

	public void setReservedQty(int reservedQty) {
		this.reservedQty = reservedQty;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy