IP Library Granted Patent US 6,944,680
Granted Patent B1
US 6,944,680 · App. 09/689,429 · Granted Sep 13, 2005

Smart handle

View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 6,944,680
App. No.
09/689,429
Granted
Sep 13, 2005
Kind
B1
Abstract

A SmartHandle and method is provided which can extend capabilities of the EJB Handle. The SmartHandle can be mapped to a multi-column relational database. Additionally, the SmartHandle enables two EJB Handles to be compared without instantiating the actual EJB objects.

Claims (22)

1. A method of extending EJB Handles for use with Enterprise JavaBeans (EJBs) to provide a SmartHandle, comprising the steps of:

maintaining an Entity EJB object relationship through a combination of a proxy pattern, an EJB Handle, and a primary key of the EJB Handle;

storing EJB Home class from which an Entity EJB was generated and from which said Entity EJB can be re-instantiated;

maintaining an instance of a SmartKey that describes said primary key for a database column to which an Entity EJB object is mapped; and

delegating to a SmartKey class that implements a java code to perform a field-by-field comparison of attributes associated with said primary key thereby permitting two EJB Handles to be compared without instantiating the corresponding Entity EJB.

2. The method of claim 1 , further comprising the steps of instantiating said Entity EJB object associated with said SmartHandle with a single method invocation.

3. The method of claim 2 , wherein said single method invocation includes the steps of:

locating said EJB Home class using Java Naming and Directory Interface (JNDI);

using reflection to obtain an ejbFindByPrimaryKey method; and

invoking said ejbFindByPrimaryKey method with said SmartKey.

4. The method of claim 1 , wherein said SmartKey includes said primary key of the EJB Handle, thereby providing portability to said Entity EJB object.

5. The method of claim 1 , further comprising the step of assigning each attribute of said Entity EJB object and said SmartKey to a separate column within a relational database table, thereby permitting said SmartHandle to be mapped to a multi-column relational database table.

6. The method of claim 1 , wherein said SmartHandle includes at least attributes HomeClassName, KeyClassName, and HomeName.

7. A SmartHandle for extending EJB Handles for use with Enterprise JavaBeans (EJBs), comprising:

EJB Home class from which an Entity EJB was generated and from which said Entity EJB can be re-instantiated; and

an instance of a SmartKey that describes said primary key for a database column to which an Entity EJB object is mapped; and

wherein said SmartHandle maintains an Entity EJB object relationship through a combination of a proxy pattern, an EJB Handle, and a primary key of the EJB Handle and delegates to a SmartKev class that implements a java code to perform a field-by-field comparison of attributes associated with said primary key, thereby permitting two EJB Handles to be compared without instantiating the corresponding Entity EJB Objects.

8. The SmartHandle of claim 7 , wherein said Entity EJB object associated with said SmartHandle being instantiated with a single method invocation.

9. The SmartHandle of claim 8 , wherein said single method invocation is operable to locate said EJB Home class using Java Naming and Directory Interface (JNDI), use reflection to obtain an ejbFindByPrimaryKey method, and invoke said ejbFindByPrimaryKey method with said SmartKey.

10. The SmartHandle of claim 7 , wherein said SmartKey includes said primary key of the EJB Handle, thereby providing portability to said Entity EJB object.

11. The SmartHandle of claim 7 , wherein each attribute of said Entity EJB object and said SmartKey is assigned to a separate column within a relational database table, thereby permitting said SmartHandle to be mapped to a multi-column relational database table.

12. The SmartHandle of claim 7 , wherein said SmartHandle includes at least attributes HomeClassName, KeyClassName, and HomeName.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 1, 2010
From: BEA SYSTEMS, INC.
To: ORACLE INTERNATIONAL CORPORATION
Reel/Frame 025084/0470 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 18, 2000
From: LEE, WILLIAM W.; PELENUR, JULIAN
To: BEA SYSTEM, INC.
Reel/Frame 011360/0241 →