Package com.okta.authn.sdk.example.dao
Class DefaultStormtrooperDao
- java.lang.Object
-
- com.okta.authn.sdk.example.dao.DefaultStormtrooperDao
-
- All Implemented Interfaces:
StormtrooperDao
public final class DefaultStormtrooperDao extends Object implements StormtrooperDao
Dummy DAO that will generate 50 random Stormtroopers upon creation.
-
-
Constructor Summary
Constructors Constructor Description DefaultStormtrooperDao()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stormtrooper
addStormtrooper(Stormtrooper stormtrooper)
boolean
deleteStormtrooper(String id)
Stormtrooper
getStormtrooper(String id)
Collection<Stormtrooper>
listStormtroopers()
Stormtrooper
updateStormtrooper(String id, Stormtrooper stormtrooper)
-
-
-
Method Detail
-
listStormtroopers
public Collection<Stormtrooper> listStormtroopers()
- Specified by:
listStormtroopers
in interfaceStormtrooperDao
-
getStormtrooper
public Stormtrooper getStormtrooper(String id)
- Specified by:
getStormtrooper
in interfaceStormtrooperDao
-
addStormtrooper
public Stormtrooper addStormtrooper(Stormtrooper stormtrooper)
- Specified by:
addStormtrooper
in interfaceStormtrooperDao
-
updateStormtrooper
public Stormtrooper updateStormtrooper(String id, Stormtrooper stormtrooper)
- Specified by:
updateStormtrooper
in interfaceStormtrooperDao
-
deleteStormtrooper
public boolean deleteStormtrooper(String id)
- Specified by:
deleteStormtrooper
in interfaceStormtrooperDao
-
-