public class OpenAppObject extends java.lang.Object implements SDOFactory
OpenAppObjectImpl
is the primary class for interacting with procedures
deployed to an application server using the Java Open Client API.Modifier and Type | Field and Description |
---|---|
protected com.progress.open4gl.javaproxy.OpenAppObjectImpl |
m_dynAOImpl |
protected static long |
m_wrongProxyVer |
Constructor and Description |
---|
OpenAppObject(Connection connection,
java.lang.String appService)
Establishes a connection to an AppServer using the Java OpenAPI
|
OpenAppObject(Connection connection,
java.lang.String appService,
com.progress.common.ehnlog.IAppLogger log)
Establishes a connection to an AppServer using the Java OpenAPI
|
OpenAppObject(java.lang.String appService)
Deprecated.
use an
OpenAppObject constructor that accepts a URL or a
Connection |
OpenAppObject(java.lang.String userId,
java.lang.String password,
java.lang.String appServerInfo,
java.lang.String appService)
Deprecated.
use an
OpenAppObject constructor that accepts a URL or a
Connection |
OpenAppObject(java.lang.String urlString,
java.lang.String userId,
java.lang.String password,
java.lang.String appServerInfo,
java.lang.String appService)
Establishes a connection to an AppServer using the Java OpenAPI
|
Modifier and Type | Method and Description |
---|---|
void |
_cancelAllRequests()
Stops or cancels any outstanding requests to the AppServer by this object or
one that shares its connection.
|
SDOInterface |
_createSDOProcObject(java.lang.String procName)
Creates a ProcObject that knows how to talk to SDO's.
|
SDOResultSet |
_createSDOResultSet(java.lang.String sdoName)
Creates an SDO ResultSet object.
|
SDOResultSet |
_createSDOResultSet(java.lang.String sdoName,
java.lang.String whereClause,
java.lang.String sortBy)
Creates an SDO ResultSet object.
|
SDOResultSet |
_createSDOResultSet(java.lang.String sdoName,
java.lang.String whereClause,
java.lang.String sortBy,
SDOParameters params)
Creates an SDO ResultSet object.
|
java.lang.Object |
_getConnectionId()
Returns a string containing a unique identifier for this connection.
|
java.lang.String |
_getProcReturnString()
Returns the current value of the AppServer RETURN-VALUE function.
|
java.lang.Object |
_getRequestId()
Returns a unique string identifying the request most recently run.
|
java.lang.Object |
_getSSLSubjectName()
Provides the SSL server's subject name that is obtained from its validated
digital certificate.
|
boolean |
_isStreaming()
Returns true if currently streaming an output result set.
|
void |
_release()
Makes this object unavailable for further use.
|
OpenClassObject |
createCO(java.lang.String objTypeName)
Creates and instantiate a class object on the connected AppServer.
|
OpenClassObject |
createCO(java.lang.String objTypeName,
int statelessMode)
Creates and instantiate a class object on the connected AppServer.
|
OpenProcObject |
createPO(java.lang.String procName)
Creates and runs a persistent procedure on the connected AppServer.
|
OpenProcObject |
createPO(java.lang.String procName,
int statelessMode)
Creates and runs a persistent procedure on the connected AppServer.
|
OpenProcObject |
createPO(java.lang.String procName,
ParamArray paramArray)
Creates and runs a persistent procedure on the connected AppServer.
|
OpenProcObject |
createPO(java.lang.String procName,
ProcedureType procType) |
boolean |
isConnected()
For supported server connections, this method checks that the server can
successfully serve requests.
|
void |
runProc(java.lang.String procName,
ParamArray paramArray)
Runs a non-persistent procedure on the connected AppServer.
|
protected static final long m_wrongProxyVer
protected com.progress.open4gl.javaproxy.OpenAppObjectImpl m_dynAOImpl
public OpenAppObject(Connection connection, java.lang.String appService) throws Open4GLException, ConnectException, SystemErrorException, java.io.IOException
connection
- defines connection parameters to access the AppServerappService
- name of the application service provided by the AppServerOpen4GLException
ConnectException
SystemErrorException
java.io.IOException
public OpenAppObject(Connection connection, java.lang.String appService, com.progress.common.ehnlog.IAppLogger log) throws Open4GLException, ConnectException, SystemErrorException, java.io.IOException
connection
- defines connection parameters to access the AppServerappService
- name of the application service provided by the AppServerOpen4GLException
ConnectException
SystemErrorException
java.io.IOException
public OpenAppObject(java.lang.String urlString, java.lang.String userId, java.lang.String password, java.lang.String appServerInfo, java.lang.String appService) throws Open4GLException, ConnectException, SystemErrorException, java.io.IOException
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
AppServerOpen4GLException
ConnectException
SystemErrorException
java.io.IOException
@Deprecated public OpenAppObject(java.lang.String userId, java.lang.String password, java.lang.String appServerInfo, java.lang.String appService) throws Open4GLException, ConnectException, SystemErrorException, java.io.IOException
OpenAppObject
constructor that accepts a URL or a
Connection
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
AppServerOpen4GLException
ConnectException
SystemErrorException
java.io.IOException
@Deprecated public OpenAppObject(java.lang.String appService) throws Open4GLException, ConnectException, SystemErrorException, java.io.IOException
OpenAppObject
constructor that accepts a URL or a
Connection
appService
- name of the application service provided by the AppServerOpen4GLException
ConnectException
SystemErrorException
java.io.IOException
public void _release() throws Open4GLException, SystemErrorException
Open4GLException
SystemErrorException
public java.lang.Object _getConnectionId() throws Open4GLException
Open4GLException
public java.lang.Object _getRequestId() throws Open4GLException
Open4GLException
public java.lang.Object _getSSLSubjectName() throws Open4GLException
Open4GLException
public boolean _isStreaming() throws Open4GLException
Open4GLException
public void _cancelAllRequests() throws Open4GLException
Open4GLException
public java.lang.String _getProcReturnString() throws Open4GLException
Open4GLException
public SDOResultSet _createSDOResultSet(java.lang.String sdoName) throws Open4GLException, ProSQLException
sdoName
- Specifies the filename of the SmartDataObjectOpen4GLException
ProSQLException
public SDOResultSet _createSDOResultSet(java.lang.String sdoName, java.lang.String whereClause, java.lang.String sortBy) throws Open4GLException, ProSQLException
sdoName
- Specifies the filename of the SmartDataObjectwhereClause
- Specifies where expression for querysortBy
- Specifies sort expression for queryOpen4GLException
ProSQLException
public SDOResultSet _createSDOResultSet(java.lang.String sdoName, java.lang.String whereClause, java.lang.String sortBy, SDOParameters params) throws Open4GLException, ProSQLException
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.Open4GLException
ProSQLException
public SDOInterface _createSDOProcObject(java.lang.String procName) throws Open4GLException
_createSDOProcObject
in interface SDOFactory
procName
- Specifies the procedure nameOpen4GLException
public void runProc(java.lang.String procName, ParamArray paramArray) throws Open4GLException, RunTime4GLException, SystemErrorException
procName
- Name of the procedure to run, including any path relative
to the PROPATHparamArray
- Holds the parameters for the procedureOpen4GLException
RunTime4GLException
SystemErrorException
public OpenProcObject createPO(java.lang.String procName, ParamArray paramArray) throws Open4GLException, RunTime4GLException, SystemErrorException
procName
- Name of the procedure to run, including any path relative
to the PROPATHparamArray
- Holds the parameters for the procedureOpen4GLException
RunTime4GLException
SystemErrorException
public OpenProcObject createPO(java.lang.String procName, int statelessMode) throws Open4GLException, RunTime4GLException, SystemErrorException
procName
- Name of the procedure to run, including any path
relative to the PROPATHstatelessMode
- Specifies stateless modeOpen4GLException
RunTime4GLException
SystemErrorException
public OpenProcObject createPO(java.lang.String procName, ProcedureType procType) throws Open4GLException, RunTime4GLException, SystemErrorException
public OpenProcObject createPO(java.lang.String procName) throws Open4GLException, RunTime4GLException, SystemErrorException
procName
- Name of the procedure to run, including any path relative to
the PROPATHOpen4GLException
RunTime4GLException
SystemErrorException
public OpenClassObject createCO(java.lang.String objTypeName, int statelessMode) throws Open4GLException, RunTime4GLException, SystemErrorException
objTypeName
- class type namestatelessMode
- Specifies stateless modeOpen4GLException
RunTime4GLException
SystemErrorException
public OpenClassObject createCO(java.lang.String objTypeName) throws Open4GLException, RunTime4GLException, SystemErrorException
objTypeName
- class type nameOpen4GLException
RunTime4GLException
SystemErrorException
public boolean isConnected()