net.sourceforge.fixagora.sellside.shared.persistence
Class SellSideNewOrderSingle

java.lang.Object
  extended by net.sourceforge.fixagora.sellside.shared.persistence.SellSideNewOrderSingle
All Implemented Interfaces:
java.lang.Comparable<java.lang.Object>, PersistenceInterface

@Entity
public class SellSideNewOrderSingle
extends java.lang.Object
implements PersistenceInterface

The Class SellSideNewOrderSingle.


Nested Class Summary
static class SellSideNewOrderSingle.OrderStatus
          The Enum OrderStatus.
static class SellSideNewOrderSingle.Side
          The Enum Side.
static class SellSideNewOrderSingle.TimeInForce
          The Enum TimeInForce.
 
Constructor Summary
SellSideNewOrderSingle()
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 Counterparty getCounterparty()
          Gets the counterparty.
 java.lang.String getCounterpartyOrderId()
          Gets the counterparty order id.
 long getCreatedTimestamp()
          Gets the created timestamp.
 double getCumulativeQuantity()
          Gets the cumulative quantity.
 java.util.Set<FRole> getExecuteRoles()
          Gets the execute roles.
 FUser getfUser()
          Gets the f user.
 long getId()
          Gets the id.
 java.lang.Double getLastPrice()
          Gets the last price.
 java.lang.Double getLastQuantity()
          Gets the last quantity.
 java.lang.Double getLastYield()
          Gets the last yield.
 double getLeaveQuantity()
          Gets the leave quantity.
 java.lang.Double getLimit()
          Gets the limit.
 AbstractAcceptor getMarketInterface()
          Gets the market interface.
 double getMinQuantity()
          Gets the min quantity.
 java.lang.Double getNewLimit()
          Gets the new limit.
 java.lang.String getNewOrderId()
          Gets the new order id.
 java.lang.Double getNewQuantity()
          Gets the new quantity.
 java.lang.String getOrderId()
          Gets the order id.
 double getOrderQuantity()
          Gets the order quantity.
 SellSideNewOrderSingle.OrderStatus getOrderStatus()
          Gets the order status.
 java.util.Set<FRole> getReadRoles()
          Gets the read roles.
 FSecurity getSecurity()
          Gets the security.
 SellSideBook getSellSideBook()
          Gets the sell side book.
 java.lang.Long getSettlementDate()
          Gets the settlement date.
 SellSideNewOrderSingle.Side getSide()
          Gets the side.
 long getTifTimestamp()
          Gets the tif timestamp.
 SellSideNewOrderSingle.TimeInForce getTimeInForce()
          Gets the time in force.
 Trader getTrader()
          Gets the trader.
 long getUpdatedTimestamp()
          Gets the updated timestamp.
 java.util.Set<FRole> getWriteRoles()
          Gets the write roles.
 void makeEager()
          Make eager.
 void setCounterparty(Counterparty counterparty)
          Sets the counterparty.
 void setCounterpartyOrderId(java.lang.String counterpartyOrderId)
          Sets the counterparty order id.
 void setCreatedTimestamp(long createdTimestamp)
          Sets the created timestamp.
 void setCumulativeQuantity(double cumulativeQuantity)
          Sets the cumulative quantity.
 void setfUser(FUser fUser)
          Sets the f user.
 void setId(long id)
          Sets the id.
 void setLastPrice(java.lang.Double lastPrice)
          Sets the last price.
 void setLastQuantity(java.lang.Double lastQuantity)
          Sets the last quantity.
 void setLastYield(java.lang.Double lastYield)
          Sets the last yield.
 void setLeaveQuantity(double leaveQuantity)
          Sets the leave quantity.
 void setLimit(java.lang.Double limit)
          Sets the limit.
 void setMarketInterface(AbstractAcceptor marketInterface)
          Sets the market interface.
 void setMinQuantity(double minQuantity)
          Sets the min quantity.
 void setNewLimit(java.lang.Double newLimit)
          Sets the new limit.
 void setNewOrderId(java.lang.String newOrderId)
          Sets the new order id.
 void setNewQuantity(java.lang.Double newQuantity)
          Sets the new quantity.
 void setOrderId(java.lang.String orderId)
          Sets the order id.
 void setOrderQuantity(double orderQuantity)
          Sets the order quantity.
 void setOrderStatus(SellSideNewOrderSingle.OrderStatus orderStatus)
          Sets the order status.
 void setSecurity(FSecurity security)
          Sets the security.
 void setSellSideBook(SellSideBook sellSideBook)
          Sets the sell side book.
 void setSettlementDate(java.lang.Long settlementDate)
          Sets the settlement date.
 void setSide(SellSideNewOrderSingle.Side side)
          Sets the side.
 void setTifTimestamp(long tifTimestamp)
          Sets the tif timestamp.
 void setTimeInForce(SellSideNewOrderSingle.TimeInForce timeInForce)
          Sets the time in force.
 void setTrader(Trader trader)
          Sets the trader.
 void setTransientValues(TransientValueSetter transientValueSetter)
          Sets the transient values.
 void setUpdatedTimestamp(long updatedTimestamp)
          Sets the updated timestamp.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SellSideNewOrderSingle

public SellSideNewOrderSingle()
Method Detail

getLastYield

public java.lang.Double getLastYield()
Gets the last yield.

Returns:
the last yield

setLastYield

public void setLastYield(java.lang.Double lastYield)
Sets the last yield.

Parameters:
lastYield - the new last yield

getSettlementDate

public java.lang.Long getSettlementDate()
Gets the settlement date.

Returns:
the settlement date

setSettlementDate

public void setSettlementDate(java.lang.Long settlementDate)
Sets the settlement date.

Parameters:
settlementDate - the new settlement date

getLeaveQuantity

public double getLeaveQuantity()
Gets the leave quantity.

Returns:
the leave quantity

getNewLimit

public java.lang.Double getNewLimit()
Gets the new limit.

Returns:
the new limit

setNewLimit

public void setNewLimit(java.lang.Double newLimit)
Sets the new limit.

Parameters:
newLimit - the new new limit

getNewQuantity

public java.lang.Double getNewQuantity()
Gets the new quantity.

Returns:
the new quantity

setNewQuantity

public void setNewQuantity(java.lang.Double newQuantity)
Sets the new quantity.

Parameters:
newQuantity - the new new quantity

getMinQuantity

public double getMinQuantity()
Gets the min quantity.

Returns:
the min quantity

getNewOrderId

public java.lang.String getNewOrderId()
Gets the new order id.

Returns:
the new order id

setNewOrderId

public void setNewOrderId(java.lang.String newOrderId)
Sets the new order id.

Parameters:
newOrderId - the new new order id

setMinQuantity

public void setMinQuantity(double minQuantity)
Sets the min quantity.

Parameters:
minQuantity - the new min quantity

setLeaveQuantity

public void setLeaveQuantity(double leaveQuantity)
Sets the leave quantity.

Parameters:
leaveQuantity - the new leave quantity

getTifTimestamp

public long getTifTimestamp()
Gets the tif timestamp.

Returns:
the tif timestamp

setTifTimestamp

public void setTifTimestamp(long tifTimestamp)
Sets the tif timestamp.

Parameters:
tifTimestamp - the new tif timestamp

getfUser

public FUser getfUser()
Gets the f user.

Returns:
the f user

setfUser

public void setfUser(FUser fUser)
Sets the f user.

Parameters:
fUser - the new f user

getCreatedTimestamp

public long getCreatedTimestamp()
Gets the created timestamp.

Returns:
the created timestamp

setCreatedTimestamp

public void setCreatedTimestamp(long createdTimestamp)
Sets the created timestamp.

Parameters:
createdTimestamp - the new created timestamp

getUpdatedTimestamp

public long getUpdatedTimestamp()
Gets the updated timestamp.

Returns:
the updated timestamp

setUpdatedTimestamp

public void setUpdatedTimestamp(long updatedTimestamp)
Sets the updated timestamp.

Parameters:
updatedTimestamp - the new updated timestamp

getId

public long getId()
Gets the id.

Returns:
the id

setId

public void setId(long id)
Sets the id.

Parameters:
id - the new id

getSellSideBook

public SellSideBook getSellSideBook()
Gets the sell side book.

Returns:
the sell side book

setSellSideBook

public void setSellSideBook(SellSideBook sellSideBook)
Sets the sell side book.

Parameters:
sellSideBook - the new sell side book

getOrderId

public java.lang.String getOrderId()
Gets the order id.

Returns:
the order id

setOrderId

public void setOrderId(java.lang.String orderId)
Sets the order id.

Parameters:
orderId - the new order id

getCounterpartyOrderId

public java.lang.String getCounterpartyOrderId()
Gets the counterparty order id.

Returns:
the counterparty order id

setCounterpartyOrderId

public void setCounterpartyOrderId(java.lang.String counterpartyOrderId)
Sets the counterparty order id.

Parameters:
counterpartyOrderId - the new counterparty order id

getSecurity

public FSecurity getSecurity()
Gets the security.

Returns:
the security

setSecurity

public void setSecurity(FSecurity security)
Sets the security.

Parameters:
security - the new security

getCounterparty

public Counterparty getCounterparty()
Gets the counterparty.

Returns:
the counterparty

setCounterparty

public void setCounterparty(Counterparty counterparty)
Sets the counterparty.

Parameters:
counterparty - the new counterparty

getTrader

public Trader getTrader()
Gets the trader.

Returns:
the trader

setTrader

public void setTrader(Trader trader)
Sets the trader.

Parameters:
trader - the new trader

getMarketInterface

public AbstractAcceptor getMarketInterface()
Gets the market interface.

Returns:
the market interface

setMarketInterface

public void setMarketInterface(AbstractAcceptor marketInterface)
Sets the market interface.

Parameters:
marketInterface - the new market interface

getOrderStatus

public SellSideNewOrderSingle.OrderStatus getOrderStatus()
Gets the order status.

Returns:
the order status

setOrderStatus

public void setOrderStatus(SellSideNewOrderSingle.OrderStatus orderStatus)
Sets the order status.

Parameters:
orderStatus - the new order status

getLimit

public java.lang.Double getLimit()
Gets the limit.

Returns:
the limit

setLimit

public void setLimit(java.lang.Double limit)
Sets the limit.

Parameters:
limit - the new limit

getTimeInForce

public SellSideNewOrderSingle.TimeInForce getTimeInForce()
Gets the time in force.

Returns:
the time in force

setTimeInForce

public void setTimeInForce(SellSideNewOrderSingle.TimeInForce timeInForce)
Sets the time in force.

Parameters:
timeInForce - the new time in force

getOrderQuantity

public double getOrderQuantity()
Gets the order quantity.

Returns:
the order quantity

setOrderQuantity

public void setOrderQuantity(double orderQuantity)
Sets the order quantity.

Parameters:
orderQuantity - the new order quantity

getCumulativeQuantity

public double getCumulativeQuantity()
Gets the cumulative quantity.

Returns:
the cumulative quantity

setCumulativeQuantity

public void setCumulativeQuantity(double cumulativeQuantity)
Sets the cumulative quantity.

Parameters:
cumulativeQuantity - the new cumulative quantity

getLastQuantity

public java.lang.Double getLastQuantity()
Gets the last quantity.

Returns:
the last quantity

setLastQuantity

public void setLastQuantity(java.lang.Double lastQuantity)
Sets the last quantity.

Parameters:
lastQuantity - the new last quantity

getLastPrice

public java.lang.Double getLastPrice()
Gets the last price.

Returns:
the last price

setLastPrice

public void setLastPrice(java.lang.Double lastPrice)
Sets the last price.

Parameters:
lastPrice - the new last price

getSide

public SellSideNewOrderSingle.Side getSide()
Gets the side.

Returns:
the side

setSide

public void setSide(SellSideNewOrderSingle.Side side)
Sets the side.

Parameters:
side - the new side

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable<java.lang.Object>

makeEager

public void makeEager()
Description copied from interface: PersistenceInterface
Make eager.

Specified by:
makeEager in interface PersistenceInterface

getWriteRoles

public java.util.Set<FRole> getWriteRoles()
Description copied from interface: PersistenceInterface
Gets the write roles.

Specified by:
getWriteRoles in interface PersistenceInterface
Returns:
the write roles

getReadRoles

public java.util.Set<FRole> getReadRoles()
Description copied from interface: PersistenceInterface
Gets the read roles.

Specified by:
getReadRoles in interface PersistenceInterface
Returns:
the read roles

getExecuteRoles

public java.util.Set<FRole> getExecuteRoles()
Description copied from interface: PersistenceInterface
Gets the execute roles.

Specified by:
getExecuteRoles in interface PersistenceInterface
Returns:
the execute roles

setTransientValues

public void setTransientValues(TransientValueSetter transientValueSetter)
Description copied from interface: PersistenceInterface
Sets the transient values.

Specified by:
setTransientValues in interface PersistenceInterface
Parameters:
transientValueSetter - the new transient values