Method properties are organized on the following tabs:
General Shows the method’s return type, parameters, and the exceptions that can be thrown. Table 5-1 describes the fields.
Property |
Description |
Notes |
---|---|---|
Description |
Specifies a description of what the method does. The description can be up to 255 characters. |
You can enter comments about the method here. |
Exceptions Raised |
Specifies the user-level exceptions raised by this method. Enter exceptions in the form: Module::ExceptionName You can enter multiple exceptions, separated by commas. |
User-level exceptions must be defined in IDL before you can specify that a method raises the exception. See “User-defined exceptions” for more information. |
Read only |
Applies to entity components that use component-managed persistence (also called bean-managed persistence). Specifies whether the method can change the instance state. |
For best performance, set this property for all entity component business methods that do not modify the instance state. When this property is enabled, the entity components ejbStore or ctsStore method is not invoked after the business method returns. This property has no effect on entity components that use automatic persistence. The ejbStore or ctsStore method is always called, but never performs data storage. |
Returns |
Specifies the return type of the method. Select the return type from the drop-down list or enter the name of an IDL or Java datatype into the input field. See “Parameter and return value datatypes” for more information. |
Method implementations cannot return null values. If there are cases where the method must return no value, specify an IDL sequence type as the return value, and implement the method to return an empty sequence to indicate the no-value case. |
Parameters |
Displays the name, type, and mode of each parameter. |
To add a parameter, click Add, and complete the information described in “Parameter properties”. To modify a parameter, highlight the parameter you want to modify, click Modify, and complete the information described in “Parameter properties”. To delete a parameter, highlight the parameter you want to delete, and click Delete. |
Transactions Allows you to configure transaction properties for the method. The Transaction Attribute and Transaction Isolation Level settings have the same meaning as the like-named settings for components. See “Component properties: Transactions”.
Permissions Applies to EJB 2.0 and 1.1 components only. The settings allow you to restrict which users can invoke the method. See “Configuring role references and method permissions” for more information.
Run-As Mode Applies to EJB 1.0 components only. Allows you to configure the user name and password for to be used for intercomponent calls. These settings have the same meanings as the Run-As Mode component settings. See “Component properties: Run-As Mode”.
Advanced Allows you to manually edit method property settings in the EAServer configuration repository. For advanced users.
Copyright © 2005. Sybase Inc. All rights reserved. |