Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.seam.core
Class AbstractMutable

    java.lang.Object
      org.jboss.seam.core.AbstractMutable

All Implemented Interfaces:
  Serializable, Mutable

Direct Known Subclasses:
  Actor, BusinessProcess, ConversationEntries, MailSession, Pageflow, PersistenceContexts, Redirect, Selector, Transition

    public abstract class AbstractMutable

extends Object
implements Mutable

Base helper implementation of Mutable

Author:
  Gavin King
See Also:
  Serialized Form

Constructor Summary
`AbstractMutable()`

Method Summary
`boolean` | `clearDirty()` Get and clear the dirty flag.
`protected void` | `setDirty()` Set the dirty flag.
`protected
`<T> void`
` | `setDirty(T oldValue, T newValue)` Set the dirty flag if the value has changed.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AbstractMutable

    public AbstractMutable()

Method Detail

### clearDirty

    public boolean clearDirty()

  Description copied from interface: `Mutable`
  Get and clear the dirty flag.

  Specified by:
    `clearDirty` in interface `Mutable`
  Returns:
    true if the instance is dirty and requires replication

### setDirty

    protected <T> void setDirty(T oldValue,
                                T newValue)

  Set the dirty flag if the value has changed. Call whenever a subclass attribute is updated.

  Parameters:
    `oldValue` - the old value of an attribute
    `newValue` - the new value of an attribute

### setDirty

    protected void setDirty()

  Set the dirty flag.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD