Class FillEntity

java.lang.Object
edu.yu.marketmaker.persistence.FillEntity
All Implemented Interfaces:
IdentifiableEntity<UUID>

@Entity public class FillEntity extends Object implements IdentifiableEntity<UUID>
JPA Entity for Fill records used by Hazelcast MapStore.
  • Constructor Details

    • FillEntity

      public FillEntity()
      No-args constructor required by JPA.
    • FillEntity

      public FillEntity(UUID orderId, String symbol, Side side, int quantity, double price, UUID quoteId, long createdAt)
      All-args constructor.
  • Method Details

    • getId

      public UUID getId()
      Description copied from interface: IdentifiableEntity
      Returns the unique identifier for this entity.
      Specified by:
      getId in interface IdentifiableEntity<UUID>
      Returns:
      the unique key
    • toRecord

      public Fill toRecord()
      Converts this JPA entity back into the immutable Fill record.
      Returns:
      A Fill record.
    • fromRecord

      public static FillEntity fromRecord(Fill fill)
      Static helper to create an Entity from a Record.
      Parameters:
      fill - The fill record.
      Returns:
      A new FillEntity.
    • getOrderId

      public UUID getOrderId()
    • setOrderId

      public void setOrderId(UUID orderId)
    • getSymbol

      public String getSymbol()
    • setSymbol

      public void setSymbol(String symbol)
    • getSide

      public Side getSide()
    • setSide

      public void setSide(Side side)
    • getQuantity

      public int getQuantity()
    • setQuantity

      public void setQuantity(int quantity)
    • getPrice

      public double getPrice()
    • setPrice

      public void setPrice(double price)
    • getQuoteId

      public UUID getQuoteId()
    • setQuoteId

      public void setQuoteId(UUID quoteId)
    • getCreatedAt

      public long getCreatedAt()
    • setCreatedAt

      public void setCreatedAt(long createdAt)
    • toString

      public String toString()
      Overrides:
      toString in class Object