com.sap.ip.me.api.persist.core
Class PersistenceRuntime

java.lang.Object
  extended bycom.sap.ip.me.api.persist.core.PersistenceRuntime

public abstract class PersistenceRuntime
extends java.lang.Object

A PersistenceRuntime instance provides access to PersistenceManager holds all registered PackagePersistenceMaster instances.

PersistenceRuntime does not consider ConversationId, it provides a singleton instance.

Version:
Author:
SAP

Constructor Summary
PersistenceRuntime()
           
 
Method Summary
abstract  void _reset()
          for JUnit tests only
abstract  ClassDescriptor getClassDescriptor(java.lang.String classtype)
          Gets the classDescriptor attribute of the PersistenceRuntime object
static PersistenceRuntime getInstance()
          Returns the singleton instance attribute of the PersistenceRuntime class.
abstract  PersistenceManager getPersistenceManager(VisibilityType visibility)
           
abstract  TransactionManager getTransactionManager(VisibilityType visibility)
          returns implementation specific TransactionManager.
 void optimizeDatabase()
          Triggers database specific optimizations.
abstract  void registerPersistenceMaster(PackagePersistenceMaster persistenceMaster)
          Registers a PackagePersistanceMaster instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceRuntime

public PersistenceRuntime()
Method Detail

getInstance

public static PersistenceRuntime getInstance()
Returns the singleton instance attribute of the PersistenceRuntime class. PersistenceRuntime does not consider ConversationId.

Returns:
The instance value

getTransactionManager

public abstract TransactionManager getTransactionManager(VisibilityType visibility)
                                                  throws PersistenceException
returns implementation specific TransactionManager.

Parameters:
visibility - Description of the Parameter
Returns:
The transactionManager value
Throws:
PersistenceException - Description of the Exception

getPersistenceManager

public abstract PersistenceManager getPersistenceManager(VisibilityType visibility)
                                                  throws PersistenceException
Throws:
PersistenceException

registerPersistenceMaster

public abstract void registerPersistenceMaster(PackagePersistenceMaster persistenceMaster)
                                        throws PersistenceException
Registers a PackagePersistanceMaster instance.

The PackagePersistanceMaster provides descriptive information on Entity instances to be persisted.

Parameters:
persistenceMaster - Description of the Parameter
Throws:
PersistenceException - Description of the Exception

getClassDescriptor

public abstract ClassDescriptor getClassDescriptor(java.lang.String classtype)
                                            throws PersistenceException
Gets the classDescriptor attribute of the PersistenceRuntime object

Parameters:
classtype - Description of the Parameter
Returns:
The classDescriptor value
Throws:
PersistenceException - Description of the Exception

_reset

public abstract void _reset()
for JUnit tests only


optimizeDatabase

public void optimizeDatabase()
                      throws PersistenceException
Triggers database specific optimizations. This operation performs a commit of all pending operations!

FileIO: Currently no operation.

DB2e: Table reorganisation (shrinks fragmented tables). This is also a default operation on MI startup, so calling this in your application is not necessary.

MaxDB: Runs an update of the optimizer statistics of all tables to speed up queries after large data inserts. This operation might take very long.

Throws:
PersistenceException - on any errors


Copyright © 2005 SAP AG. All Rights Reserved.