org.apache.struts2.showcase.application
Class MemoryStorage
java.lang.Object
org.apache.struts2.showcase.application.MemoryStorage
- All Implemented Interfaces:
- java.io.Serializable, Storage
public class MemoryStorage
- extends java.lang.Object
- implements Storage
MemoryStorage.
Very simple in-memory persistence emulation.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MemoryStorage
public MemoryStorage()
get
public IdEntity get(java.lang.Class entityClass,
java.io.Serializable id)
- Specified by:
get in interface Storage
create
public java.io.Serializable create(IdEntity object)
throws CreateException
- Specified by:
create in interface Storage
- Throws:
CreateException
update
public IdEntity update(IdEntity object)
throws UpdateException
- Specified by:
update in interface Storage
- Throws:
UpdateException
merge
public java.io.Serializable merge(IdEntity object)
throws StorageException
- Specified by:
merge in interface Storage
- Throws:
StorageException
delete
public int delete(java.lang.Class entityClass,
java.io.Serializable id)
throws CreateException
- Specified by:
delete in interface Storage
- Throws:
CreateException
delete
public int delete(IdEntity object)
throws CreateException
- Specified by:
delete in interface Storage
- Throws:
CreateException
findAll
public java.util.Collection findAll(java.lang.Class entityClass)
- Specified by:
findAll in interface Storage
reset
public void reset()
Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.