Sun Java System Mobile Enterprise Platform 1.0 Developer's Guide for Enterprise Connectors

The Command Class

Table 3–3 lists the constructor and methods belonging to the Commandclass. This class is the base class for all business object commands. The classes that extend this class are described in The DeleteCommand Class, The InsertCommand Class, and The UpdateCommand Class.

Table 3–3 Class com.sun.mep.connector.api.Command

Method 

Description 

public Command(T bobject)

Constructor that takes a business object argument. 

public abstract void execute()

Executes this command against a back end. Unchecked exceptions, such as java.lang.RuntimeException, can be used to report errors.

public T getBusinessObject()

Returns the business object on which this command is executed.