IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.jpa
Interface JPAPropertyFactory


public interface JPAPropertyFactory

This interface is used to allow users plug in their own persistence property map to the JPATxCallback object.

In some cases, users might want to override the persistence properties defined in the default persistence.xml. The getPersistenceProperties(ObjectGrid, int) method can be implemented to provide the override property map.

Since:
WAS XD 6.1.0.3

Method Summary
 Map getPersistenceProperties(ObjectGrid og, int partitionId)
          Provide the persistence properties to override those in the persistence.xml.
 

Method Detail

getPersistenceProperties

Map getPersistenceProperties(ObjectGrid og,
                             int partitionId)
Provide the persistence properties to override those in the persistence.xml.

An ObjectGrid instance and its partition identifier are passed to this method so users can get ObjectGrid attributes, such as ObjectGrid name. The partitionId indicates the partition identifier being used by this ObjectGrid instance if the ObjectGrid is a server ObjectGrid. If the ObjectGrid is a local or client ObjectGrid, the partition id is 0.

Parameters:
og - the ObjectGrid instance this JPATxCallback object is associated with.
partitionId - the partition identifier if the ObjectGrid instance
Returns:
the persistence properties

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.