BEA Systems, Inc.

com.beasys.commerce.foundation.property
Class EntityPropertyManagerImpl

java.lang.Object
  |
  +--com.beasys.commerce.foundation.SessionImpl
        |
        +--com.beasys.commerce.foundation.property.EntityPropertyManagerImpl
Direct Known Subclasses:
EntityPropertyAggregatorImpl, LDAPEntityPropertyManagerImpl

public class EntityPropertyManagerImpl
extends SessionImpl

This class is used to expedite access to EntityProperties and the mapping of their names. This stateful session bean will "cache" a set of Entity Properties

See Also:
EntityPropertyManager, EntityPropertyManagerHome, Serialized Form

Fields inherited from class com.beasys.commerce.foundation.SessionImpl
_ctx
 
Constructor Summary
EntityPropertyManagerImpl()
           
 
Method Summary
 void addPropertyValue(PropertyLocator locator, java.lang.String scopeName, java.lang.String key, java.lang.Object value)
          Implementation incomplete.
 void addPropertyValueMapped(PropertyLocator locator, java.lang.String scopeName, java.lang.String key, java.lang.String mapKey, java.lang.Object value)
          Implementation incomplete.
 void ejbActivate()
          N/A for stateless session bean.
 void ejbCreate()
          Initializes the sequencers and the smartConnectionPool.
 void ejbPassivate()
          N/A for stateless session bean.
 void ejbRemove()
          Does nothing (no resources need to be released).
 java.util.Map getProperties(PropertyLocator locator)
          Returns a map of PropertyMapKey to Objects for all properties set for the entity.
 java.util.Map getProperties(PropertyLocator locator, java.lang.String scopeName)
          Returns a map of PropertyMapKey to Objects for all properties set for the entity for the specified scope.
 java.lang.Object getProperty(PropertyLocator locator, java.lang.String scopeName, java.lang.String key)
          Returns the value of the property defined for the specified key and scopeName.
 java.lang.Object getPropertyDefault(PropertyLocator locator, java.lang.String scopeName, java.lang.String key)
           
 PropertyMetaData getPropertyMetaData(PropertyLocator locator, java.lang.String scopeName, java.lang.String key)
          Returns the PropertyMetaData associated with the property specified the schema group name defined in the property locator, the scope name, and the key.
 java.util.Enumeration getPropertyMetaDatum(PropertyLocator locator)
           
 long getUniqueId(java.lang.String homeName, java.lang.String pkString)
          Returns the number that uniquely identifies the entity specified by the home name and the pk string.
 void removeProperties(PropertyLocator locator)
          Removes all properties for all scopes associated with the entity specified by the property locator.
 java.lang.Object removeProperty(PropertyLocator locator, java.lang.String scopeName, java.lang.String key)
           
 java.lang.Object removePropertyValue(PropertyLocator locator, java.lang.String scopeName, java.lang.String key, java.lang.Object value)
           
 void removePropertyValueMapped(PropertyLocator locator, java.lang.String scopeName, java.lang.String key, java.lang.String mapKey)
           
 void setProperties(PropertyLocator locator, java.util.Map propertyValues)
           
 void setProperty(PropertyLocator locator, java.lang.String scopeName, java.lang.String key, java.lang.Object value)
          Associates the property value to the entity identified by the locator for the specified scope and key.
 void setSessionContext(javax.ejb.SessionContext ctx)
          Delegate the setting of the SessionContext to the parent class.
 
Methods inherited from class com.beasys.commerce.foundation.SessionImpl
clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, ejbPostCreate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityPropertyManagerImpl

public EntityPropertyManagerImpl()
                          throws javax.ejb.CreateException
Method Detail

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException,
                      java.rmi.RemoteException
Initializes the sequencers and the smartConnectionPool. Two sequencers are used to generate unique ids for ENTITY_ID and PROPERTY_ID values.
Overrides:
ejbCreate in class SessionImpl

ejbActivate

public void ejbActivate()
                 throws java.rmi.RemoteException
N/A for stateless session bean.
Overrides:
ejbActivate in class SessionImpl

ejbPassivate

public void ejbPassivate()
                  throws java.rmi.RemoteException
N/A for stateless session bean.
Overrides:
ejbPassivate in class SessionImpl

ejbRemove

public void ejbRemove()
               throws java.rmi.RemoteException
Does nothing (no resources need to be released).
Overrides:
ejbRemove in class SessionImpl

setSessionContext

public void setSessionContext(javax.ejb.SessionContext ctx)
                       throws java.rmi.RemoteException
Delegate the setting of the SessionContext to the parent class.
Overrides:
setSessionContext in class SessionImpl

addPropertyValue

public void addPropertyValue(PropertyLocator locator,
                             java.lang.String scopeName,
                             java.lang.String key,
                             java.lang.Object value)
                      throws java.rmi.RemoteException
Implementation incomplete.

addPropertyValueMapped

public void addPropertyValueMapped(PropertyLocator locator,
                                   java.lang.String scopeName,
                                   java.lang.String key,
                                   java.lang.String mapKey,
                                   java.lang.Object value)
                            throws java.rmi.RemoteException
Implementation incomplete.

getProperties

public java.util.Map getProperties(PropertyLocator locator)
                            throws java.rmi.RemoteException
Returns a map of PropertyMapKey to Objects for all properties set for the entity.
Parameters:
locator - specifies the JNDIHomeName and Pk string needed to retrieve the entityId. Also specifies the schemaGroupName that is used to retrieved the type of the property.

getProperties

public java.util.Map getProperties(PropertyLocator locator,
                                   java.lang.String scopeName)
                            throws java.rmi.RemoteException
Returns a map of PropertyMapKey to Objects for all properties set for the entity for the specified scope.
Parameters:
locator - specifies the JNDIHomeName and Pk string needed to retrieve the entityId. Also specifies the schemaGroupName that is used to retrieved the type of the property.
scopeName - specifies the scopeName in which the properties are defined.

getProperty

public java.lang.Object getProperty(PropertyLocator locator,
                                    java.lang.String scopeName,
                                    java.lang.String key)
                             throws java.rmi.RemoteException
Returns the value of the property defined for the specified key and scopeName. If the property is not defined then null is returned.

getPropertyMetaData

public PropertyMetaData getPropertyMetaData(PropertyLocator locator,
                                            java.lang.String scopeName,
                                            java.lang.String key)
                                     throws java.rmi.RemoteException
Returns the PropertyMetaData associated with the property specified the schema group name defined in the property locator, the scope name, and the key.

getPropertyMetaDatum

public java.util.Enumeration getPropertyMetaDatum(PropertyLocator locator)
                                           throws java.rmi.RemoteException

getUniqueId

public long getUniqueId(java.lang.String homeName,
                        java.lang.String pkString)
                 throws java.rmi.RemoteException
Returns the number that uniquely identifies the entity specified by the home name and the pk string. If the entity does not have a unique id assigned, a new one will be created.

removeProperties

public void removeProperties(PropertyLocator locator)
                      throws java.rmi.RemoteException
Removes all properties for all scopes associated with the entity specified by the property locator.

removeProperty

public java.lang.Object removeProperty(PropertyLocator locator,
                                       java.lang.String scopeName,
                                       java.lang.String key)
                                throws java.rmi.RemoteException

removePropertyValue

public java.lang.Object removePropertyValue(PropertyLocator locator,
                                            java.lang.String scopeName,
                                            java.lang.String key,
                                            java.lang.Object value)
                                     throws java.rmi.RemoteException

removePropertyValueMapped

public void removePropertyValueMapped(PropertyLocator locator,
                                      java.lang.String scopeName,
                                      java.lang.String key,
                                      java.lang.String mapKey)
                               throws java.rmi.RemoteException

setProperty

public void setProperty(PropertyLocator locator,
                        java.lang.String scopeName,
                        java.lang.String key,
                        java.lang.Object value)
                 throws java.rmi.RemoteException
Associates the property value to the entity identified by the locator for the specified scope and key.

setProperties

public void setProperties(PropertyLocator locator,
                          java.util.Map propertyValues)
                   throws java.rmi.RemoteException

getPropertyDefault

public java.lang.Object getPropertyDefault(PropertyLocator locator,
                                           java.lang.String scopeName,
                                           java.lang.String key)
                                    throws java.rmi.RemoteException

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved