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

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.nifi.components.PropertyDescriptor
    Business Entity type property descriptor.
    static final org.apache.nifi.components.PropertyDescriptor
    Source System property descriptor.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets DB to JSON mapping table based on controller service parameters.
    db2Json(Map<String,String> attributes)
    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.
    boolean
    Used to check if controller service is lookup controller service or not.
    Gets JSON to DB mapping based on controller service parameters.
    json2DB(Map<String,String> attributes)
    Looks up JSON to DB mapping based on FlowFile attributes.

    Methods inherited from interface org.apache.nifi.components.ConfigurableComponent

    getIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate

    Methods inherited from interface org.apache.nifi.controller.ControllerService

    initialize, isStateful, migrateProperties
  • Field Details

    • BE_TYPE

      static final org.apache.nifi.components.PropertyDescriptor BE_TYPE
      Business Entity type property descriptor.
    • SOURCE_SYSTEM

      static final org.apache.nifi.components.PropertyDescriptor SOURCE_SYSTEM
      Source System property descriptor.
  • Method Details

    • db2Json

      Gets DB to JSON mapping table based on controller service parameters.
      Returns:
      DB to JSON mapping table
    • db2Json

      DBToJsonMappingTable db2Json(Map<String,String> attributes)
      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

      JsonToDBGraph json2DB(Map<String,String> attributes)
      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.