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