Class MemoryStorage
java.lang.Object
org.apache.struts2.showcase.application.MemoryStorage
- All Implemented Interfaces:
Serializable
,Storage
MemoryStorage.
Very simple in-memory persistence emulation.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
delete
(Class entityClass, Serializable id) int
get
(Class entityClass, Serializable id) void
reset()
-
Constructor Details
-
MemoryStorage
public MemoryStorage()
-
-
Method Details
-
get
-
create
- Specified by:
create
in interfaceStorage
- Throws:
CreateException
-
update
- Specified by:
update
in interfaceStorage
- Throws:
UpdateException
-
merge
- Specified by:
merge
in interfaceStorage
- Throws:
StorageException
-
delete
- Specified by:
delete
in interfaceStorage
- Throws:
CreateException
-
delete
- Specified by:
delete
in interfaceStorage
- Throws:
CreateException
-
findAll
-
reset
public void reset()
-