setCommandSecondLevelDataAdapter method
- String? dataAdapter
Setter method that sets the name of the second-level Data Adapter (within the Adapter Set used by the current session) that supplies all the second-level items.
All the possible second-level items should be supplied in "MERGE" mode
with snapshot available.
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).
Default The default Data Adapter for the Adapter Set, configured as "DEFAULT" on the Server.
Lifecycle This method can only be called while the Subscription instance is in its "inactive" state.
Throws IllegalStateException if the Subscription is currently "active".
Throws IllegalStateException if the Subscription mode is not "COMMAND".
-
dataAdapter
the name of the Data Adapter. A null value is equivalent to the "DEFAULT" name.
Implementation
void setCommandSecondLevelDataAdapter(String? dataAdapter) {
_dataAdapter2 = dataAdapter;
}