Skip Headers

# Read-Object Session Queries

Previous

Next

Read-object queries return the first instance of an `Object` that matches the specified selection criteria, and read-all object queries return all such instances.

You can also pass in a domain `Object` with its primary key set and TopLink will construct and execute a read-object query to select that object. This is one form of query by example. For more information on query by example, see "Query-by-Example".

For more information, see "Reading Objects With a Session Query".