@Service(value="blStoreService") public class StoreServiceImpl extends Object implements StoreService
Constructor and Description |
---|
StoreServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Map<Store,Double> |
findStoresByAddress(Address searchAddress,
double distance) |
List<Store> |
readAllStores() |
List<Store> |
readAllStoresByState(String state) |
Store |
readStoreById(Long id) |
Store |
readStoreByStoreCode(String storeCode) |
Store |
readStoreByStoreName(String storeName) |
Store |
saveStore(Store store) |
public Store readStoreById(Long id)
readStoreById
in interface StoreService
public Store readStoreByStoreName(String storeName)
readStoreByStoreName
in interface StoreService
public Store readStoreByStoreCode(String storeCode)
readStoreByStoreCode
in interface StoreService
public List<Store> readAllStores()
readAllStores
in interface StoreService
public List<Store> readAllStoresByState(String state)
readAllStoresByState
in interface StoreService
@Transactional(value="blTransactionManager") public Store saveStore(Store store)
saveStore
in interface StoreService
public Map<Store,Double> findStoresByAddress(Address searchAddress, double distance)
findStoresByAddress
in interface StoreService
Copyright © 2022. All rights reserved.