*
* @param work the work instance to add
*/
public void addWork(Work<T> work) {
entity = work.getEntity();
WorkType type = work.getType();
switch ( type ) {
case INDEX:
case UPDATE:
if ( add && !delete ) {
// noop: the entity was newly created in this same unit of work