The invention which meets the needs of an object-oriented structured query language
(OOSQL) support for enterprise Java beans is an apparatus and method for automatic
generation of a portable, OOSQL query in terms of a bean's attributes and methods
at the time of development. The method accomplishes its purpose by bridging between
CORBA EJB, by executing an object-oriented query on an application server that
returns data objects responsive to the query; adding each object returned by the
server to a Java Vector object, converting the Java Vector object to a Java Enumeration;
and narrowing the Java Enumeration to the EJB objects having attributes that that
meet the conditions of the query.