com.iplanet.jato.model
Interface UpdatingModel
- All Superinterfaces:
- ExecutingModel, Model
- All Known Subinterfaces:
- UpdateQueryModel
- public interface UpdatingModel
- extends ExecutingModel
Executing model that supports updating of existing data. This interface
defines a generic operation that can be mapped to a model-specific operation
by implementing models. If a model does not support this operation, it
generally should not implement this interface.
- Version:
- JATO/1.2.2 $Id: UpdatingModel.java,v 1.8 2002/03/16 03:26:32 todd Exp $
update
public java.lang.Object update(ModelExecutionContext context)
throws ModelControlException
- Applies any cached changes to the backing data store, if any.
Note that there is no requirement for a model to cache
changes, and indeed, it can elect to make changes to the
backing store immediately. However this method enables this
flexibility, if required. For example, this method might
be useful for caching EJB updates rather than pushing them
to the EJB immediately.
- Parameters:
context
- The execution context that specifies detail information pertinent
to the execution of this model control- Returns:
- An opaque implementation-dependent object encapsulating information
related to the execution of this method
- Throws:
ModelControlException
- Thrown if an error occurs executing the model