349350351352353354355356357358359
* to the type of work being fired. * @param work */ private PerEntityWork(Work<T> work) { entity = work.getEntity(); WorkType type = work.getType(); // sets the initial state: switch ( type ) { case ADD: add = true; break;
387388389390391392393394395396397
* work is added to the plan. * @param work */ public void addWork(Work<T> work) { entity = work.getEntity(); WorkType type = work.getType(); switch ( type ) { case INDEX: batch = true; // not breaking intentionally case UPDATE:
353354355356357358359360361362363
391392393394395396397398399400401
106107108109110111112113114115116
if ( builder == null ) { throw new IllegalArgumentException( entityType.getName() + " is not a mapped entity (don't forget to add @Indexed)" ); } else { WorkType type; if ( id == null ) { type = WorkType.PURGE_ALL; } else { type = WorkType.PURGE;
342343344345346347348349350351352
380381382383384385386387388389390
398399400401402403404405406407408
360361362363364365366367368369370