Java Data Sources > Working with the Server/Java Mapping > SDM (Stylable Data Mapper) > IlsSDMDataSource
 
IlsSDMDataSource
Description
The SDM data source is a bridge class notified by the server for creation, deletion, or update in the SDM model, of its activities, constraints, reservations, and resources. Thus, an SDM data source is also a source events class which manages listeners. The class IlsSDMDS2IlvSDMViewAdapter provides a default implementation for all events produced by the SDM data source.
Listeners
*DataSourceListener: is notified when an event (creation or update) occurs on the origin of the view, that is to say the SDM model.
*BatchListener: is notified when the beginning or the end of a set of events occurs. Note that the listening of these events is not mandatory, but useful to optimize the operations following changes in the data source.
*SDMDSListener: is notified when an activity, a constraint, a reservation or a resource is added, removed or updated.
Adapter
An adapter (IlsSDMDS2IlvSDMViewAdapter) is provided to implement all the listeners managed by the SDM data source. This adapter also interfaces an IlvSDMView instance to synchronize the data source and the SDM model, according to Rogue Wave Server notification and IlvSDMModel modification events.

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.