The findByPrimaryKey() method works like the read() method, except that the findByPrimaryKey() method retrieves a single TxObject directly from the database using a primary key without going through a TxCursor. The primary key can be any primary key. For example, RealmId is the official primary key for the PIRealm table. Because the realm name is unique, it can also be used as an alternate primary key to retrieve a realm.
Category:Servlet Interview Questions
No comments:
Post a Comment