Search Results wms_db_object_joins




Overview

The WMS_DB_OBJECT_JOINS table is a core metadata repository within the Oracle E-Business Suite Warehouse Management (WMS) module. It functions as a configuration table that stores the logical joining conditions between different database objects, such as tables and views, as defined by the application. Its primary role is to enable the dynamic construction of complex queries and reports by providing a structured definition of how related data entities should be linked. This table is essential for the flexible reporting and data interrogation capabilities of the WMS system, allowing business logic for data relationships to be maintained centrally rather than being hard-coded into numerous application components.

Key Information Stored

The table's structure is defined by its composite primary key and its foreign key relationships. The primary key consists of DB_OBJECT_ID, TYPE_CODE, and SEQUENCE_NUMBER, which together uniquely identify a specific join condition for a given database object and join type. The DB_OBJECT_ID column references a parent object in the WMS_DB_OBJECTS table. The TYPE_CODE likely categorizes the nature or purpose of the join. The SEQUENCE_NUMBER dictates the order in which multiple join conditions for the same object and type are applied. Crucially, the table stores PARAMETER_ID and PARENT_PARAMETER_ID, both of which are foreign keys to the WMS_PARAMETERS_B table. These columns are pivotal, as they store references to the specific parameters (which often represent database columns or conditions) that define the "on" clause of the SQL join being configured.

Common Use Cases and Queries

This table is primarily accessed by the application's reporting engine or data retrieval frameworks. A common use case is the generation of a dynamic SQL statement for a custom WMS inquiry or report. The application would query this table to retrieve all necessary join definitions for the base objects involved, then assemble the final FROM and WHERE clauses. For instance, to understand all joins defined for a specific database object, a technical consultant might execute a query such as:

  • SELECT wdoj.sequence_number, wdoj.type_code, wp1.parameter_name, wp2.parameter_name FROM wms_db_object_joins wdoj JOIN wms_parameters_b wp1 ON wdoj.parameter_id = wp1.parameter_id LEFT JOIN wms_parameters_b wp2 ON wdoj.parent_parameter_id = wp2.parameter_id WHERE wdoj.db_object_id = (SELECT db_object_id FROM wms_db_objects WHERE object_name = '&OBJECT_NAME') ORDER BY wdoj.sequence_number;

This retrieves the join sequence, the parameters involved, and their likely column mappings from the related WMS_PARAMETERS_B table.

Related Objects

The WMS_DB_OBJECT_JOINS table has documented foreign key relationships with two other core WMS metadata tables, forming a critical configuration triad:

  • WMS_DB_OBJECTS: This is the parent table for the DB_OBJECT_ID column. Every join condition defined in WMS_DB_OBJECT_JOINS is associated with a specific database object (table or view) registered in WMS_DB_OBJECTS.
  • WMS_PARAMETERS_B: This table is referenced twice. First, via the PARAMETER_ID column, which likely points to the parameter representing the column from the child or joining table in the relationship. Second, via the PARENT_PARAMETER_ID column, which likely points to the parameter representing the corresponding column from the parent or joined-to table.

These relationships underscore that WMS_DB_OBJECT_JOINS does not store literal column names but rather references to parameterized definitions, allowing for a higher level of abstraction and maintainability within the WMS architecture.