public interface IConnectionFactory extends ConnectionFactory
| Modifier and Type | Method and Description |
|---|---|
IConnection |
getConnectionEx(IConnectionSpec connectionSpec)
Gets a connection to an EIS instance.
|
IConnectionSpec |
getConnectionSpec()
The interface IConnectionSpec is used by an application component to
pass connection request-specific properties to the
IConnectionFactory.getConnectionEx method.
|
int |
getConnectionTimeOut()
Returns the maximum time to wait for a connection.
|
IConnectorMetaData |
getMetaDataEx()
Gets metadata for the Resource Adapter.
|
void |
setConnectionTimeOut(int msTimeOut)
Sets the maximum time to wait for a connection.
|
getConnection, getConnection, getMetaData, getRecordFactorysetReferencegetReferenceIConnectorMetaData getMetaDataEx() throws ConnectorException
ConnectorException - if connection is nullIConnectorMetaDatavoid setConnectionTimeOut(int msTimeOut)
msTimeOut - the time to wait in millisecondsint getConnectionTimeOut()
IConnectionSpec getConnectionSpec() throws ConnectorException
ConnectorException - if connection is nullIConnectionSpecIConnection getConnectionEx(IConnectionSpec connectionSpec) throws ConnectionFailedException, ConnectorException
connectionSpec - connection parameters and security information
specified as ConnectionSpec instanceConnectionFailedException - failed to get a connection to the EIS
instance. Examples of error cases are: Invalid specification of
input parameters Invalid configuration of
ManagedConnectionFactory-- example: invalid server name
Application server-internal error--example: connection pool
related error Communication error EIS-specific error--example:
EIS not active Resource adapter-internal error Security related
error; example: invalid user Failure to allocate system
resourcesConnectorException - if connection is nullIConnectionSpec,
IConnection| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/connectivityfw/api
|
api
|
EP-PIN
|
[sap.com] FRAMEWORK-EXT
|
[sap.com]
|
-
|
EP-CON-CF
|
[sap.com] FRAMEWORK-EXT
|
[sap.com]
|
default
|
EP-CON-CF
|
Copyright 2021 SAP SE Complete Copyright Notice