Skip Headers
Oracle® Application Development Framework Developer's Guide
10g (10.1.3.1.0)

Part Number B28967-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

3.6 Finding Objects by Primary Key

TopLink provides a predefined finder (findByPrimaryKey) that takes a primary key as an Object. This finder is defined at runtime – not in the Mapping editor

Example 3-6 Executing a Primary Key Finder

{
    Employee employee = getEmployeeHome().findByPrimaryKey(primraryKey);
}