public interface TransactionDao extends ReadWriteDao<Transaction>
Transaction
objects.Transaction
Modifier and Type | Method and Description |
---|---|
java.util.List<Transaction> |
findAllTradesInclSecurity()
Finds all Trades (either
BUY , SELL , EXPIRATION or TRANSFER )
with their corresponding Security fetched. |
Transaction |
findByExtId(java.lang.String extId)
Finds transaction by its extId.
|
Transaction |
findById(long id)
Finds transaction by its id.
|
java.util.List<Transaction> |
findByMaxDate(java.time.ZonedDateTime maxDate)
Finds all Transaction before the specified
maxDate |
java.util.List<Transaction> |
findByOrderIntId(java.lang.String orderIntId)
Finds transaction by internal Order ID
|
java.util.List<Transaction> |
findByStrategy(java.lang.String strategyName)
Finds all Transactions of the give strategy
|
java.util.List<Transaction> |
findByStrategyAndMaxDate(java.lang.String strategyName,
java.time.ZonedDateTime maxDate)
Finds all Transaction of a specified Strategy before the specified
maxDate |
java.util.List<Transaction> |
findCashflowsByStrategyAndMinDate(java.lang.String strategyName,
java.time.ZonedDateTime minDate)
Finds all non-trade Transactions of a particular Strategy after the defined
minDate |
java.util.List<Transaction> |
findDailyTransactions()
Finds all Transactions of the current day in descending
dateTime order. |
java.util.List<Transaction> |
findDailyTransactions(int limit)
Does the same thing as
findDailyTransactions() with an
additional argument called limit . |
java.util.List<Transaction> |
findDailyTransactionsByStrategy(java.lang.String strategyName)
Finds all Transactions of the current day of a specific Strategy in descending
dateTime order. |
java.util.List<Transaction> |
findDailyTransactionsByStrategy(java.lang.String strategyName,
int limit)
Does the same thing as
findDailyTransactionsByStrategy(String) with an
additional argument called limit . |
java.util.List<Transaction> |
findTradesByMinDateAndMaxDate(java.time.ZonedDateTime minDate,
java.time.ZonedDateTime maxDate)
Finds all trades (BUY and SELL transactions) for the given time frame
|
java.util.List<Transaction> |
findTransactionsByMinDateAndMaxDate(java.time.ZonedDateTime minDate,
java.time.ZonedDateTime maxDate)
Finds all transactions for the given time frame
|
delete, deleteAll, deleteById, flush, merge, persist, save, saveAll
get, getLocked, load, loadAll, loadLocked, lock
java.util.List<Transaction> findByStrategy(java.lang.String strategyName)
strategyName
- The strategy namejava.util.List<Transaction> findDailyTransactions()
dateTime
order.java.util.List<Transaction> findDailyTransactions(int limit)
findDailyTransactions()
with an
additional argument called limit
. The limit
argument allows you to specify the limit when you are paging the results.limit
- The number of Futures to return. Value 0
represents no limit.java.util.List<Transaction> findDailyTransactionsByStrategy(java.lang.String strategyName)
dateTime
order.strategyName
- The strategy namejava.util.List<Transaction> findDailyTransactionsByStrategy(java.lang.String strategyName, int limit)
findDailyTransactionsByStrategy(String)
with an
additional argument called limit
. The limit
argument allows you to specify the limit when you are paging the results.strategyName
- The strategy namelimit
- The number of Futures to return. Value 0
represents no limit.java.util.List<Transaction> findAllTradesInclSecurity()
BUY
, SELL
, EXPIRATION
or TRANSFER
)
with their corresponding Security fetched.java.util.List<Transaction> findCashflowsByStrategyAndMinDate(java.lang.String strategyName, java.time.ZonedDateTime minDate)
minDate
strategyName
- The strategy nameminDate
- The minimum datejava.util.List<Transaction> findByMaxDate(java.time.ZonedDateTime maxDate)
maxDate
maxDate
- The maximum datejava.util.List<Transaction> findByStrategyAndMaxDate(java.lang.String strategyName, java.time.ZonedDateTime maxDate)
maxDate
strategyName
- The strategy namemaxDate
- The maximum datejava.util.List<Transaction> findTradesByMinDateAndMaxDate(java.time.ZonedDateTime minDate, java.time.ZonedDateTime maxDate)
minDate
- The minimum datemaxDate
- The maximum datejava.util.List<Transaction> findTransactionsByMinDateAndMaxDate(java.time.ZonedDateTime minDate, java.time.ZonedDateTime maxDate)
minDate
- The minimum datemaxDate
- The maximum dateTransaction findByExtId(java.lang.String extId)
extId
- The transaction extIdjava.util.List<Transaction> findByOrderIntId(java.lang.String orderIntId)
orderIntId
- internal Order IDTransaction findById(long id)
id
- The transaction id