Class CustomerRepository
- java.lang.Object
-
- org.powertac.visualizer.repository_ptac.CustomerRepository
-
- All Implemented Interfaces:
RecycleRepository<Customer>
,org.springframework.data.repository.Repository<Customer,Long>
@Service public class CustomerRepository extends Object implements RecycleRepository<Customer>
- Author:
- Jurica Babic, Govert Buijs, Erik Kemperman
-
-
Constructor Summary
Constructors Constructor Description CustomerRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Customer>
findAll()
Customer
findById(long idCustomerInfo)
Customer
findByName(String brokerName)
void
recycle()
Customer
save(Customer customer)
-
-
-
Method Detail
-
save
public Customer save(Customer customer)
- Specified by:
save
in interfaceRecycleRepository<Customer>
-
findByName
public Customer findByName(String brokerName)
- Specified by:
findByName
in interfaceRecycleRepository<Customer>
-
findById
public Customer findById(long idCustomerInfo)
- Specified by:
findById
in interfaceRecycleRepository<Customer>
-
findAll
public List<Customer> findAll()
- Specified by:
findAll
in interfaceRecycleRepository<Customer>
-
recycle
public void recycle()
- Specified by:
recycle
in interfaceRecycleRepository<Customer>
-
-