Package org.stellar.anchor.sep24
Interface Sep24TransactionStore
-
public interface Sep24TransactionStoreThis interface is for the SEP adapter service to query/save the transaction document.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Sep24TransactionfindByExternalTransactionId(java.lang.String externalTransactionId)Find the Sep24Transaction by the anchor's transaction Id.Sep24TransactionfindByStellarTransactionId(java.lang.String stellarTransactionId)Find the Sep24Transaction by the stellar network transaction id (hash)Sep24TransactionfindByTransactionId(java.lang.String transactionId)Find the Sep24Transaction by transaction_idjava.util.List<Sep24Transaction>findTransactions(java.lang.String accountId, GetTransactionsRequest request)Find the transactions filtered and limited the requestSep24TransactionnewInstance()Sep24Transactionsave(Sep24Transaction sep24Transaction)Save a transaction.
-
-
-
Method Detail
-
newInstance
Sep24Transaction newInstance()
-
findByTransactionId
Sep24Transaction findByTransactionId(java.lang.String transactionId) throws SepException
Find the Sep24Transaction by transaction_id- Parameters:
transactionId- The transaction ID- Returns:
- The transaction document. null if not found.
- Throws:
SepException
-
findByStellarTransactionId
Sep24Transaction findByStellarTransactionId(java.lang.String stellarTransactionId) throws SepException
Find the Sep24Transaction by the stellar network transaction id (hash)- Parameters:
stellarTransactionId- The Stellar transaction id (hash)- Returns:
- The transaction document. null if not found.
- Throws:
SepException
-
findByExternalTransactionId
Sep24Transaction findByExternalTransactionId(java.lang.String externalTransactionId) throws SepException
Find the Sep24Transaction by the anchor's transaction Id.- Parameters:
externalTransactionId- The anchor's transaction id.- Returns:
- The transaction document. null if not found.
- Throws:
SepException
-
findTransactions
java.util.List<Sep24Transaction> findTransactions(java.lang.String accountId, GetTransactionsRequest request) throws SepException
Find the transactions filtered and limited the request- Parameters:
accountId- The Stellar account id.request- The query request.- Returns:
- The list of transaction documents. If not found, return empty list.
- Throws:
SepException
-
save
Sep24Transaction save(Sep24Transaction sep24Transaction) throws SepException
Save a transaction.- Parameters:
sep24Transaction- The transaction to be saved.- Returns:
- The saved transaction.
- Throws:
SepException- SepException.
-
-