com.sapportals.connector.connection

Interface IConnectionSpec

All Superinterfaces:
ConnectionSpec

public interface IConnectionSpec
extends ConnectionSpec

IConnectionSpec is used by an application component to pass connection request-specific properties to the IConnectionFactory.getConnectionEx method. It is recommended that the IConnectionSpec interface be implemented as a JavaBean. The properties on the ConnectionSpec implementation class must be defined through the getter and setter methods pattern. The implementation of the IConnectionSpec must include a Map of IConnectionProperty properties. That includes the following ConnectionProperties: UserName, Password and Language (Using these specific names). The Language connection property holds the standard language string as defined in java.utils.Locale and NOT the back-end application (EIS) language string. The connector's developer has to translate these strings.

See Also:
ConnectionSpec

Method Summary
 Set<Map.Entry<String,Object>> getAllConnectionProperties()
          Returns a set of pairs (entries) of names and values of IConnectionProperty objects For example ["User","myUser"],["Password,"myPassword"]...
 Object getPropertyValue(String propertyName)
          Get the value of one property
 IConnectionSpecMetaData retrieveConnectionSpecMetaData()
          The interface IConnectionSpecMetaData defines the metadata of the properties that compose the ConnectionSpec
 void setPropertyValue(String propertyName, Object propertyValue)
          Set the value of one property
 

Method Detail

setPropertyValue

void setPropertyValue(String propertyName,
                      Object propertyValue)
Set the value of one property

Parameters:
propertyName - the name of the property to set value for
propertyValue - the new property value

getPropertyValue

Object getPropertyValue(String propertyName)
Get the value of one property

Parameters:
propertyName - the name of the property to set value for
Returns:
propertyValue

retrieveConnectionSpecMetaData

IConnectionSpecMetaData retrieveConnectionSpecMetaData()
The interface IConnectionSpecMetaData defines the metadata of the properties that compose the ConnectionSpec

Returns:
IConnectionSpecMetaData metadata for connectionSpec

getAllConnectionProperties

Set<Map.Entry<String,Object>> getAllConnectionProperties()
Returns a set of pairs (entries) of names and values of IConnectionProperty objects For example ["User","myUser"],["Password,"myPassword"]...

Returns:
set containing all connection properties
Access Rights

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] FRAMEWORK-EXT [sap.com] tc/conn/connectorframeworkdeprecated - EP-CON-CF
[sap.com] EP-BASIS-API [sap.com] tc/epbc/connectivityfw/api api EP-PIN


Copyright 2011 SAP AG Complete Copyright Notice