Package com.ibm.fhir.persistence.helper
Class FHIRPersistenceHelper
- java.lang.Object
 - 
- com.ibm.fhir.persistence.helper.FHIRPersistenceHelper
 
 
- 
- All Implemented Interfaces:
 PersistenceHelper
public class FHIRPersistenceHelper extends Object implements PersistenceHelper
This class serves as a helper for obtaining the correct persistence implementation to be used by the FHIR REST API layer. 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected PropertyGroupfhirConfig 
- 
Constructor Summary
Constructors Constructor Description FHIRPersistenceHelper() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FHIRPersistencegetFHIRPersistenceImplementation()Returns an appropriate FHIRPersistance implementation according to the current configuration.FHIRPersistencegetFHIRPersistenceImplementation(String factoryPropertyName)Returns an appropriate FHIRPersistance implementation according to the current configuration.protected StringretrieveFactoryClassName(String factoryPropertyName)Retrieves the name of the factory class that should be instantiated for use by the server.- 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface com.ibm.fhir.persistence.helper.PersistenceHelper
isValidFHIRPersistenceImplementation 
 - 
 
 - 
 
- 
- 
Field Detail
- 
fhirConfig
protected PropertyGroup fhirConfig
 
 - 
 
- 
Method Detail
- 
retrieveFactoryClassName
protected String retrieveFactoryClassName(String factoryPropertyName) throws FHIRPersistenceException
Retrieves the name of the factory class that should be instantiated for use by the server.- Parameters:
 factoryPropertyName- name of the property that contains theFHIRPersistenceFactoryclass name.- Returns:
 - Name of the factory class that will be loaded.
 - Throws:
 FHIRPersistenceException
 
- 
getFHIRPersistenceImplementation
public FHIRPersistence getFHIRPersistenceImplementation() throws FHIRPersistenceException
Description copied from interface:PersistenceHelperReturns an appropriate FHIRPersistance implementation according to the current configuration.- Specified by:
 getFHIRPersistenceImplementationin interfacePersistenceHelper- Throws:
 FHIRPersistenceException
 
- 
getFHIRPersistenceImplementation
public FHIRPersistence getFHIRPersistenceImplementation(String factoryPropertyName) throws FHIRPersistenceException
Description copied from interface:PersistenceHelperReturns an appropriate FHIRPersistance implementation according to the current configuration.- Specified by:
 getFHIRPersistenceImplementationin interfacePersistenceHelper- Throws:
 FHIRPersistenceException
 
 - 
 
 -