|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IStorage
A storage of instances of IPersistent
sub-classes.
$Id: IStorage.java,v 1.3 2005/04/07 17:28:25 supermarti Exp $
Method Summary | |
---|---|
void |
flush()
|
java.lang.String |
generateKey(java.lang.Object object)
|
java.lang.Object |
get(java.lang.String key)
Retrieves the IPersistent implementor instance that
matches the provided id. |
java.lang.Object[] |
getAll()
Retrieves all the instances of IPersistent implementors
present in the underlying storage. |
IContext |
getContext()
|
void |
insert(java.lang.Object object,
java.lang.String key)
Inserts an instance of a IPersistent implementor in the
underlying storage. |
void |
setContext(IContext context)
|
void |
update(java.lang.Object object,
java.lang.String key)
|
Method Detail |
---|
void setContext(IContext context)
IContext getContext()
void insert(java.lang.Object object, java.lang.String key) throws StorageException, DuplicateKeyException
IPersistent
implementor in the
underlying storage.
object
- The IPersistent
implementor instance to store.
StorageException
DuplicateKeyException
java.lang.String generateKey(java.lang.Object object)
void update(java.lang.Object object, java.lang.String key) throws KeyNotPresentException, StorageException
KeyNotPresentException
StorageException
java.lang.Object get(java.lang.String key) throws StorageException, KeyNotPresentException
IPersistent
implementor instance that
matches the provided id.
thePersistentId
- The provided id.
IPersistent
implementor instance that matches
the provided id, or null if not matching instance is
found.
StorageException
KeyNotPresentException
java.lang.Object[] getAll() throws StorageException
IPersistent
implementors
present in the underlying storage.
StorageException
void flush()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |