Adding an Operation to the Bean Class

After creation of the Bean class, you may need to create a method that is missing at this stage of the process, such as an internal method.

  1. Double-click the Bean class to display its property sheet.
  2. Click the Operations tab, then click a blank line in the list.

    An arrow is displayed at the beginning of the line.

  3. Double-click the arrow at the beginning of the line.

    A confirmation box asks you to commit the object creation.

  4. Click Yes.

    The operation property sheet is displayed.

  5. Type a name and code for your operation.
  6. Click the Implementation tab to display the Implementation page.

    The Implementation page opens to the Body tabbed page.

  7. Add the method code in this page.
  8. Click OK.

    You return to the class property sheet.

  9. Click the Preview tab to display the Preview page.

    You can now validate the to-be-generated Java code for the Bean class.

  10. Click OK.


Created October 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com