This page last changed on Mar 11, 2008.
eDocs Home > BEA AquaLogic Data Services Platform Documentation > Data Services Developer's Guide > Contents How To Test a Read Function and Simple UpdateThis topic describes how to test any Read function in an entity data service (either logical or physical) in Test view. Adjust SettingsA read function fetches data. A physical or logical data service usually has at least one read function. You can test a read function with either sample data or real-time data, from the Test tab in Studio. Testing a read function ensures that:
The returned data is displayed in the Test tab. Checking the Data Returned by a Read FunctionWhen you test a read function, Studio deploys the service to the server if it is not yet deployed, or if it has changed since it was last deployed. A read function allows you to specify various settings. Settings You Can Change for the Read FunctionYou might want to test with a smaller result set. Select Limit Elements in Array Results To to limit the result to a specific number of elements of the return type, to specific child elements in the return type, or both.
Use Start Client Transaction to query multiple relational sources using XA transaction drivers (if selected, ALDSP uses the Required transaction mode to query data sources; if not, ALDSP uses the NonSupported EJB transaction method).
Run the Read FunctionA read function optionally can have parameters. It is quite common for a read function to have no parameters, with a name something like read() or ADDRESS(). If you are working with a logical service, the update map must be completely enabled before you can run a read function in Test view. If the update map has yellow update blocks or disabled procedures To test a Read function:
Perform a Simple UpdateThe easiest way to test that you can update a data source is to use the Edit and Submit buttons in Test view.
Before you test an update, be sure that:
To update data after running a Read function:
See AlsoConceptsHow Tos
|
![]() |
Document generated by Confluence on Apr 28, 2008 15:57 |