Class DatabaseLookupHelper

java.lang.Object
org.pentaho.di.trans.step.BaseStepHelper
org.pentaho.di.trans.steps.databaselookup.DatabaseLookupHelper
All Implemented Interfaces:
StepHelperInterface

public class DatabaseLookupHelper extends BaseStepHelper
  • Field Details

  • Constructor Details

    • DatabaseLookupHelper

      public DatabaseLookupHelper()
  • Method Details

    • handleStepAction

      protected org.json.simple.JSONObject handleStepAction(String method, TransMeta transMeta, Map<String,String> queryParams)
      Handles step-specific actions for Database lookup.
      Specified by:
      handleStepAction in class BaseStepHelper
      Parameters:
      method - The name of the method to execute.
      transMeta - The transformation metadata associated with the step.
      queryParams - A map of query parameters for the action.
      Returns:
      A JSON object containing the action status and any additional response data.
    • getTableFieldAndType

      public org.json.simple.JSONObject getTableFieldAndType(TransMeta transMeta, Map<String,String> queryParams)
      Get table fields and their types.
      Parameters:
      transMeta - contains the metadata of transformation.
      queryParams - Query parameters containing connection, schema, and table.
      Returns:
      JSON object containing the table fields and types or error message.