Package com.avoka.fc.core.dao
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:
TransactionHistory
-
-
Field Summary
-
Fields inherited from class com.avoka.core.dao.BaseDao
FETCH_LIMIT, STATEMENT_MAX_NO_PARAMETERS
-
-
Constructor Summary
Constructors Constructor Description TransactionHistoryPublisherDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.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).-
Methods inherited from class com.avoka.fc.core.dao.AbstractDao
andFilterClientExcludeNull, andFilterClientIncludeNull, andFilterClientOnly, isClientAccessAllowed, performQueryConfigCached
-
Methods inherited from class com.avoka.core.dao.BaseDao
addOrdering, addOrderingCaseInsensitive, addOrderingCaseSensitive, andQueryBetween, andQueryInExp, andQueryInExp, andQueryLikeIgnoreCaseExp, andQueryMatchDbExp, andQueryMatchExp, andQueryMatchIsNotNull, andQueryMatchIsNull, andQueryNoMatchExp, andQueryNotTrue, deleteObject, deleteObjects, findObject, getDataContext, getFetchLimit, getLogger, getObjectForPK, newObject, orQueryLikeIgnoreCaseExp, orQueryMatchExp, performNamedQuery, performNamedQuery, performNamedQuery, performNamedQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performNonSelectingQuery, performQuery, performQuery, performQuery, registerNewObject, setCacheStrategy, setFetchLimit, setLocalCacheStrategy, setLocalCacheStrategy, setSharedCacheStrategy, toMap, toMap
-
-
-
-
Method Detail
-
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
-
-