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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longcountPendingTransactionAsSender(long networkId, String fromAddress)intcountPendingTransactions(long networkId)longcountPendingTransactionSent(long networkId, String fromAddress)doublecountReceivedContractAmount(String contractAddress, String address, ZonedDateTime startDate, ZonedDateTime endDate)doublecountSentContractAmount(String contractAddress, String address, ZonedDateTime startDate, ZonedDateTime endDate)longcountTransactionsByNonce(long networkId, String fromAddress, long nonce)List<TransactionEntity>getContractTransactions(String contractAddress, String contractMethodName, int limit)longgetMaxUsedNonce(long networkId, String fromAddress)TransactionEntitygetPendingTransactionByHash(String hash)List<TransactionEntity>getPendingTransactions(long networkId)TransactionEntitygetTransactionByHash(String hash)List<TransactionEntity>getTransactions(long networkId, int limit)List<TransactionEntity>getTransactionsByNonce(long networkId, String fromAddress, long nonce)List<TransactionEntity>getTransactionsToSend(long networkId)List<TransactionEntity>getWalletTransactions(long networkId, String address, String contractAddress, String contractMethodName, int limit, boolean onlyPending, boolean includeAdministrationTransactions)
-
-
-
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)
-
getPendingTransactions
public List<TransactionEntity> getPendingTransactions(long networkId)
-
countPendingTransactions
public int countPendingTransactions(long networkId)
-
getTransactionByHash
public TransactionEntity getTransactionByHash(String hash)
-
getPendingTransactionByHash
public TransactionEntity getPendingTransactionByHash(String hash)
-
getTransactionsByNonce
public List<TransactionEntity> getTransactionsByNonce(long networkId, String fromAddress, long nonce)
-
countTransactionsByNonce
public long countTransactionsByNonce(long networkId, 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)
-
-