com.elasticpath.service
Interface EpPersistenceService

All Superinterfaces:
EpService
All Known Subinterfaces:
AttributeService, BrandService, BrowsingService, CategoryService, CategoryTypeService, CmUserService, CustomerGroupService, CustomerService, CustomerSessionService, DigitalAssetAuditService, ImportGuidHelper, ImportJobRunner, ImportService, InventoryAuditService, InventoryService, LazyLoadHelper, OrderService, ProductAssociationService, ProductRecommendationService, ProductService, ProductSkuService, ProductTypeService, RuleActionService, RuleConditionService, RuleElementService, RuleParameterService, RuleService, RuleSetService, SfSearchLogService, ShippingRegionService, ShippingServiceLevelService, ShoppingCartService, SkuOptionService, TaxCategoryService, TaxCodeService, TaxJurisdictionService, TimeService, TopSellerService, UserRoleService
All Known Implementing Classes:
AbstractEpPersistenceServiceImpl, AbstractIndexBuildServiceImpl, AbstractIndexServiceImpl, AbstractSpellIndexServiceImpl, AttributeServiceImpl, BrandServiceImpl, BrowsingServiceImpl, CategoryIndexBuildServiceImpl, CategoryServiceImpl, CategoryTypeServiceImpl, CmUserServiceImpl, CustomerGroupServiceImpl, CustomerIndexBuildServiceImpl, CustomerServiceImpl, CustomerSessionServiceImpl, DatabaseServerTimeServiceImpl, DigitalAssetAuditServiceImpl, ImportGuidHelperImpl, ImportJobRunnerCategoryImpl, ImportJobRunnerCustomerImpl, ImportJobRunnerProductImpl, ImportJobRunnerProductSkuImpl, ImportServiceImpl, InventoryAuditServiceImpl, InventoryServiceImpl, LazyLoadHelperImpl, OrderIndexBuildServiceImpl, OrderServiceImpl, ProductAssociationServiceImpl, ProductIndexForCmUseBuildServiceImpl, ProductIndexForSfUseBuildServiceImpl, ProductRecommendationServiceImpl, ProductServiceImpl, ProductSkuServiceImpl, ProductSpellIndexForSfUseServiceImpl, ProductTypeServiceImpl, RuleActionServiceImpl, RuleConditionServiceImpl, RuleElementServiceImpl, RuleParameterServiceImpl, RuleServiceImpl, RuleSetServiceImpl, SfSearchLogServiceImpl, ShippingRegionServiceImpl, ShippingServiceLevelServiceImpl, ShoppingCartServiceImpl, SkuOptionServiceImpl, TaxCategoryServiceImpl, TaxCodeServiceImpl, TaxJurisdictionServiceImpl, TopSellerServiceImpl, UserRoleServiceImpl

public interface EpPersistenceService
extends EpService

EpPersistenceService serves as the base interface for all services manipulating persistable domain models.


Method Summary
 java.lang.Object getObject(long uid)
          Get a persistent instance with the given id.
 PersistenceEngine getPersistenceEngine()
          Returns the persistence engine.
 void setPersistenceEngine(PersistenceEngine persistenceEngine)
          Sets the persistence engine.
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Method Detail

getObject

java.lang.Object getObject(long uid)
                           throws EpServiceException
Get a persistent instance with the given id.

Parameters:
uid - the persistent instance uid
Returns:
the persistent instance if exists, otherwise null
Throws:
EpServiceException - - in case of any errors

getPersistenceEngine

PersistenceEngine getPersistenceEngine()
Returns the persistence engine.

Returns:
the persistence engine.

setPersistenceEngine

void setPersistenceEngine(PersistenceEngine persistenceEngine)
Sets the persistence engine.

Parameters:
persistenceEngine - the persistence engine to set.