biz.hammurapi.legacy.persistence
Class CompositeStorage

java.lang.Object
  extended by biz.hammurapi.legacy.persistence.CompositeStorage
All Implemented Interfaces:
Storage

public class CompositeStorage
extends java.lang.Object
implements Storage

Version:
$Revision: 1.1 $
Author:
Pavel Vlasov

Constructor Summary
CompositeStorage()
           
 
Method Summary
 void addStorage(java.lang.String key, Storage storage)
           
 java.lang.Object get(java.lang.String key)
          Retrieves object from storage
 Storage getStorage(java.lang.Class storageClass)
           
 Storage getStorage(java.lang.String storageKey)
           
 java.lang.String put(java.lang.Object o)
          Stores object to storage and returns key.
 void remove(java.lang.String key)
          Removes object from storage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeStorage

public CompositeStorage()
Method Detail

addStorage

public void addStorage(java.lang.String key,
                       Storage storage)

put

public java.lang.String put(java.lang.Object o)
                     throws PersistenceException
Description copied from interface: Storage
Stores object to storage and returns key.

Specified by:
put in interface Storage
Returns:
key. If key is null then storage could not store the object.
Throws:
PersistenceException

get

public java.lang.Object get(java.lang.String key)
                     throws PersistenceException
Description copied from interface: Storage
Retrieves object from storage

Specified by:
get in interface Storage
Returns:
Throws:
PersistenceException

remove

public void remove(java.lang.String key)
            throws PersistenceException
Description copied from interface: Storage
Removes object from storage

Specified by:
remove in interface Storage
Throws:
PersistenceException

getStorage

public Storage getStorage(java.lang.Class storageClass)

getStorage

public Storage getStorage(java.lang.String storageKey)


Copyright © 2003 Hammurapi Group. All Rights Reserved.