Package org.marketcetera.trade.service
Interface OrderSummaryService
-
public interface OrderSummaryServiceProvides order summary services.- Since:
- $Release$
- Version:
- $Id$
- Author:
- Colin DuPlantis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(OrderSummary inOrderStatus)Delete the given order status value.Optional<? extends OrderSummary>findByOrderId(OrderID inOrderId)Find the order summaries with the given order id.OrderSummaryfindByReportId(long inReportId)Find the order summary with the given report id.List<OrderSummary>findByRootOrderId(OrderID inOrderId)Find the order summary values with the given root order id.OrderSummaryfindByRootOrderIdAndOrderId(OrderID inRootID, OrderID inOrderID)Find the order summary with the given root order id and individual order id.OrderSummaryfindFirstByRootOrderId(OrderID inRootOrderId)Find the order status of the first order in the given order chain.OrderSummaryfindMostRecentByRootOrderId(OrderID inRootOrderId)Find the order status of the most recent order in the given order chain.OrderSummaryfindMostRecentExecutionByRootOrderId(OrderID inRootOrderId)Find the most recent execution by the given root order id.CollectionPageResponse<OrderSummary>findOpenOrders(PageRequest inPageRequest)Find the open orders using the given page attributes.List<Report>findReportByOrderStatusIn(User inViewer, Set<OrderStatus> inOrderStatusValues)Find the reports that have an open order status.OrderSummarysave(OrderSummary inOrderStatus)Save the order status value.OrderSummaryupdate(OrderSummary inOrderStatus, Report inReport, ReportBase inReportBase)Update the order status value with the given reports.
-
-
-
Method Detail
-
findByReportId
OrderSummary findByReportId(long inReportId)
Find the order summary with the given report id.- Parameters:
inReportId- alongvalue- Returns:
- an
OrderStatusvalue ornull
-
findByOrderId
Optional<? extends OrderSummary> findByOrderId(OrderID inOrderId)
Find the order summaries with the given order id.Be aware that there is no FIX-requirement that the order ID be unique between venues or days. Therefore, this method might not retrieve unique results.
- Parameters:
inOrderId- anOrderIDvalue- Returns:
- an
Optional<OrderStatus>value
-
findMostRecentByRootOrderId
OrderSummary findMostRecentByRootOrderId(OrderID inRootOrderId)
Find the order status of the most recent order in the given order chain.- Parameters:
inRootOrderId- anOrderIDvalue- Returns:
- an
OrderStatusvalue ornull
-
findMostRecentExecutionByRootOrderId
OrderSummary findMostRecentExecutionByRootOrderId(OrderID inRootOrderId)
Find the most recent execution by the given root order id.- Parameters:
inRootOrderId- anOrderIDvalue- Returns:
- an
OrderStatusvalue
-
save
OrderSummary save(OrderSummary inOrderStatus)
Save the order status value.- Parameters:
inOrderStatus- anOrderStatusvalue- Returns:
- an
OrderStatusvalue
-
delete
void delete(OrderSummary inOrderStatus)
Delete the given order status value.- Parameters:
inOrderStatus- anOrderStatusvalue
-
findFirstByRootOrderId
OrderSummary findFirstByRootOrderId(OrderID inRootOrderId)
Find the order status of the first order in the given order chain.- Parameters:
inRootOrderId- anOrderIDvalue- Returns:
- an
OrderStatusvalue ornull
-
findReportByOrderStatusIn
List<Report> findReportByOrderStatusIn(User inViewer, Set<OrderStatus> inOrderStatusValues)
Find the reports that have an open order status.- Parameters:
inViewer- aSimpleUservalueinOrderStatusValues- aSet<OrderStatus>value- Returns:
- a
List<Report>value
-
findByRootOrderIdAndOrderId
OrderSummary findByRootOrderIdAndOrderId(OrderID inRootID, OrderID inOrderID)
Find the order summary with the given root order id and individual order id.- Parameters:
inRootID- anOrderIDvalueinOrderID- anOrderIDvalue- Returns:
- an
OrderStatusvalue ornull
-
findOpenOrders
CollectionPageResponse<OrderSummary> findOpenOrders(PageRequest inPageRequest)
Find the open orders using the given page attributes.- Parameters:
inPageRequest- aPageRequestvalue- Returns:
- a
CollectionPageResponse<OrderSummary>value
-
update
OrderSummary update(OrderSummary inOrderStatus, Report inReport, ReportBase inReportBase)
Update the order status value with the given reports.- Parameters:
inOrderStatus- anOrderStatusvalueinReport- aReportvalueinReportBase- aReportBasevalue- Returns:
- an
OrderStatusvalue
-
findByRootOrderId
List<OrderSummary> findByRootOrderId(OrderID inOrderId)
Find the order summary values with the given root order id.- Parameters:
inOrderId- anOrderIDvalue- Returns:
- a
List<OrderSummaryvalue
-
-