Package com.ibm.fhir.database.utils.api
Class AllVersionHistoryService
- java.lang.Object
-
- com.ibm.fhir.database.utils.api.AllVersionHistoryService
-
- All Implemented Interfaces:
IVersionHistoryService
public class AllVersionHistoryService extends java.lang.Object implements IVersionHistoryService
Useful implementation for when you want to apply all versions (e.g. for tests)
-
-
Constructor Summary
Constructors Constructor Description AllVersionHistoryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVersion(java.lang.String objectSchema, java.lang.String objectType, java.lang.String objectName, int version)Add this version (idempotent)booleanapplies(java.lang.String objectSchema, java.lang.String objectType, java.lang.String objectName, int version)Check to see if we described object is newer than we have currently in the databasejava.lang.IntegergetVersion(java.lang.String objectSchema, java.lang.String objectType, java.lang.String objectName)Get the current version of an object
-
-
-
Method Detail
-
addVersion
public void addVersion(java.lang.String objectSchema, java.lang.String objectType, java.lang.String objectName, int version)Description copied from interface:IVersionHistoryServiceAdd this version (idempotent)- Specified by:
addVersionin interfaceIVersionHistoryService
-
applies
public boolean applies(java.lang.String objectSchema, java.lang.String objectType, java.lang.String objectName, int version)Description copied from interface:IVersionHistoryServiceCheck to see if we described object is newer than we have currently in the database- Specified by:
appliesin interfaceIVersionHistoryService- Returns:
-
getVersion
public java.lang.Integer getVersion(java.lang.String objectSchema, java.lang.String objectType, java.lang.String objectName)Description copied from interface:IVersionHistoryServiceGet the current version of an object- Specified by:
getVersionin interfaceIVersionHistoryService- Returns:
- the current version of the given object or null if it doesn't exist
-
-