Methods Window
The Methods window displays the following
methods in <class> class:
- User-defined methods which were added with
customized SQL statements
If the
default methods such as add, retrieve, and delete are to
be generated, they are also displayed.
Note: Mappings created from SQL
statements (in the Data Access Builder SmartGuide) do not
generate these default methods.
- User-defined methods which were created as
stored procedure calls to <class> class.
The comment icon,
, in the
right upper corner allows you to add a comment for each method in
this window. The comments are included with the methods in the
generated code.
Each method has an icon on the left of its
name.
- If the icon is
, you
can generate code for this method.
- If the icon is
, it
means that it is excluded from code generation.
- If the icon is
, it
means that the mapping for the method is broken (for
example, an attribute used in the method may have been
deleted since its creation). You should fix the method
definition before generating code; otherwise, code for
the method will be excluded from the classes. Select the
method and click the Modify button to
edit it.
The following buttons appear below each
container:
- Add to add a method of
that category.
- Modify to modify the
selected method. You cannot modify the default methods
(add, update, delete, and retrieve), although you can
copy them and modify the copies.
- Delete to delete the
selected method.
- Copy to copy the selected
method and a default name is given to the new method.
- Hide to (toggle)
exclude/include the selected method in the generated
code.
The Close button closes the
window and the Help button invokes the online
help for this window.

User-Defined
Methods

Add user-defined
methods
Modify
user-defined methods
Delete
user-defined methods
Copy
user-defined methods