Class TransactionHistoryPublisherDao

java.lang.Object
com.avoka.core.dao.BaseDao
com.avoka.fc.core.dao.AbstractDao
com.avoka.fc.core.dao.TransactionHistoryPublisherDao

public class TransactionHistoryPublisherDao extends AbstractDao
Provides a DAO for the TransactionHistory entity with regards to transaction history publishing.
Since:
5.1.0
See Also:
  • Constructor Details

    • TransactionHistoryPublisherDao

      public TransactionHistoryPublisherDao()
  • Method Details

    • getUnpublishedHistoryDataRows

      public List<Map<String,Object>> getUnpublishedHistoryDataRows(int fetchLimit)
      Return a list of Cayenne DataRow map objects, which are disconnected from the data context, and have an additional TM license_id which provides the TM Instance GUID identifier. This will enable global multi TM instance deployments to correlate transaction history data
      Parameters:
      fetchLimit - the maximum limit to limit the number of result objects
      Returns:
      list of Cayenne DataRow map objects, which are disconnected from the data context
      Since:
      5.1.0
    • markAsPublished

      public void markAsPublished(List<Number> transactionHistoryIdSet)
      Updates a set of transaction history entries to have been published to a data warehouse (status is set to "Completed", publish time is set to the current time). Note that committing the changes is responsibility of the calling code
      Parameters:
      transactionHistoryIdSet - the list of transaction history OIDs that needs to be marked as published (required)
      Since:
      5.1.0