ccc.domain
Class WorkingCopy<T>

java.lang.Object
  extended by ccc.domain.Entity
      extended by ccc.domain.WorkingCopy<T>
Type Parameters:
T - The type of deltas this working copy handles.
All Implemented Interfaces:
Jsonable, java.io.Serializable
Direct Known Subclasses:
FileWorkingCopy, PageWorkingCopy

public abstract class WorkingCopy<T>
extends Entity

A working copy for a resource.

Author:
Civic Computing Ltd.
See Also:
Serialized Form

Constructor Summary
protected WorkingCopy()
          Constructor: for persistence only.
 
Method Summary
protected abstract  T delta()
          Retrieve the working copy's state.
protected abstract  void delta(T delta)
          Update this working copy.
 
Methods inherited from class ccc.domain.Entity
equals, getId, getVersion, hashCode, setId, toJson, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorkingCopy

protected WorkingCopy()
Constructor: for persistence only.

Method Detail

delta

protected abstract T delta()
Retrieve the working copy's state.

Returns:
A delta describing this working copy's state.

delta

protected abstract void delta(T delta)
Update this working copy.

Parameters:
delta - The delta describing this working copy's state.


Copyright © 2010. All Rights Reserved.