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


public interface EntityFactory

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
 PersistableEntity createEntity(PersistenceContainer o)
          Creates an Entity after reading persistet Entity data from persistence.
 

Method Detail

createEntity

public PersistableEntity createEntity(PersistenceContainer o)
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.

Returns:
Description of the Return Value


Copyright © 2005 SAP AG. All Rights Reserved.