Running the Media Object Value Object Class Wizard

Use the Media Object Value Object Class Wizard to create value objects that are based on the data structures defined within a Media Object data structure. The Media Object Value Object Class Wizard guides you through a series of tasks to create value objects based on a data structure. You use the wizard to search for and find an existing Media Object data structure to use as a model. The Media Object data structure that you select should have all the parameters that are required for your new value object. You can select all or some of the Media Object data structure parameters to include in your value object class. At the end of the process, the wizard generates code for the value object.

If you are creating a published business service, each business service method must have an input value object and an output value object. If a published business service calls two or more business services that have the same input or output parameters, the business services can share the appropriate input or output value object.

The wizard provides different ways for you to find an existing Media Object data structure. On the wizard search page, you can use the Find button to return all Media Object data structures in JD Edwards EnterpriseOne. You can scroll through all of the Media Object data structures and select one. If you have some information about the Media Object data structure that you want to use, you can enter information in one or more of the search fields to filter the search. You can use wildcards in the search fields. For example, if you know the Media Object data structure name has a 4 in it, you can enter *4* in the Object Name field.

To run the Media Object Value Object Class Wizard:

  1. In the JDeveloper navigation pane, select the project.

  2. Right-click the project.

  3. From the context menu, click New.

  4. On the New Gallery window, open EnterpriseOne and select Classes, and then select Media Object Value Object Class.

  5. Click OK to launch the wizard.

  6. On Create EnterpriseOne Media Object Value Object, click Next.

  7. Enter credential information if required, and then click Next.

  8. On the wizard search page, find a Media Object data structure by performing one of the following actions:

    • If you do not have any information about the business function, click Find and then scroll through the list of available Media Object data structures. Select a Media Object data structure and then click Next.

    • If you have some information about the Media Object data structure you want to use, complete one or more of these search fields to filter the list of Media Object data structures, and then click Find.

      - Object Name

      - System Code

      - Reporting System Code

      - Description

      You can use wildcards in any of these search fields.

      Select a Media Object data structure from the search results, and then click Next.

  9. The next page of the wizard opens showing the attributes of the Media Object data structure that you selected. You can sort the names of the parameters by clicking the Name column.

  10. Select the parameters that you want to include in your new value object class, and then click Next.

    You can select parameters individually by selecting the Include check box in the same row as the parameter that you want. When you select parameters individually, you can display the parameters that you selected by selecting the Display Select Only option. If you want to include all of the parameters in your value object, use the Select All button. Use the Clear All button to clear your selections and start over.

  11. On the EnterpriseOne Java Class wizard page, enter the name of the value object that you are creating in the Value Object Name field.

  12. Select one of these Scope options:

    • Publish - If you are creating a value object class for a published business service.

    • Internal - If you are creating a value object class for an internal business service.

  13. Click Finish.

    If the name that you entered for the value object already exists, the wizard sends you a warning message. If the name is a new name, the value object Java file and an additional valueobject (MOItem_Internal incase of Internal or MOItem_Publish incase of Publish) are created and appear in the JDeveloper navigation pane under the project that you selected. JDeveloper displays generated code for the two value objects in the edit pane.

  14. Use the visual aids and TODO tags to help you complete the generated code.

  15. To create accessors for the members in the value object Java file, right-click anywhere in the generated code.

  16. From the context menu, select generate accessors.

    The Generate Accessors dialog window appears.

  17. To select all members, click the top-level check box.

  18. Click OK.

  19. Save the value object Java file.