Skip Headers
Oracle® Application Development Framework Developer's Guide
10g Release 3 (10.1.3)
B25386-01
  Go To Documentation Library
Home
Go To Product List
Solution Area
Go To Table Of Contents
Contents
Go To Index
Index

Previous
Previous
Next
Next
 

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);
}