Package edu.yu.marketmaker.persistence
Class FillEntity
java.lang.Object
edu.yu.marketmaker.persistence.FillEntity
- All Implemented Interfaces:
IdentifiableEntity<UUID>
JPA Entity for Fill records used by Hazelcast MapStore.
-
Constructor Summary
ConstructorsConstructorDescriptionNo-args constructor required by JPA.FillEntity(UUID orderId, String symbol, Side side, int quantity, double price, UUID quoteId, long createdAt) All-args constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic FillEntityfromRecord(Fill fill) Static helper to create an Entity from a Record.longgetId()Returns the unique identifier for this entity.doublegetPrice()intgetSide()voidsetCreatedAt(long createdAt) voidsetOrderId(UUID orderId) voidsetPrice(double price) voidsetQuantity(int quantity) voidsetQuoteId(UUID quoteId) voidvoidtoRecord()Converts this JPA entity back into the immutable Fill record.toString()
-
Constructor Details
-
Method Details
-
getId
Description copied from interface:IdentifiableEntityReturns the unique identifier for this entity.- Specified by:
getIdin interfaceIdentifiableEntity<UUID>- Returns:
- the unique key
-
toRecord
Converts this JPA entity back into the immutable Fill record.- Returns:
- A Fill record.
-
fromRecord
Static helper to create an Entity from a Record.- Parameters:
fill- The fill record.- Returns:
- A new FillEntity.
-
getOrderId
-
setOrderId
-
getSymbol
-
setSymbol
-
getSide
-
setSide
-
getQuantity
public int getQuantity() -
setQuantity
public void setQuantity(int quantity) -
getPrice
public double getPrice() -
setPrice
public void setPrice(double price) -
getQuoteId
-
setQuoteId
-
getCreatedAt
public long getCreatedAt() -
setCreatedAt
public void setCreatedAt(long createdAt) -
toString
-