Package org.powertac.common.repo
Class CustomerRepo
- java.lang.Object
- 
- org.powertac.common.repo.CustomerRepo
 
- 
- All Implemented Interfaces:
- DomainRepo
 
 @Service public class CustomerRepo extends Object implements DomainRepo Simple repository for Customer instances.- Author:
- John Collins
 
- 
- 
Constructor SummaryConstructors Constructor Description CustomerRepo()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(CustomerInfo customer)intcount()Deprecated.CustomerInfocreateCustomerInfo(String name, int population)CustomerInfofindById(long id)List<CustomerInfo>findByName(String name)CustomerInfofindByNameAndPowerType(String name, PowerType type)Collection<CustomerInfo>list()voidrecycle()Implementations must clear out the repository in preparation for a new simulation.intsize()
 
- 
- 
- 
Method Detail- 
createCustomerInfopublic CustomerInfo createCustomerInfo(String name, int population) 
 - 
addpublic void add(CustomerInfo customer) 
 - 
listpublic Collection<CustomerInfo> list() 
 - 
count@Deprecated public int count() Deprecated.
 - 
sizepublic int size() 
 - 
findByIdpublic CustomerInfo findById(long id) 
 - 
findByNamepublic List<CustomerInfo> findByName(String name) 
 - 
findByNameAndPowerTypepublic CustomerInfo findByNameAndPowerType(String name, PowerType type) 
 - 
recyclepublic void recycle() Description copied from interface:DomainRepoImplementations must clear out the repository in preparation for a new simulation.- Specified by:
- recyclein interface- DomainRepo
 
 
- 
 
-