com.sapportals.connector.connection
Interface INative
public interface INative
The interface INative provides a set of handles to various interfaces that
an EIS can expose directly to the connector client application.
Reasons to use native API access are:
- Getting a better performance
when using the native API directly
- Using legacy code that is written
using the native API
- Using a function that the generic interface does
not expose
The INative interface serves as a wrapper to the interface
exposed by the EIS, allowing the consumer code to directly access the
resource without using the Connector Framework interface. The connector still
performs the connection, and then hands to the consumer the native
connection interface. The native connection interface is an entry point
interface and can be used to create every other native interface. However,
in the scenario that other native interfaces are not available through
connection factory or connection interfaces, the connector must also provide
those inaccessible interfaces. The native module exposes a list of all
available native interfaces by name; the consumer can obtain reference to a
native interface by providing the interfaces name.
|
Method Summary |
Object |
getNative(String interfaceName)
Returns the handle to the requested interface of the EIS. |
boolean |
supports(String interfaceName)
Returns whether this native interface supports the given interface name. |
supports
boolean supports(String interfaceName)
throws ConnectorException
- Returns whether this native interface supports the given interface name.
- Parameters:
interfaceName - a name of an interface of the EIS to retrieve the
handle for
- Returns:
- boolean whether this native interface supports the given
interface name
- Throws:
ConnectorException
getNative
Object getNative(String interfaceName)
throws InterfaceNotSupportedException,
ConnectorException
- Returns the handle to the requested interface of the EIS.
Don't call any of the
close() methods of the native object.
After using the native handler, use IConnection.close()
in order to enable the connector J2EE service reuse this physical
connection
- Parameters:
interfaceName - a name of an interface of the EIS to retrieve the
handle for.
- Returns:
- object the handle to the EIS interface.
- Throws:
InterfaceNotSupportedException
ConnectorException
This class can be accessed from:
|
SC
|
DC
|
Public Part
|
ACH
|
[sap.com] FRAMEWORK-EXT
|
[sap.com] tc/conn/connectorframeworkdeprecated
|
default
|
EP-CON-CF
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/connectivityfw/api
|
api
|
EP-PIN
|
[sap.com] FRAMEWORK-EXT
|
[sap.com] tc/conn/connectorframeworkdeprecated
|
-
|
EP-CON-CF
|
Copyright 2011 SAP AG Complete Copyright Notice