Package com.apgar.common.lib.utils
Class TrackingInfoUtils
java.lang.Object
com.apgar.common.lib.utils.TrackingInfoUtils
Utility class providing methods to retrieve several attributes of a record from the tracking info.
- Author:
- APGAR Consulting
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatRecordToTrackingInfo(Adaptation pRecord) Format record to tracking info.static StringgetRecordDatasetFromTrackingInfo(String pTrackingInfo) Get record dataset from tracking info.static AdaptationgetRecordFromTrackingInfo(AdaptationHome pHome, String pDatasetName, String pTrackingInfo) Get record from tracking info provided the dataset name and adaptation home.static AdaptationgetRecordFromTrackingInfo(Adaptation pDataset, String pTrackingInfo) Get record from tracking info.static AdaptationgetRecordFromTrackingInfo(TableTriggerExecutionContext pTableTriggerExecutionContext) Get record from tracking provided the table trigger execution context.static StringgetRecordPrimaryKeyFromTrackingInfo(TableTriggerExecutionContext pTableTriggerExecutionContext) Get record primary key from tracking info.static StringgetRecordPrimaryKeyFromTrackingInfo(String pTrackingInfo) Get record primary key from tracking info.static PathgetRecordTablePathFromTrackingInfo(String pTrackingInfo) Get record table path from tracking info.static AdaptationgetRecordUsingDatasetFromTrackingInfo(TableTriggerExecutionContext pTableTriggerExecutionContext) Get record from tracking info provided the table trigger execution context.static StringgetWorkflowPublicatioKeyFromTrackingInfo(String pTrackingInfo) Get workflow publication key from tracking info.
-
Constructor Details
-
TrackingInfoUtils
protected TrackingInfoUtils()Constructor.
-
-
Method Details
-
formatRecordToTrackingInfo
Format record to tracking info.- Parameters:
pRecord- Record- Returns:
- Tracking info formatted
-
getRecordPrimaryKeyFromTrackingInfo
public static String getRecordPrimaryKeyFromTrackingInfo(TableTriggerExecutionContext pTableTriggerExecutionContext) Get record primary key from tracking info.- Parameters:
pTableTriggerExecutionContext- Table trigger execution context- Returns:
- If found return primary key of record, else return null
-
getRecordPrimaryKeyFromTrackingInfo
Get record primary key from tracking info.- Parameters:
pTrackingInfo- Tracking info- Returns:
- If found return primary key of record, else return null
-
getWorkflowPublicatioKeyFromTrackingInfo
Get workflow publication key from tracking info.- Parameters:
pTrackingInfo- Tracking info- Returns:
- If found return pub key, else return null
-
getRecordTablePathFromTrackingInfo
Get record table path from tracking info.- Parameters:
pTrackingInfo- Tracking info- Returns:
- If found retrun table path, else return null
-
getRecordDatasetFromTrackingInfo
Get record dataset from tracking info.- Parameters:
pTrackingInfo- Tracking info- Returns:
- If found return table path, else return null
-
getRecordUsingDatasetFromTrackingInfo
public static Adaptation getRecordUsingDatasetFromTrackingInfo(TableTriggerExecutionContext pTableTriggerExecutionContext) Get record from tracking info provided the table trigger execution context.- Parameters:
pTableTriggerExecutionContext- Table trigger execution context- Returns:
- If found return record, else null
-
getRecordFromTrackingInfo
public static Adaptation getRecordFromTrackingInfo(TableTriggerExecutionContext pTableTriggerExecutionContext) Get record from tracking provided the table trigger execution context.- Parameters:
pTableTriggerExecutionContext- Table trigger execution context- Returns:
- If found return record, else null
-
getRecordFromTrackingInfo
Get record from tracking info.- Parameters:
pDataset- DatasetpTrackingInfo- Tracking info- Returns:
- If found return record, else null
-
getRecordFromTrackingInfo
public static Adaptation getRecordFromTrackingInfo(AdaptationHome pHome, String pDatasetName, String pTrackingInfo) Get record from tracking info provided the dataset name and adaptation home.- Parameters:
pHome- HomepDatasetName- Dataset namepTrackingInfo- Tracking info- Returns:
- If found return record, else null
-