Chapter 9 Working with Object-Oriented Models


Mapping an operation

When an operation implies action on the database, like data retrieval or data update, you can associate this operation with a SQL query that will execute an action in the database. Usually, this query is a SELECT statement used to retrieve one or several instances of the current class according to the operation parameter. It can also be an UPDATE query.

In the context of an EJB, the SQL query mapped to an operation is used to implement finder or select methods.

 


Copyright (C) 2006. Sybase Inc. All rights reserved.