public abstract class EntityModification<T extends EntityId,P extends Id,E extends Entity<T,P>,EB extends Entity.EntityBuilder<T,P,E,EB>> extends Object implements Iterable<FieldId>
Modifier and Type | Class and Description |
---|---|
static class |
EntityModification.EntityModificationBuilder<T extends EntityId,P extends Id,E extends Entity<T,P>,EB extends Entity.EntityBuilder<T,P,E,EB>,W extends EntityModification<T,P,E,EB>,SELF extends EntityModification.EntityModificationBuilder<T,P,E,EB,W,SELF>> |
protected static class |
EntityModification.NameAndSourceWrapper |
protected static class |
EntityModification.NamedValueWithSourceEquivalence |
Modifier and Type | Field and Description |
---|---|
protected static FieldChange |
NONE |
Modifier | Constructor and Description |
---|---|
protected |
EntityModification(Map<FieldId,Object> fieldModifications) |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
applyEntitySpecificModifiedField(FieldChange fieldChange,
EB builder) |
boolean |
contains(FieldId field) |
protected abstract EB |
createEntityBuilder(E entity) |
protected abstract FieldChange |
createEntitySpecificFieldChange(FieldId field,
E entity) |
protected FieldChange |
createFieldChange(FieldId field,
Object oldValue) |
Set<FieldChange> |
createFieldChanges(E entity) |
E |
createModified(E entity) |
EB |
createModifiedBuilder(E entity) |
<F> F |
get(FieldId field,
Class<F> expectedType) |
protected Map<FieldId,Object> |
getFieldModifications() |
boolean |
isEmpty() |
Iterator<FieldId> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected static final FieldChange NONE
public boolean contains(FieldId field)
public boolean isEmpty()
protected abstract boolean applyEntitySpecificModifiedField(FieldChange fieldChange, EB builder)
public final Set<FieldChange> createFieldChanges(E entity)
protected abstract FieldChange createEntitySpecificFieldChange(FieldId field, E entity)
protected final FieldChange createFieldChange(FieldId field, Object oldValue)
Copyright © 2010 - 2018 edorasware ag. All Rights Reserved.