Progress
Open Client
Developer’s Guide
Objects Required To Access SmartDataObjects
The Open Client Runtime provides three Java classes that you need to access a remote SmartDataObject from a Java application. These and other supporting classes are provided in the
com.progress.open4gl
package:
NOTE: SDOResultSet allows you to access only the default SmartDataObject API generated by the Progress AppBuilder. If you need to access custom programmer extensions to this API, you must access the SmartDataObject API directly. For more information, see "Accessing a SmartDataObject API Directly."- SDOResultSet — An extended subset of the JDBC 2 (JDK 1.2) ResultSet interface that provides access to a SmartDataObject. Because all instances of a SmartDataObject present the same 4GL API, the one SDOResultSet class allows you to access any such instance. Note that SDOResultSet works with both JDK 1.1.x and JDK 1.2. Thus, much of the Java 1.2 functionality (standard JDBC ResultSet interface) is supported even with JDK 1.1.x.
- AppObject or SubAppObject — An object that allows you to create an SDOResultSet (using
_createSDOResultSet()
) to access any remote SmartDataObject. You can access the SDOResultSet object from these proxy objects:
- Any standard AppObject or SubAppObject that you generate in ProxyGen
- A prebuilt
com.progress.open4gl.SDOAppObject
proxy that comes installed as part of the Open Client RuntimeUsing a standard AppObject or SubAppObject allows you to map other AppServer procedures besides SmartDataObjects into the generated proxy. The SDOAppObject installed with Progress is a complete proxy that allows you to access any SmartDataObject without having to build a proxy in ProxyGen. It is essentially a complete AppObject built to access SDOResultSet objects only.
Thus, if you only need to access SmartDataObjects on the AppServer and no other AppServer procedures, you can use this SDOAppObject out of the box. If you need to access other 4GL procedures on the AppServer in addition to the SmartDataObject, you can use any AppObject or SubAppObject generated with ProxyGen to access any SmartDataObject. For more information on AppObjects, see Programming Concepts."
- SDOParameters — An object that you can pass to the SDOResultSet constructor through the
_createSDOResultSet()
method. SDOParameters allows you to modify the default behavior of the SDOResultSet instance.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |