BEA Systems, Inc.

com.beasys.commerce.foundation.property
Class EntityPropertyAggregatorImpl

java.lang.Object
  |
  +--com.beasys.commerce.foundation.SessionImpl
        |
        +--com.beasys.commerce.foundation.property.EntityPropertyManagerImpl
              |
              +--com.beasys.commerce.foundation.property.EntityPropertyAggregatorImpl

public class EntityPropertyAggregatorImpl
extends EntityPropertyManagerImpl

This class is used to get and set values from different EntityPropertyManager implementations, based on configuration options.

See Also:
EntityPropertyManager, EntityPropertyManagerHome, Serialized Form

Fields inherited from class com.beasys.commerce.foundation.SessionImpl
_ctx
 
Constructor Summary
EntityPropertyAggregatorImpl()
           
 
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 ejbPostCreate()
           
 void ejbRemove()
          Does nothing (no resources need to be released).
 java.util.Map getProperties(PropertyLocator locator)
          Returns a map of PropertyMapKey to Objects
 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.
 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.
 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.property.EntityPropertyManagerImpl
getPropertyDefault, removeProperties
 
Methods inherited from class com.beasys.commerce.foundation.SessionImpl
clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityPropertyAggregatorImpl

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

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException,
                      java.rmi.RemoteException
Description copied from class: EntityPropertyManagerImpl
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 EntityPropertyManagerImpl

ejbPostCreate

public void ejbPostCreate()
                   throws javax.ejb.CreateException,
                          java.rmi.RemoteException
Overrides:
ejbPostCreate in class SessionImpl

ejbActivate

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

ejbPassivate

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

ejbRemove

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

setSessionContext

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

addPropertyValue

public void addPropertyValue(PropertyLocator locator,
                             java.lang.String scopeName,
                             java.lang.String key,
                             java.lang.Object value)
                      throws java.rmi.RemoteException
Description copied from class: EntityPropertyManagerImpl
Implementation incomplete.
Overrides:
addPropertyValue in class EntityPropertyManagerImpl

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
Description copied from class: EntityPropertyManagerImpl
Implementation incomplete.
Overrides:
addPropertyValueMapped in class EntityPropertyManagerImpl

getProperties

public java.util.Map getProperties(PropertyLocator locator)
                            throws java.rmi.RemoteException
Returns a map of PropertyMapKey to Objects
Overrides:
getProperties in class EntityPropertyManagerImpl
Tags copied from class: EntityPropertyManagerImpl
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
Description copied from class: EntityPropertyManagerImpl
Returns a map of PropertyMapKey to Objects for all properties set for the entity for the specified scope.
Overrides:
getProperties in class EntityPropertyManagerImpl
Tags copied from class: EntityPropertyManagerImpl
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
Description copied from class: EntityPropertyManagerImpl
Returns the value of the property defined for the specified key and scopeName. If the property is not defined then null is returned.
Overrides:
getProperty in class EntityPropertyManagerImpl

getPropertyMetaData

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

getPropertyMetaDatum

public java.util.Enumeration getPropertyMetaDatum(PropertyLocator locator)
                                           throws java.rmi.RemoteException
Overrides:
getPropertyMetaDatum in class EntityPropertyManagerImpl

removeProperty

public java.lang.Object removeProperty(PropertyLocator locator,
                                       java.lang.String scopeName,
                                       java.lang.String key)
                                throws java.rmi.RemoteException
Overrides:
removeProperty in class EntityPropertyManagerImpl

removePropertyValue

public java.lang.Object removePropertyValue(PropertyLocator locator,
                                            java.lang.String scopeName,
                                            java.lang.String key,
                                            java.lang.Object value)
                                     throws java.rmi.RemoteException
Overrides:
removePropertyValue in class EntityPropertyManagerImpl

removePropertyValueMapped

public void removePropertyValueMapped(PropertyLocator locator,
                                      java.lang.String scopeName,
                                      java.lang.String key,
                                      java.lang.String mapKey)
                               throws java.rmi.RemoteException
Overrides:
removePropertyValueMapped in class EntityPropertyManagerImpl

setProperty

public void setProperty(PropertyLocator locator,
                        java.lang.String scopeName,
                        java.lang.String key,
                        java.lang.Object value)
                 throws java.rmi.RemoteException
Description copied from class: EntityPropertyManagerImpl
Associates the property value to the entity identified by the locator for the specified scope and key.
Overrides:
setProperty in class EntityPropertyManagerImpl

setProperties

public void setProperties(PropertyLocator locator,
                          java.util.Map propertyValues)
                   throws java.rmi.RemoteException
Overrides:
setProperties in class EntityPropertyManagerImpl

getUniqueId

public long getUniqueId(java.lang.String homeName,
                        java.lang.String pkString)
                 throws java.rmi.RemoteException
Description copied from class: EntityPropertyManagerImpl
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.
Overrides:
getUniqueId in class EntityPropertyManagerImpl

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved