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