public interface ConfigRepository
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.
|
ShopConfig saveEntity(ShopConfig entity)
entity
- Entity to save.DataPersistenceException
- in case there was an
error while persisting the entity.ShopConfig getOrCreateEntity(GUID shopGuid)
shopGuid
- GUID of the desired shop.javax.persistence.PersistenceException
- in case there was an
error while persisting the entity.ShopConfig getEntity(GUID shopGuid)
shopGuid
- GUID of the desired entity.javax.persistence.EntityNotFoundException
- in case no entity
with the passed identifier was found.DataPersistenceException
- in case there was an
error while persisting the entity.