The Enterprise Connector Business Object (ECBO) API contains the following classes:
com.sun.mep.connector.api.BusinessObject is the base class for all business objects. Business objects are the entities synchronized with client applications. The fields of the Enterprise Connector business object must match those of the business object for the corresponding client application.
com.sun.mep.connector.api.BusinessObjectProvider is a provider class for instances of BusinessObject.
com.sun.mep.connector.api.Command is the base class for all business object commands.
com.sun.mep.connector.api.InsertCommand is the base class for the command that inserts a business object into the database or EIS/EAI system.
com.sun.mep.connector.api.UpdateCommand is the base class for the command that updates a business object in the database or EIS/EAI system.
com.sun.mep.connector.api.DeleteCommand is the base class for the command that deletes a business object from the database or EIS/EAI system.
com.sun.mep.connector.api.SessionContext is a helper class used by BusinessObjectProvider. It stores contextual information about the session in which a BusinessObjectProvider is instantiated.
com.sun.mep.connector.api.TransactionManager is a helper class used by BusinessObjectProvider. It supports methods for starting, stopping, and aborting database transactions.
The MusicDB example implements its own versions of all of these classes except for SessionContext. It uses the default implementation of SessionContext.
See Chapter 3, Classes and Methods in the Enterprise Connector Business Object API Package, for summaries of the classes and methods in the ECBO API packages.
To synchronize data with an EIS/EAI system such as Siebel or SAP, your BusinessObjectProvider implementation and the three command implementations will need to call methods that access the Sun JCA Adapter for that system. These methods are provided by the Sun Java Composite Application Platform Suite (Java CAPS). See Accessing a Sun JCA Adapter for an EIS/EAI System for details.