com.sap.ip.me.api.persist.app
Interface PackageEntityFactory


Deprecated. PackageEntityFactory is replaced by EntityFactory

public interface PackageEntityFactory

Title: Description: A PackageEntityFactory instance is responsible for the creation of Entity instances from persistence. When an Entity instance shall be created from persistence (by invoking a reading statement in TransactionManager), the Entity related attributes / links will be read from persistence. Secondly, the corresponding factory will be called to create the Entity instance. PackageEntityFactory needs to take care that all its Entity instances are created properly.

Each PackageEntityFactory instance may be responsible for one conversation id, therefore a PackageEntityFactory instance needs to be registered with one TransactionManager instance. It is however also possible to make one PackageEntityFactory instance responsbile for multiple conversation ids - in this case, one PackageEntityFactory instance needs to be registered with multiple TransactionManager instances.

Each PackageEntityFactory instance has a n:1 relationship to a PackagePersistenceMaster instance. Therefore, each PackageEntityFactory instance needs to specify its corresponding PackagePersistenceMaster instance. Copyright: Copyright (c) 2002 Company:

Version:
1.0
Author:
See Also:
Entity, PackagePersistenceMaster, TransactionManager

Method Summary
 Entity createEntity(java.lang.String entityKey, java.lang.String classtype, java.lang.Object[] attrib)
          Deprecated. Creates an Entity after reading persistet Entity data from persistence.
 PackagePersistenceMaster getPersistenceMaster()
          Deprecated. Gets the persistenceMaster attribute of the PackageEntityFactory object.
 

Method Detail

getPersistenceMaster

public PackagePersistenceMaster getPersistenceMaster()
Deprecated. 
Gets the persistenceMaster attribute of the PackageEntityFactory object. Each PackageEntityFactory instance has a n:1 relationship to a PackagePersistenceMaster instance. Therefore, each PackageEntityFactory instance needs to specify its corresponding PackagePersistenceMaster instance.

Returns:
The persistenceMaster value

createEntity

public Entity createEntity(java.lang.String entityKey,
                           java.lang.String classtype,
                           java.lang.Object[] attrib)
Deprecated. 
Creates an Entity after reading persistet Entity data from persistence. A PackageEntityFactory instance is responsible for the creation of Entity instances from persistence. When an Entity instance shall be created from persistence (by invoking a reading statement in TransactionManager), the Entity related attributes / links will be read from persistence. Secondly, the corresponding factory will be called to create the Entity instance. PackageEntityFactory needs to take care that all its Entity instances are created properly.

Parameters:
entityKey - Description of the Parameter
classtype - Description of the Parameter
attrib - Description of the Parameter
Returns:
Description of the Return Value


Copyright © 2005 SAP AG. All Rights Reserved.