Package org.qubership.nifi.service
Interface DbJsonMappingService
- All Superinterfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.controller.ControllerService
public interface DbJsonMappingService
extends org.apache.nifi.controller.ControllerService
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.nifi.components.PropertyDescriptorBusiness Entity type property descriptor.static final org.apache.nifi.components.PropertyDescriptorSource System property descriptor. -
Method Summary
Modifier and TypeMethodDescriptiondb2Json()Gets DB to JSON mapping table based on controller service parameters.Looks up DB to JSON mapping table based on FlowFile attributes.Gets Business Entity (BE) type associated with this controller service.Gets Source System associated with this controller service.booleanisLookup()Used to check if controller service is lookup controller service or not.json2DB()Gets JSON to DB mapping based on controller service parameters.Looks up JSON to DB mapping based on FlowFile attributes.Methods inherited from interface org.apache.nifi.components.ConfigurableComponent
getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.controller.ControllerService
initialize, isStateful, migrateProperties
-
Field Details
-
BE_TYPE
static final org.apache.nifi.components.PropertyDescriptor BE_TYPEBusiness Entity type property descriptor. -
SOURCE_SYSTEM
static final org.apache.nifi.components.PropertyDescriptor SOURCE_SYSTEMSource System property descriptor.
-
-
Method Details
-
db2Json
DBToJsonMappingTable db2Json()Gets DB to JSON mapping table based on controller service parameters.- Returns:
- DB to JSON mapping table
-
db2Json
Looks up DB to JSON mapping table based on FlowFile attributes. Attributes must contain be.type = Business Entity (BE) type.- Parameters:
attributes- List of FlowFile attributes- Returns:
- DBToJsonMappingTable object
-
json2DB
JsonToDBGraph json2DB()Gets JSON to DB mapping based on controller service parameters.- Returns:
- JsonToDBGraph object
-
json2DB
Looks up JSON to DB mapping based on FlowFile attributes. Attributes must contain be.type = Business Entity (BE) type.- Parameters:
attributes- List of FlowFile attributes- Returns:
- JsonToDBGraph object
-
getBeType
String getBeType()Gets Business Entity (BE) type associated with this controller service.- Returns:
- Business Entity (BE) type
-
getSourceSystem
String getSourceSystem()Gets Source System associated with this controller service.- Returns:
- Source System
-
isLookup
boolean isLookup()Used to check if controller service is lookup controller service or not.- Returns:
- true, if this controller service is lookup controller service.
-