Extract Project Procedure Using the Oracle BI Server XML Procedures

Using the Oracle Business Intelligence Metadata Web Service 4-7

4.4.4 Query Projects Procedure

Use the Query Projects procedure to determine what projects are in the repository. The output results set contains one row with a single BLOB as the output. This procedure has the following structure: NQSQueryMetadataProject Input 1.RPD_NAME optional Output 1.PROJECT_NAME Table 4–6 contains the Query Projects procedure’s input and output parameters and their descriptions. Table 4–5 Query Metadata Procedure Parameters and Descriptions Parameter Description OBJECT_TYPES A list of object types for which to search. You can query for multiple object types by adding a comma between object types. For example, you can query for subject area and presentation catalog objects by setting the object_types to a value of 2000,4004. In this example, the subject area object has a type ID value of 2000 and presentation catalog object has a type ID value of 4004. OBJECT_NAME Optional Filter the objects matched by a name. This name is not the fully qualified name. For example, to query for all subject area named AtomicStar, you would set the OBJECT_TYPES parameter to 2000 and the OBJECT_NAME parameter to AtomicStar. OBJECT_PARENT Optional Filter the objects based on the name of the parent object. Use this parameter to specify a fully qualified name. CHILD_FLAG Optional If this parameter is set to true, then the query returns all the child objects of the queried objects. For example, if you specify the object type parameter as Business Model and set the child flag parameter to true, then all objects under the Business Model in the tree are returned. RPD_NAME This parameter is currently not used. It is reserved for future use. XUDML_TEXT Contains the returned XML representation of all the metadata. If the XML data is too large to fit in one row, it will be split and passed back in multiple rows. You must concatenate the results to obtain the fully formed XUDML document. ERROR_MESSAGES Contains any returned errors resulting from the query execution. Table 4–6 Query Projects Procedure Parameters and Descriptions Parameter Description RPD_NAME This parameter is currently not used. It is reserved for future use. PROJECT_NAME Contains a rowset for each project. Note that it is the responsibility of the caller to collect the entire rowset.