public class ShopRepositoryImpl extends SpringRepositoryWrapper<ShopStatus,GUID> implements ShopRepository
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DATABASE_FAIL_MSG |
private static java.lang.String |
SHOP_NOT_FOUND_MSG |
repository
Constructor and Description |
---|
ShopRepositoryImpl(javax.inject.Provider<ShopSpringRepository> shopProvider) |
Modifier and Type | Method and Description |
---|---|
ShopStatus |
createEntity(GUID shopGuid)
Creates a new entry for the passed identifier.
|
ShopStatus |
getEntity(GUID shopGuid)
Gets the entity for the passed identifier from the database.
|
ShopStatus |
getOrCreateEntity(GUID shopGuid)
Gets the entity for the passed identifier from the database.
|
ShopStatus |
saveEntity(ShopStatus entity)
Persists the passed entity in the underlying database.
|
boolean |
shopExists(GUID shopGuid)
Check if the shop already exists
|
count, delete, delete, delete, deleteAll, exists, findAll, findAll, findOne, save, save
private static final java.lang.String SHOP_NOT_FOUND_MSG
private static final java.lang.String DATABASE_FAIL_MSG
@Inject public ShopRepositoryImpl(javax.inject.Provider<ShopSpringRepository> shopProvider)
public ShopStatus saveEntity(ShopStatus entity)
ShopRepository
saveEntity
in interface ShopRepository
entity
- Entity to save.public ShopStatus getEntity(GUID shopGuid)
ShopRepository
getEntity
in interface ShopRepository
shopGuid
- GUID of the desired entity.public ShopStatus getOrCreateEntity(GUID shopGuid)
ShopRepository
getOrCreateEntity
in interface ShopRepository
shopGuid
- GUID of the desired entity.public boolean shopExists(GUID shopGuid)
ShopRepository
shopExists
in interface ShopRepository
public ShopStatus createEntity(GUID shopGuid)
ShopRepository
createEntity
in interface ShopRepository