Import-pipeline table provider that inserts PointsDebit rows, debiting points from a profile or organisation as an import pipeline runs. Only insert is implemented; update, delete, updateOrInsert and convertToRow all throw UnsupportedOperationException. Registered under the provider id "pointsDebitFast" and looked up by a DatabaseUpdateStep or DatabaseSourceStep configured with that id. It is the bulk-import counterpart of the "pointsDebit" provider: inserts are written through a StatelessSession shared across the pipeline run rather than the regular Hibernate session, and once the pipeline finishes each affected reward's points balance is recalculated exactly once per entity.

Implements: DatabaseTableProvider


Properties

PropertyReturnsDescription
providerIdStringProvider id this class is registered under. Used to select it from a DatabaseUpdateStep or DatabaseSourceStep configuration.
queryParametersList<TableParameter>Query parameters this provider accepts when building its source criteria: startDate and finishDate, both filtering on the debit's issuedDate.
tableFieldsList<TableParameter>Not implemented; this provider's supported insert columns (pointsBucketName, awardTo, amount, reason, reasonCode and issuedDate) are read directly from the row rather than being described here.

Methods

getProviderId()

Returns: String

Provider id this class is registered under. Used to select it from a DatabaseUpdateStep or DatabaseSourceStep configuration.

getQueryParameters()

Returns: List<TableParameter>

Query parameters this provider accepts when building its source criteria: startDate and finishDate, both filtering on the debit's issuedDate.

getTableFields()

Returns: List<TableParameter>

Not implemented; this provider's supported insert columns (pointsBucketName, awardTo, amount, reason, reasonCode and issuedDate) are read directly from the row rather than being described here.

To get full access to the Kademi Hub existing customers can login here, or new customers can register here.