Package com.progress.open4gl.javaproxy
Class OpenAppObject
java.lang.Object
com.progress.open4gl.javaproxy.OpenAppObject
- All Implemented Interfaces:
SDOFactory
OpenAppObjectImpl is the primary class for interacting with procedures
deployed to an application server using the Java Open Client API.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.progress.open4gl.javaproxy.OpenAppObjectImplprotected static final long -
Constructor Summary
ConstructorsConstructorDescriptionOpenAppObject(Connection connection, String appService) Establishes a connection to an AppServer using the Java OpenAPIOpenAppObject(Connection connection, String appService, com.progress.common.ehnlog.IAppLogger log) Establishes a connection to an AppServer using the Java OpenAPIOpenAppObject(String appService) Deprecated.OpenAppObject(String userId, String password, String appServerInfo, String appService) Deprecated.use anOpenAppObjectconstructor that accepts a URL or aConnectionOpenAppObject(String urlString, String userId, String password, String appServerInfo, String appService) Establishes a connection to an AppServer using the Java OpenAPI -
Method Summary
Modifier and TypeMethodDescriptionvoidStops or cancels any outstanding requests to the AppServer by this object or one that shares its connection._createSDOProcObject(String procName) Creates a ProcObject that knows how to talk to SDO's._createSDOResultSet(String sdoName) Creates an SDO ResultSet object._createSDOResultSet(String sdoName, String whereClause, String sortBy) Creates an SDO ResultSet object._createSDOResultSet(String sdoName, String whereClause, String sortBy, SDOParameters params) Creates an SDO ResultSet object.Returns a string containing a unique identifier for this connection.Returns the current value of the AppServer RETURN-VALUE function.Returns a unique string identifying the request most recently run.Provides the SSL server's subject name that is obtained from its validated digital certificate.booleanReturns true if currently streaming an output result set.void_release()Makes this object unavailable for further use.Creates and instantiate a class object on the connected AppServer.Creates and instantiate a class object on the connected AppServer.Creates and runs a persistent procedure on the connected AppServer.Creates and runs a persistent procedure on the connected AppServer.createPO(String procName, ParamArray paramArray) Creates and runs a persistent procedure on the connected AppServer.createPO(String procName, ProcedureType procType) booleanFor supported server connections, this method checks that the server can successfully serve requests.voidrunProc(String procName, ParamArray paramArray) Runs a non-persistent procedure on the connected AppServer.
-
Field Details
-
m_wrongProxyVer
protected static final long m_wrongProxyVer- See Also:
-
m_dynAOImpl
protected com.progress.open4gl.javaproxy.OpenAppObjectImpl m_dynAOImpl
-
-
Constructor Details
-
OpenAppObject
public OpenAppObject(Connection connection, String appService) throws Open4GLException, ConnectException, SystemErrorException, IOException Establishes a connection to an AppServer using the Java OpenAPI- Parameters:
connection- defines connection parameters to access the AppServerappService- name of the application service provided by the AppServer- Throws:
Open4GLExceptionConnectExceptionSystemErrorExceptionIOException
-
OpenAppObject
public OpenAppObject(Connection connection, String appService, com.progress.common.ehnlog.IAppLogger log) throws Open4GLException, ConnectException, SystemErrorException, IOException Establishes a connection to an AppServer using the Java OpenAPI- Parameters:
connection- defines connection parameters to access the AppServerappService- name of the application service provided by the AppServer- Throws:
Open4GLExceptionConnectExceptionSystemErrorExceptionIOException
-
OpenAppObject
public OpenAppObject(String urlString, String userId, String password, String appServerInfo, String appService) throws Open4GLException, ConnectException, SystemErrorException, IOException Establishes a connection to an AppServer using the Java OpenAPI- Parameters:
urlString- URL to connect to an Appserver URLuserId- user ID required to access the AppServerpassword- password required to access the AppServerappServerInfo- info required by the application service at connection timeappService- name of the application service provided by the AppServer- Throws:
Open4GLExceptionConnectExceptionSystemErrorExceptionIOException
-
OpenAppObject
@Deprecated public OpenAppObject(String userId, String password, String appServerInfo, String appService) throws Open4GLException, ConnectException, SystemErrorException, IOException Deprecated.use anOpenAppObjectconstructor that accepts a URL or aConnectionEstablishes a connection to an AppServer using the Java OpenAPI. The url string defaults to http://localhost:8810/apsv/.- Parameters:
userId- user ID required to access the AppServerpassword- password required to access the AppServerappServerInfo- info required by the application service at connection timeappService- name of the application service provided by the AppServer- Throws:
Open4GLExceptionConnectExceptionSystemErrorExceptionIOException
-
OpenAppObject
@Deprecated public OpenAppObject(String appService) throws Open4GLException, ConnectException, SystemErrorException, IOException Deprecated.use anOpenAppObjectconstructor that accepts a URL or aConnectionEstablishes a connection to an AppServer using the Java OpenAPI. The url string defaults to http://localhost:8810/apsv/.- Parameters:
appService- name of the application service provided by the AppServer- Throws:
Open4GLExceptionConnectExceptionSystemErrorExceptionIOException
-
-
Method Details
-
_release
Makes this object unavailable for further use.- Throws:
Open4GLExceptionSystemErrorException
-
_getConnectionId
Returns a string containing a unique identifier for this connection.- Throws:
Open4GLException
-
_getRequestId
Returns a unique string identifying the request most recently run.- Throws:
Open4GLException
-
_getSSLSubjectName
Provides the SSL server's subject name that is obtained from its validated digital certificate.- Throws:
Open4GLException
-
_isStreaming
Returns true if currently streaming an output result set.- Throws:
Open4GLException
-
_cancelAllRequests
Stops or cancels any outstanding requests to the AppServer by this object or one that shares its connection.- Throws:
Open4GLException
-
_getProcReturnString
Returns the current value of the AppServer RETURN-VALUE function.- Throws:
Open4GLException
-
_createSDOResultSet
Creates an SDO ResultSet object.- Parameters:
sdoName- Specifies the filename of the SmartDataObject- Throws:
Open4GLExceptionProSQLException
-
_createSDOResultSet
public SDOResultSet _createSDOResultSet(String sdoName, String whereClause, String sortBy) throws Open4GLException, ProSQLException Creates an SDO ResultSet object.- Parameters:
sdoName- Specifies the filename of the SmartDataObjectwhereClause- Specifies where expression for querysortBy- Specifies sort expression for query- Throws:
Open4GLExceptionProSQLException
-
_createSDOResultSet
public SDOResultSet _createSDOResultSet(String sdoName, String whereClause, String sortBy, SDOParameters params) throws Open4GLException, ProSQLException Creates an SDO ResultSet object.- Parameters:
sdoName- Specifies the filename of the SmartDataObjectwhereClause- Specifies where expression for querysortBy- Specifies sort expression for queryparams- Used for passing additional initial parameters such as scrolling mode.- Throws:
Open4GLExceptionProSQLException
-
_createSDOProcObject
Creates a ProcObject that knows how to talk to SDO's.- Specified by:
_createSDOProcObjectin interfaceSDOFactory- Parameters:
procName- Specifies the procedure name- Throws:
Open4GLException
-
runProc
public void runProc(String procName, ParamArray paramArray) throws Open4GLException, RunTime4GLException, SystemErrorException Runs a non-persistent procedure on the connected AppServer.- Parameters:
procName- Name of the procedure to run, including any path relative to the PROPATHparamArray- Holds the parameters for the procedure- Throws:
Open4GLExceptionRunTime4GLExceptionSystemErrorException
-
createPO
public OpenProcObject createPO(String procName, ParamArray paramArray) throws Open4GLException, RunTime4GLException, SystemErrorException Creates and runs a persistent procedure on the connected AppServer.- Parameters:
procName- Name of the procedure to run, including any path relative to the PROPATHparamArray- Holds the parameters for the procedure- Throws:
Open4GLExceptionRunTime4GLExceptionSystemErrorException
-
createPO
public OpenProcObject createPO(String procName, int statelessMode) throws Open4GLException, RunTime4GLException, SystemErrorException Creates and runs a persistent procedure on the connected AppServer.- Parameters:
procName- Name of the procedure to run, including any path relative to the PROPATHstatelessMode- Specifies stateless mode- Throws:
Open4GLExceptionRunTime4GLExceptionSystemErrorException
-
createPO
public OpenProcObject createPO(String procName, ProcedureType procType) throws Open4GLException, RunTime4GLException, SystemErrorException -
createPO
public OpenProcObject createPO(String procName) throws Open4GLException, RunTime4GLException, SystemErrorException Creates and runs a persistent procedure on the connected AppServer.- Parameters:
procName- Name of the procedure to run, including any path relative to the PROPATH- Throws:
Open4GLExceptionRunTime4GLExceptionSystemErrorException
-
createCO
public OpenClassObject createCO(String objTypeName, int statelessMode) throws Open4GLException, RunTime4GLException, SystemErrorException Creates and instantiate a class object on the connected AppServer.- Parameters:
objTypeName- class type namestatelessMode- Specifies stateless mode- Throws:
Open4GLExceptionRunTime4GLExceptionSystemErrorException
-
createCO
public OpenClassObject createCO(String objTypeName) throws Open4GLException, RunTime4GLException, SystemErrorException Creates and instantiate a class object on the connected AppServer.- Parameters:
objTypeName- class type name- Throws:
Open4GLExceptionRunTime4GLExceptionSystemErrorException
-
isConnected
public boolean isConnected()For supported server connections, this method checks that the server can successfully serve requests.- Returns:
- true if connection is valid, false otherwise
-
OpenAppObjectconstructor that accepts a URL or aConnection