Release 10.1A: OpenEdge Development:
Java Open Clients

> ## Sample AppObject

> The following methods comprise the definition of a sample Java AppObject, Account, where each method appears as it is displayed in Java:

> - The AppObject constructors that connect to an Application Service:

>     public Account(com.progress.open4gl.javaproxy.Connection connectObj)
>        throws Open4GLException, IOException, ConnectException,
>        SystemErrorException

>     public Account(String urlString, String userId, String password,
>        String Info)
>        throws Open4GLException, IOException, ConnectException,
>        SystemErrorException

>     public Account(String userId, String password, String Info)
>        throws Open4GLException, IOException, ConnectException,
>        SystemErrorException

>     public Account() throws Open4GLException, IOException, ConnectException,
>        SystemErrorException

> - A SubAppObject class factory method that creates a SubAppObject called `Tax`:

>     public Tax createAO_Tax() throws Open4GLException, RunTime4GLException,
>        SystemErrorException

> - A ProcObject class factory method that creates a ProcObject called `AccountInfo` and runs and instantiates the persistent procedure `AccountInfo.p` on the AppServer:

>     public AccountInfo createPO_AccountInfo(int accountNum)
>        throws Open4GLException, RunTime4GLException, SystemErrorException

> - Built-in class factory methods that run and instantiate a SmartDataObject on the AppServer:

>     public SDOResultSet _createSDOResultSet(String procName)
>        throws Open4GLException, ProSQLException

>     public SDOResultSet _createSDOResultSet(String procName,
>        String whereClause, String sortBy)
>        throws Open4GLException, ProSQLException

>     public SDOResultSet _createSDOResultSet(String procName,
>        String whereClause, String sortBy, SDOPameters params)
>        throws Open4GLException, ProSQLException

> - Remote 4GL methods to run the non-persistent procedures `Add` (defined by `Add.p`) and `Remove` (defined by `Remove.p`) on the AppServer:

>     public void Add(int accountNum, String name)

>     public void Remove(int accountNum)

> - Common methods in all Java proxy objects:

>     public void _cancelAllRequests() throws Open4GLException
>     public String _getConnectionId() throws Open4GLException
>     public String _getProcReturnString()
>     public boolean _isStreaming() throws Open4GLException
>     public String _getRequestId() throws Open4GLException
>     public String _getSSLSubjectName() throws Open4GLException
>     public void _release()

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095