ch.hsr.mas.oms.domain.dto.Position Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oms-api Show documentation
Show all versions of oms-api Show documentation
Order Management System - Client Stubs
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;
}
}