com.opensymphony.module.propertyset.ejb
Class PropertyStoreEJB

java.lang.Object
  extended bycom.opensymphony.module.propertyset.ejb.PropertyStoreEJB
All Implemented Interfaces:
javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean

public class PropertyStoreEJB
extends java.lang.Object
implements javax.ejb.SessionBean

Session bean implementation of PropertyStore.

Makes use of ValueEntityDelegator to determine which entity beans to use for appropriate types.

Version:
$Revision: 1.3 $
Author:
Joe Walnes, Hani Suleiman
See Also:
PropertyStore, PropertyStoreHome, Serialized Form

Constructor Summary
PropertyStoreEJB()
           
 
Method Summary
 void ejbActivate()
           
 void ejbCreate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 boolean exists(java.lang.String entityName, long entityId, java.lang.String key)
           
 java.io.Serializable get(java.lang.String entityName, long entityId, int type, java.lang.String key)
           
 java.util.Collection getKeys(java.lang.String entityName, long entityId, java.lang.String prefix, int type)
           
 int getType(java.lang.String entityName, long entityId, java.lang.String key)
           
 void removeEntry(java.lang.String entityName, long entityId)
           
 void removeEntry(java.lang.String entityName, long entityId, java.lang.String key)
           
 void set(java.lang.String entityName, long entityId, int type, java.lang.String key, java.io.Serializable value)
           
 void setSessionContext(javax.ejb.SessionContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyStoreEJB

public PropertyStoreEJB()
Method Detail

getKeys

public java.util.Collection getKeys(java.lang.String entityName,
                                    long entityId,
                                    java.lang.String prefix,
                                    int type)

setSessionContext

public void setSessionContext(javax.ejb.SessionContext ctx)
Specified by:
setSessionContext in interface javax.ejb.SessionBean

getType

public int getType(java.lang.String entityName,
                   long entityId,
                   java.lang.String key)

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface javax.ejb.SessionBean

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Throws:
javax.ejb.CreateException

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface javax.ejb.SessionBean

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface javax.ejb.SessionBean

exists

public boolean exists(java.lang.String entityName,
                      long entityId,
                      java.lang.String key)

get

public java.io.Serializable get(java.lang.String entityName,
                                long entityId,
                                int type,
                                java.lang.String key)

removeEntry

public void removeEntry(java.lang.String entityName,
                        long entityId)

removeEntry

public void removeEntry(java.lang.String entityName,
                        long entityId,
                        java.lang.String key)

set

public void set(java.lang.String entityName,
                long entityId,
                int type,
                java.lang.String key,
                java.io.Serializable value)

See www.opensymphony.com for more information.

Copyright 2000-2005 - OpenSymphony