Import-pipeline table provider that inserts Points rows, awarding points to a profile or organisation as an import pipeline runs. Only insert is implemented; update, delete and updateOrInsert all throw UnsupportedOperationException. Registered under the provider id "pointsFast" and looked up by a DatabaseUpdateStep or DatabaseSourceStep configured with that id. It is the bulk-import counterpart of the "points" 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
| Property | Returns | Description |
|---|---|---|
| providerId | String | Provider id this class is registered under. Used to select it from a DatabaseUpdateStep or DatabaseSourceStep configuration. |
| queryParameters | List<TableParameter> | Query parameters this provider accepts when building its source criteria: startDate and finishDate, filtering on issuedDate normally or on expiryDate when expired points are requested. |
| tableFields | List<TableParameter> | Describes the row columns this provider accepts for insert: pointsBucketName (the reward to award points from, required), awardTo (the profile or organisation to award, required), reason, pointsTag, amount and issuedDate. |
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, filtering on issuedDate normally or on expiryDate when expired points are requested.
getTableFields()
Returns: List<TableParameter>
Describes the row columns this provider accepts for insert: pointsBucketName (the reward to award points from, required), awardTo (the profile or organisation to award, required), reason, pointsTag, amount and issuedDate.