Package com.ibm.fhir.persistence.helper
Interface PersistenceHelper
-
- All Known Implementing Classes:
FHIRPersistenceHelper
public interface PersistenceHelper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default 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.default booleanisValidFHIRPersistenceImplementation(String identifier)Identifies if a FHIRPersistence implementation can be found by using the given identifier.
-
-
-
Method Detail
-
getFHIRPersistenceImplementation
FHIRPersistence getFHIRPersistenceImplementation() throws FHIRPersistenceException
Returns an appropriate FHIRPersistance implementation according to the current configuration.- Throws:
FHIRPersistenceException
-
getFHIRPersistenceImplementation
FHIRPersistence getFHIRPersistenceImplementation(String factoryPropertyName) throws FHIRPersistenceException
Returns an appropriate FHIRPersistance implementation according to the current configuration.- Throws:
FHIRPersistenceException
-
isValidFHIRPersistenceImplementation
default boolean isValidFHIRPersistenceImplementation(String identifier) throws FHIRPersistenceException
Identifies if a FHIRPersistence implementation can be found by using the given identifier.- Parameters:
identifier-- Returns:
- TRUE if the identifier maps to a valid
FHIRPersistenceidentifier. Default value is FALSE. - Throws:
FHIRPersistenceException
-
-