Package org.exoplatform.wallet.dao
Class WalletTransactionDAO
- java.lang.Object
-
- org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<TransactionEntity,Long>
-
- org.exoplatform.wallet.dao.WalletTransactionDAO
-
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<TransactionEntity,Long>
public class WalletTransactionDAO extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<TransactionEntity,Long>
-
-
Constructor Summary
Constructors Constructor Description WalletTransactionDAO()
-
Method Summary
-
-
-
Method Detail
-
getContractTransactions
public List<TransactionEntity> getContractTransactions(String contractAddress, String contractMethodName, int limit)
-
getTransactions
public List<TransactionEntity> getTransactions(long networkId, int limit)
-
getWalletTransactions
public List<TransactionEntity> getWalletTransactions(long networkId, String address, String contractAddress, String contractMethodName, int limit, boolean onlyPending, boolean includeAdministrationTransactions)
-
getPendingEtherTransactions
public List<TransactionEntity> getPendingEtherTransactions(String address, long networkId)
-
getPendingWalletTransactionsNotSent
public List<TransactionEntity> getPendingWalletTransactionsNotSent(String address, long networkId)
-
getPendingWalletTransactionsSent
public List<TransactionEntity> getPendingWalletTransactionsSent(String address, long networkId)
-
countContractPendingTransactionsSent
public long countContractPendingTransactionsSent(long networkId)
-
countContractPendingTransactionsToSend
public long countContractPendingTransactionsToSend(long networkId)
-
getTransactionByHash
public TransactionEntity getTransactionByHash(String hash)
-
getPendingTransactionByHash
public TransactionEntity getPendingTransactionByHash(String hash)
-
getPendingTransactionsWithSameNonce
public List<TransactionEntity> getPendingTransactionsWithSameNonce(long networkId, String transactionHash, String fromAddress, long nonce)
-
countPendingTransactionsWithSameNonce
public long countPendingTransactionsWithSameNonce(long networkId, String transactionHash, String fromAddress, long nonce)
-
getMaxUsedNonce
public long getMaxUsedNonce(long networkId, String fromAddress)
-
countReceivedContractAmount
public double countReceivedContractAmount(String contractAddress, String address, ZonedDateTime startDate, ZonedDateTime endDate)
-
countSentContractAmount
public double countSentContractAmount(String contractAddress, String address, ZonedDateTime startDate, ZonedDateTime endDate)
-
getTransactionsToSend
public List<TransactionEntity> getTransactionsToSend(long networkId)
-
countPendingTransactionSent
public long countPendingTransactionSent(long networkId, String fromAddress)
-
countPendingTransactionAsSender
public long countPendingTransactionAsSender(long networkId, String fromAddress)
-
-