Class DatabaseLookupHelper
java.lang.Object
org.pentaho.di.trans.step.BaseStepHelper
org.pentaho.di.trans.steps.databaselookup.DatabaseLookupHelper
- All Implemented Interfaces:
StepHelperInterface
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.pentaho.di.trans.step.BaseStepHelper
IS_TRANS_REFERENCE, IS_VALID_REFERENCE, log, REFERENCE_PATH, SEPARATORFields inherited from interface org.pentaho.di.trans.step.StepHelperInterface
ACTION_STATUS, FAILURE_METHOD_NOT_FOUND_RESPONSE, FAILURE_RESPONSE, STATUS, SUCCESS_RESPONSE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.json.simple.JSONObjectgetTableFieldAndType(TransMeta transMeta, Map<String, String> queryParams) Get table fields and their types.protected org.json.simple.JSONObjectHandles step-specific actions for Database lookup.Methods inherited from class org.pentaho.di.trans.step.BaseStepHelper
getReferencePath, isFailedResponse, stepAction, validateAndPutReferenceStatus
-
Field Details
-
GET_TABLE_FIELD_AND_TYPE
- See Also:
-
CONNECTION
- See Also:
-
SCHEMA
- See Also:
-
TABLE
- See Also:
-
COLUMNS
- See Also:
-
-
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:
handleStepActionin classBaseStepHelper- 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.
-