public class OrderRepositoryImpl extends SpringRepositoryWrapper<OrderStatus,java.lang.Integer> implements OrderRepository
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
DATABASE_FAIL_MSG |
private static java.lang.String |
ORDER_NOT_FOUND_MSG |
repository
Constructor and Description |
---|
OrderRepositoryImpl(javax.inject.Provider<OrderSpringRepository> provider) |
Modifier and Type | Method and Description |
---|---|
OrderStatus |
findByShopIdAndOrderId(GUID shopGuid,
GUID orderGuid) |
OrderStatus |
getEntity(GUID shopGuid,
GUID orderGuid)
Gets the entity for the passed identifier from the database.
|
OrderStatus |
getOrCreateEntity(GUID shopGuid,
GUID orderGuid)
Gets the entity for the passed identifier from the database.
|
OrderStatus |
saveEntity(OrderStatus entity)
Persists the passed entity in the underlying database.
|
count, delete, delete, delete, deleteAll, exists, findAll, findAll, findOne, save, save
private static final java.lang.String ORDER_NOT_FOUND_MSG
private static final java.lang.String DATABASE_FAIL_MSG
@Inject public OrderRepositoryImpl(javax.inject.Provider<OrderSpringRepository> provider)
public OrderStatus findByShopIdAndOrderId(GUID shopGuid, GUID orderGuid)
findByShopIdAndOrderId
in interface OrderSpringRepository
public OrderStatus saveEntity(OrderStatus entity)
OrderRepository
saveEntity
in interface OrderRepository
entity
- Entity to save.public OrderStatus getOrCreateEntity(GUID shopGuid, GUID orderGuid)
OrderRepository
getOrCreateEntity
in interface OrderRepository
shopGuid
- GUID of the desired shop.orderGuid
- Identifier of the desired order.public OrderStatus getEntity(GUID shopGuid, GUID orderGuid)
OrderRepository
getEntity
in interface OrderRepository
shopGuid
- GUID of the desired entity.orderGuid
- Identifier of the desired order.