setDataAdapter method

void setDataAdapter(
  1. String? dataAdapter
)

Setter method that sets the name of the Data Adapter (within the Adapter Set used by the current session) that supplies all the items for this MpnSubscription.

The Data Adapter name is configured on the server side through the "name" attribute of the "data_provider" element, in the "adapters.xml" file that defines the Adapter Set (a missing attribute configures the "DEFAULT" name).
Note that if more than one Data Adapter is needed to supply all the items in a set of items, then it is not possible to group all the items of the set in a single MpnSubscription. Multiple MpnSubscriptions have to be defined.

Default The default Data Adapter for the Adapter Set, configured as "DEFAULT" on the Server.

Lifecycle This method can only be called while the MpnSubscription instance is in its "inactive" state.

Notification A change to this setting will be notified through a call to MpnSubscriptionListener.onPropertyChanged with argument adapter on any MpnSubscriptionListener listening to the related MpnSubscription.

  • dataAdapter the name of the Data Adapter. A null value is equivalent to the "DEFAULT" name.

Throws IllegalStateException if the Subscription is currently "active".

  • See ConnectionDetails.setAdapterSet

Implementation

external void setDataAdapter(String? dataAdapter);