Class UserProductSkuSchemaService
java.lang.Object
dev.getelements.elements.service.goods.UserProductSkuSchemaService
- All Implemented Interfaces:
ProductSkuSchemaService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateProductSkuSchema(ProductSkuSchema productSkuSchema) Creates or returns an existingProductSkuSchema.voidDeletes aProductSkuSchemaby its database id.ensureProductSkuSchema(String schema) Idempotent upsert — finds or creates aProductSkuSchemaby its string value.Gets aProductSkuSchemaby its database id.getProductSkuSchemas(int offset, int count) Returns allProductSkuSchemarecords within the given range.voidsetProductSkuSchemaDao(ProductSkuSchemaDao productSkuSchemaDao)
-
Constructor Details
-
UserProductSkuSchemaService
public UserProductSkuSchemaService()
-
-
Method Details
-
getProductSkuSchemas
Description copied from interface:ProductSkuSchemaServiceReturns allProductSkuSchemarecords within the given range.- Specified by:
getProductSkuSchemasin interfaceProductSkuSchemaService- Parameters:
offset- the offsetcount- the count- Returns:
- a
PaginationofProductSkuSchemainstances
-
getProductSkuSchema
Description copied from interface:ProductSkuSchemaServiceGets aProductSkuSchemaby its database id.- Specified by:
getProductSkuSchemain interfaceProductSkuSchemaService- Parameters:
id- the database id- Returns:
- the
ProductSkuSchema
-
createProductSkuSchema
Description copied from interface:ProductSkuSchemaServiceCreates or returns an existingProductSkuSchema. If a schema with the same value already exists the existing record is returned, making this call idempotent.- Specified by:
createProductSkuSchemain interfaceProductSkuSchemaService- Parameters:
productSkuSchema- the schema to create- Returns:
- the created or existing
ProductSkuSchema
-
ensureProductSkuSchema
Description copied from interface:ProductSkuSchemaServiceIdempotent upsert — finds or creates aProductSkuSchemaby its string value. Payment-provider plugins should call this at startup to register their schema identifiers.- Specified by:
ensureProductSkuSchemain interfaceProductSkuSchemaService- Parameters:
schema- the schema string (e.g.com.apple.appstore)- Returns:
- the existing or newly-created
ProductSkuSchema
-
deleteProductSkuSchema
Description copied from interface:ProductSkuSchemaServiceDeletes aProductSkuSchemaby its database id.- Specified by:
deleteProductSkuSchemain interfaceProductSkuSchemaService- Parameters:
id- the database id
-
getProductSkuSchemaDao
-
setProductSkuSchemaDao
-