Import-pipeline table provider for product categories, inserting, updating, deleting or upserting Category rows as an import pipeline runs. Registered under the provider id "category" and looked up by a DatabaseUpdateStep or DatabaseSourceStep configured with that id. Each row is matched to an existing Category by its name, falling back to a match on title when no category has that name, and is always scoped to the pipeline's website organisation.
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. |
| tableFields | List<TableParameter> | Describes the row columns this provider accepts for insert, update, delete and updateOrInsert: name (the category's unique identifier), title, notes and parentCategory. |
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.
getTableFields()
Returns: List<TableParameter>
Describes the row columns this provider accepts for insert, update, delete and updateOrInsert: name (the category's unique identifier), title, notes and parentCategory.