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 TypeMethodDescriptionintdelete(Class entityClass, Serializable id) intget(Class entityClass, Serializable id) voidreset()
-
Constructor Details
-
MemoryStorage
public MemoryStorage()
-
-
Method Details
-
get
-
create
- Specified by:
createin interfaceStorage- Throws:
CreateException
-
update
- Specified by:
updatein interfaceStorage- Throws:
UpdateException
-
merge
- Specified by:
mergein interfaceStorage- Throws:
StorageException
-
delete
- Specified by:
deletein interfaceStorage- Throws:
CreateException
-
delete
- Specified by:
deletein interfaceStorage- Throws:
CreateException
-
findAll
-
reset
public void reset()
-