Skip Headers

# Database Queries

Previous

Next

All session types provide an `executeQuery` method that takes any of the following types of `DatabaseQuery`:

- Object-Level Read Query

- Data-Level Read Query

- Object-Level Modify Query

- Data-Level Modify Query

- Report Query

Using `DatabaseQuery` method `setCall`, you can define your own `Call` to accommodate a variety of data source options such as SQL (including stored procedures and stored functions), EJB QL queries, and EIS interactions. For more information, see "Call Queries".

Using `DatabaseQuery` method `setSelectionCriteria`, you can specify your selection criteria using a TopLink `Expression`. For more information, see "TopLink Expressions".

For more information, see "Using DatabaseQuery Queries".