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


public interface PackagePersistenceMaster

A PackagePersistenceMaster instance provides descriptive information on Entity instances to be persisted. Thus, each actor using perstistence needs to implement PackagePersistenceMaster for the Entity instances it persists.

Type-distinction of Entity instances is made by classtype, an abstraction of the actual java class.

PackagePersistenceMaster needs to be linked to PersistenceRuntime, which is ConversationId-global.

Version:
1.0
Author:
SAP

Method Summary
 ClassDescriptor getClassDescriptor(java.lang.String classtype)
          Returns the descriptive information for a certain classtype
 java.lang.String[] getClasstypes()
          Gets the classtypes this PackagePersistenceMaster instance is responsible for.
 

Method Detail

getClasstypes

public java.lang.String[] getClasstypes()
Gets the classtypes this PackagePersistenceMaster instance is responsible for. Type-distinction of Entity instances is made by classtype, an abstraction of the actual java class.

The classtype is linked to a ClassDescriptor which describes how an Entity is persistently read and written. The classtype may be linked as n:m to a specific java class; this means that instances of different classes may be treated uniquely for persistence as well as instances of the same class may be treated differently for persistence.

Returns:
array containing all Classtype strings

getClassDescriptor

public ClassDescriptor getClassDescriptor(java.lang.String classtype)
Returns the descriptive information for a certain classtype

Parameters:
classtype - Class key string
Returns:
ClassDescriptor instance


Copyright © 2005 SAP AG. All Rights Reserved.