APIdia Launch Partner
Top Description Fields Constructors Methods
net.ucanaccess.commands

public Class CompositeFeedbackAction

extends Object
implements IFeedbackAction
Class Inheritance
All Implemented Interfaces
net.ucanaccess.commands.IFeedbackAction
Imports
java.sql.SQLException, java.util.ArrayList, .List

Composite pattern implementation for IFeedbackAction.

Holds a list of feedback actions to be executed sequentially.

Field Summary

Modifier and TypeField and Description
private final List<IFeedbackAction>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the action was added, false otherwise
add
(IFeedbackAction
the action to add
ifa
)

Adds a feedback action to the composite.

public void
doAction(ICommand toChange)

Implements net.ucanaccess.commands.IFeedbackAction.doAction.

Executes the feedback action on the specified command.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

actionsback to summary
private final List<IFeedbackAction> actions

Constructor Detail

CompositeFeedbackActionback to summary
public CompositeFeedbackAction()

Method Detail

addback to summary
public boolean add(IFeedbackAction ifa)

Adds a feedback action to the composite.

Parameters
ifa:IFeedbackAction

the action to add

Returns:boolean

true if the action was added, false otherwise

doActionback to summary
public void doAction(ICommand toChange) throws SQLException

Implements net.ucanaccess.commands.IFeedbackAction.doAction.

Doc from net.ucanaccess.commands.IFeedbackAction.doAction.

Executes the feedback action on the specified command.

This method is called after the physical persistence to the Access file has succeeded, allowing for final adjustments to the command's state.

Annotations
@Override
Exceptions
SQLException:
if an error occurs during the execution of the feedback action
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override