org.apache.sandesha2.storage.inmemory
Class InMemoryRMDBeanMgr

java.lang.Object
  extended by org.apache.sandesha2.storage.inmemory.InMemoryRMDBeanMgr
All Implemented Interfaces:
RMBeanManager, RMDBeanMgr

public class InMemoryRMDBeanMgr
extends java.lang.Object
implements RMDBeanMgr


Field Summary
protected  InMemoryStorageManager mgr
           
 
Constructor Summary
InMemoryRMDBeanMgr(InMemoryStorageManager mgr, org.apache.axis2.context.AbstractContext context)
           
 
Method Summary
protected  void checkKeys(java.util.List findBeanList)
          This try to find conflicting entries in the current table with the passed findBean list.
protected  boolean delete(java.lang.Object key)
           
 boolean delete(java.lang.String sequenceId)
           
protected  java.util.List find(RMBean matchInfo)
           
 java.util.List find(RMDBean bean)
           
protected  RMBean findUnique(RMBean matchInfo)
           
 RMDBean findUnique(RMDBean bean)
           
protected  boolean insert(java.lang.Object key, RMBean bean)
           
 boolean insert(RMDBean bean)
           
protected  RMBean retrieve(java.lang.Object key)
           
 RMDBean retrieve(java.lang.String sequenceId)
           
 java.util.Collection retrieveAll()
           
protected  boolean update(java.lang.Object key, RMBean bean)
           
 boolean update(RMDBean bean)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mgr

protected InMemoryStorageManager mgr
Constructor Detail

InMemoryRMDBeanMgr

public InMemoryRMDBeanMgr(InMemoryStorageManager mgr,
                          org.apache.axis2.context.AbstractContext context)
Method Detail

delete

public boolean delete(java.lang.String sequenceId)
               throws SandeshaStorageException
Specified by:
delete in interface RMDBeanMgr
Throws:
SandeshaStorageException

retrieve

public RMDBean retrieve(java.lang.String sequenceId)
                 throws SandeshaStorageException
Specified by:
retrieve in interface RMDBeanMgr
Throws:
SandeshaStorageException

insert

public boolean insert(RMDBean bean)
               throws SandeshaStorageException
Specified by:
insert in interface RMDBeanMgr
Throws:
SandeshaStorageException

find

public java.util.List find(RMDBean bean)
                    throws SandeshaStorageException
Specified by:
find in interface RMDBeanMgr
Throws:
SandeshaStorageException

update

public boolean update(RMDBean bean)
               throws SandeshaStorageException
Specified by:
update in interface RMDBeanMgr
Throws:
SandeshaStorageException

retrieveAll

public java.util.Collection retrieveAll()
                                 throws SandeshaStorageException
Throws:
SandeshaStorageException

findUnique

public RMDBean findUnique(RMDBean bean)
                   throws SandeshaException
Specified by:
findUnique in interface RMDBeanMgr
Throws:
SandeshaException

insert

protected boolean insert(java.lang.Object key,
                         RMBean bean)
                  throws SandeshaStorageException
Throws:
SandeshaStorageException

delete

protected boolean delete(java.lang.Object key)
                  throws SandeshaStorageException
Throws:
SandeshaStorageException

retrieve

protected RMBean retrieve(java.lang.Object key)
                   throws SandeshaStorageException
Throws:
SandeshaStorageException

update

protected boolean update(java.lang.Object key,
                         RMBean bean)
                  throws SandeshaStorageException
Throws:
SandeshaStorageException

find

protected java.util.List find(RMBean matchInfo)
                       throws SandeshaStorageException
Throws:
SandeshaStorageException

findUnique

protected RMBean findUnique(RMBean matchInfo)
                     throws SandeshaException
Throws:
SandeshaException

checkKeys

protected void checkKeys(java.util.List findBeanList)
                  throws SandeshaStorageException
This try to find conflicting entries in the current table with the passed findBean list. Each find bean represents a key.

Parameters:
findBeanList -
Throws:
SandeshaStorageException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.