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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TickSnapshot>
findAll()
TickSnapshot
findById(long id)
TickSnapshot
findByName(String name)
void
recycle()
TickSnapshot
save(TickSnapshot ts)
-
-
-
Method Detail
-
save
public TickSnapshot save(TickSnapshot ts)
- Specified by:
save
in interfaceRecycleRepository<TickSnapshot>
-
findAll
public List<TickSnapshot> findAll()
- Specified by:
findAll
in interfaceRecycleRepository<TickSnapshot>
-
findById
public TickSnapshot findById(long id)
- Specified by:
findById
in interfaceRecycleRepository<TickSnapshot>
-
findByName
public TickSnapshot findByName(String name)
- Specified by:
findByName
in interfaceRecycleRepository<TickSnapshot>
-
recycle
public void recycle()
- Specified by:
recycle
in interfaceRecycleRepository<TickSnapshot>
-
-