Package com.progress.open4gl.javaproxy
Class ProObject
java.lang.Object
com.progress.open4gl.javaproxy.ProObject
- All Implemented Interfaces:
SDOFactory
- Direct Known Subclasses:
AppObject
,Procedure
,SubAppObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final long
protected static final long
protected static final long
protected IPoolProps
protected static final long
protected static final String
protected static final String
protected static final String
protected static final String
protected static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Stop any outstanding request from any object that shares this connection._createSDOProcObject
(String procName) Create a pre-defined ProcObject that knows how to talk to an SDO whose procedure name is specified by procname._createSDOResultSet
(String procName, String whereClause, String sortBy, SDOParameters params) Creates an SDOResultSet object.Get Connection IdReturn the last Return-Value from a Progress procedureReturn the last Return-Value from a Progress procedureReturn the last Return-Value from a Progress procedure_getReturnValue
(String sessionID) Return the last Return-Value from a Progress procedureReturn the last Return-Value from a Progress procedureboolean
Is there an open output temp-table?void
_release()
Decrement reference count on this connection - If last guy, we'll be disconnected from the server.int
int
protected void
finalize()
long
long
protected String
protected com.progress.common.ehnlog.IAppLogger
getLog()
protected IPoolProps
int
return reference to session objectgetSession
(String sessionID) return reference to session objectprotected String
protected int
protected SessionPool
Get the WSAObjectID of this Objectprotected boolean
isClass()
protected boolean
protected static String
newRequestID
(IPoolProps properties) runProcedure
(String procName, ParameterSet params) Run an external non-persistent procedurerunProcedure
(String procName, ParameterSet params, ResultSetSchema schema) Run an external non-persistent procedurerunProcedure
(String requestID, String procName, ParameterSet params) Run an external non-persistent procedurerunProcedure
(String requestID, String procName, ParameterSet params, ResultSetSchema schema) Run an external non-persistent procedurelong
protected String
setSessionID
(String id) void
shutdown()
unconditionally disconnect the server This call makes this object unavailable.toString()
Override the toString method to return the object WSA Object ID
-
Field Details
-
m_notAvailable
protected static final long m_notAvailable- See Also:
-
m_wrongProxyVer
protected static final long m_wrongProxyVer- See Also:
-
m_badOutputVal
protected static final long m_badOutputVal- See Also:
-
m_alreadyBusy
protected static final long m_alreadyBusy- See Also:
-
TYPE_AO
- See Also:
-
TYPE_SO
- See Also:
-
TYPE_PO
- See Also:
-
TYPE_SP
- See Also:
-
TYPE_SC
- See Also:
-
m_properties
-
-
Constructor Details
-
ProObject
protected ProObject() -
ProObject
public ProObject(String appName, IPoolProps properties, com.progress.common.ehnlog.IAppLogger log, String requestID) throws ConnectException, Open4GLException, SystemErrorException -
ProObject
- Throws:
Open4GLException
-
ProObject
- Throws:
Open4GLException
-
-
Method Details
-
newRequestID
-
runProcedure
public RqContext runProcedure(String procName, ParameterSet params) throws Open4GLException, RunTime4GLException, SystemErrorException Run an external non-persistent procedureAll parameters are created and put into a ParameterSet before this call. All output parameters are retrieved after this call returns
- Parameters:
procName
-params
-- Returns:
- Throws:
Open4GLException
RunTime4GLException
SystemErrorException
-
runProcedure
public RqContext runProcedure(String requestID, String procName, ParameterSet params) throws Open4GLException, RunTime4GLException, SystemErrorException Run an external non-persistent procedureAll parameters are created and put into a ParameterSet before this call. All output parameters are retrieved after this call returns
- Parameters:
requestID
-procName
-params
-- Returns:
- Throws:
Open4GLException
RunTime4GLException
SystemErrorException
-
runProcedure
public RqContext runProcedure(String procName, ParameterSet params, ResultSetSchema schema) throws Open4GLException, RunTime4GLException, SystemErrorException Run an external non-persistent procedureAll parameters are created and put into a ParameterSet before this call. All output parameters are retrieved after this call returns. All schemas for the temp table parameters are passed in.
- Parameters:
procName
-params
-schema
-- Returns:
- Throws:
Open4GLException
RunTime4GLException
SystemErrorException
-
runProcedure
public RqContext runProcedure(String requestID, String procName, ParameterSet params, ResultSetSchema schema) throws Open4GLException, RunTime4GLException, SystemErrorException Run an external non-persistent procedureAll parameters are created and put into a ParameterSet before this call. All output parameters are retrieved after this call returns. All schemas for the temp table parameters are passed in.
- Parameters:
requestID
-procName
-params
-schema
-- Returns:
- Throws:
Open4GLException
RunTime4GLException
SystemErrorException
-
getSession
return reference to session object- Returns:
- Throws:
SessionPool.SessionPoolException
Open4GLException
-
getSession
public Session getSession(String sessionID) throws SessionPool.SessionPoolException, Open4GLException return reference to session object- Parameters:
sessionID
-- Returns:
- Throws:
SessionPool.SessionPoolException
Open4GLException
-
_release
Decrement reference count on this connection - If last guy, we'll be disconnected from the server. This call makes this object unavailable.- Throws:
Open4GLException
SystemErrorException
-
shutdown
unconditionally disconnect the server This call makes this object unavailable.- Throws:
Open4GLException
SystemErrorException
-
_getConnectionId
Get Connection Id- Returns:
- Throws:
Open4GLException
-
_isStreaming
Is there an open output temp-table?- Returns:
- Throws:
Open4GLException
-
_cancelAllRequests
Stop any outstanding request from any object that shares this connection.- Throws:
Open4GLException
-
_getReturnValue
Return the last Return-Value from a Progress procedure- Returns:
- Throws:
Open4GLException
-
_getRequestId
Return the last Return-Value from a Progress procedure- Returns:
- Throws:
Open4GLException
-
_getSSLSubjectName
Return the last Return-Value from a Progress procedure- Returns:
- Throws:
Open4GLException
-
_getReturnValue
Return the last Return-Value from a Progress procedure- Parameters:
sessionID
-- Returns:
- Throws:
Open4GLException
-
_getProcReturnString
Return the last Return-Value from a Progress procedure- Returns:
- Throws:
Open4GLException
-
getWSAObjectID
Get the WSAObjectID of this Object- Returns:
-
toString
Override the toString method to return the object WSA Object ID -
get_tsCreated
public long get_tsCreated() -
get_tsLastAccessed
public long get_tsLastAccessed() -
set_tsLastAccessed
public long set_tsLastAccessed() -
getRefCount
public int getRefCount() -
addReference
public int addReference() -
deleteReference
- Throws:
SystemErrorException
Open4GLException
-
_createSDOResultSet
public SDOResultSet _createSDOResultSet(String procName, String whereClause, String sortBy, SDOParameters params) throws Open4GLException, ProSQLException Creates an SDOResultSet object. The whereClause, sortBy and params parameters can be null.- Parameters:
procName
- the name of the SDO's .w filewhereClause
- a where clause for the SDO's querysortBy
- a field sort list for the SDO's queryparams
- SDOResultSet initial parameters- Returns:
- an SDOResultSet object
- Throws:
ProSQLException
- if an SDO data access error occursOpen4GLException
- if an Open4GL error occurs
-
_createSDOProcObject
Create a pre-defined ProcObject that knows how to talk to an SDO whose procedure name is specified by procname.- Specified by:
_createSDOProcObject
in interfaceSDOFactory
- Throws:
Open4GLException
-
isClass
protected boolean isClass() -
getAppName
-
getProperties
-
getLog
protected com.progress.common.ehnlog.IAppLogger getLog() -
getSessionMode
protected int getSessionMode() -
getSessionPool
-
getSessionID
-
setSessionID
-
finalize
protected void finalize() -
isSessionAvailable
protected boolean isSessionAvailable()
-