public class ConfigRepositoryImpl extends SpringRepositoryWrapper<ShopConfig,GUID> implements ConfigRepository
repository
Constructor and Description |
---|
ConfigRepositoryImpl(javax.inject.Provider<ConfigSpringRepository> provider) |
Modifier and Type | Method and Description |
---|---|
ShopConfig |
getEntity(GUID shopGuid)
Gets the entity for the passed identifier from the database.
|
ShopConfig |
getOrCreateEntity(GUID shopGuid)
Gets the entity for the passed identifier from the database.
|
ShopConfig |
saveEntity(ShopConfig entity)
Persists the passed entity in the underlying database.
|
@Inject public ConfigRepositoryImpl(javax.inject.Provider<ConfigSpringRepository> provider)
public ShopConfig saveEntity(ShopConfig entity)
ConfigRepository
saveEntity
in interface ConfigRepository
entity
- Entity to save.public ShopConfig getOrCreateEntity(GUID shopGuid)
ConfigRepository
getOrCreateEntity
in interface ConfigRepository
shopGuid
- GUID of the desired shop.public ShopConfig getEntity(GUID shopGuid)
ConfigRepository
getEntity
in interface ConfigRepository
shopGuid
- GUID of the desired entity.