Class TickSnapshotRepository
java.lang.Object
org.powertac.visualizer.repository_ptac.TickSnapshotRepository
- All Implemented Interfaces:
RecycleRepository<TickSnapshot>,org.springframework.data.repository.Repository<TickSnapshot,Long>
@Service public class TickSnapshotRepository extends Object implements RecycleRepository<TickSnapshot>
- Author:
- Jurica Babic, Govert Buijs, Erik Kemperman
-
Constructor Summary
Constructors Constructor Description TickSnapshotRepository() -
Method Summary
Modifier and Type Method Description List<TickSnapshot>findAll()TickSnapshotfindById(long id)TickSnapshotfindByName(String name)voidrecycle()TickSnapshotsave(TickSnapshot ts)
-
Constructor Details
-
TickSnapshotRepository
public TickSnapshotRepository()
-
-
Method Details
-
save
- Specified by:
savein interfaceRecycleRepository<TickSnapshot>
-
findAll
- Specified by:
findAllin interfaceRecycleRepository<TickSnapshot>
-
findById
- Specified by:
findByIdin interfaceRecycleRepository<TickSnapshot>
-
findByName
- Specified by:
findByNamein interfaceRecycleRepository<TickSnapshot>
-
recycle
public void recycle()- Specified by:
recyclein interfaceRecycleRepository<TickSnapshot>
-