Class AbstractMapChangeModel<K,V>
java.lang.Object
com.blazebit.persistence.view.impl.change.AbstractChangeModel<C,V>
com.blazebit.persistence.view.impl.change.AbstractPluralChangeModel<Map<K,V>,V,MapDirtyChecker<Map<K,V>,K,V>>
com.blazebit.persistence.view.impl.change.AbstractMapChangeModel<K,V>
- All Implemented Interfaces:
ChangeModel<Map<K,,V>> MapChangeModel<K,,V> PluralChangeModel<Map<K,V>, V>
- Direct Known Subclasses:
MapChangeModelImpl
public abstract class AbstractMapChangeModel<K,V>
extends AbstractPluralChangeModel<Map<K,V>,V,MapDirtyChecker<Map<K,V>,K,V>>
implements MapChangeModel<K,V>
- Since:
- 1.2.0
- Author:
- Christian Beikov
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.blazebit.persistence.view.change.ChangeModel
ChangeModel.ChangeKind -
Field Summary
Fields inherited from class com.blazebit.persistence.view.impl.change.AbstractPluralChangeModel
current, initial, pluralDirtyCheckerFields inherited from class com.blazebit.persistence.view.impl.change.AbstractChangeModel
basicType, type -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMapChangeModel(ManagedViewTypeImplementor<K> keyType, BasicTypeImpl<K> keyBasicType, ManagedViewTypeImplementor<V> type, BasicTypeImpl<V> basicType, Map<K, V> initial, Map<K, V> current, MapDirtyChecker<Map<K, V>, K, V> pluralDirtyChecker) -
Method Summary
Modifier and TypeMethodDescription<X> List<? extends ChangeModel<X>>protected <X> List<? extends ChangeModel<X>>getAll(AbstractMethodAttribute<?, ?> methodAttribute) protected final AbstractMethodAttribute<?,?> getMutableKeyAttribute(Attribute<?, ?> attribute) booleanbooleanbooleanisKeyChanged(String attributePath) booleanisKeyDirty(String attributePath) <K1,V1> List<MapChangeModel<K1, V1>> keyGet(MapAttribute<K, K1, V1> attribute) <K1,V1> List<MapChangeModel<K1, V1>> keyGet(MethodMapAttribute<K, K1, V1> attribute) <E,C extends Collection<E>>
List<PluralChangeModel<C,E>> keyGet(MethodPluralAttribute<K, C, E> attribute) <X> List<SingularChangeModel<X>>keyGet(MethodSingularAttribute<K, X> attribute) <E,C extends Collection<E>>
List<PluralChangeModel<C,E>> keyGet(PluralAttribute<K, C, E> attribute) <X> List<SingularChangeModel<X>>keyGet(SingularAttribute<K, X> attribute) <X> List<? extends ChangeModel<X>>protected final <X> List<? extends ChangeModel<X>>keyGetAll(AbstractMethodAttribute<?, ?> methodAttribute) Methods inherited from class com.blazebit.persistence.view.impl.change.AbstractPluralChangeModel
get, get, get, get, get, get, get, getCurrentState, getInitialState, getKind, getObjectChangeModel, isDirtyMethods inherited from class com.blazebit.persistence.view.impl.change.AbstractChangeModel
equals, get, getAll, getAllImmutable, getAttribute, getChangeModel, getChangeModel, getChangeModelList, getDirtyChanges, getEmptyChangeModel, getEmptyChangeModel, getImmutableChangeModel, getImmutableChangeModel, getImmutableChangeModelList, getMutableAttribute, getType, hashCode, isChanged, isDirty, validateAttributePathMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.blazebit.persistence.view.change.ChangeModel
getCurrentState, getInitialState, getKind, isDirty
-
Constructor Details
-
AbstractMapChangeModel
public AbstractMapChangeModel(ManagedViewTypeImplementor<K> keyType, BasicTypeImpl<K> keyBasicType, ManagedViewTypeImplementor<V> type, BasicTypeImpl<V> basicType, Map<K, V> initial, Map<K, V> current, MapDirtyChecker<Map<K, V>, K, V> pluralDirtyChecker)
-
-
Method Details
-
getElementChanges
- Specified by:
getElementChangesin interfacePluralChangeModel<K,V>
-
getAddedElements
- Specified by:
getAddedElementsin interfacePluralChangeModel<K,V>
-
getRemovedElements
- Specified by:
getRemovedElementsin interfacePluralChangeModel<K,V>
-
getMutatedElements
- Specified by:
getMutatedElementsin interfacePluralChangeModel<K,V>
-
getKeyChanges
- Specified by:
getKeyChangesin interfaceMapChangeModel<K,V>
-
getAddedKeys
- Specified by:
getAddedKeysin interfaceMapChangeModel<K,V>
-
getRemovedKeys
- Specified by:
getRemovedKeysin interfaceMapChangeModel<K,V>
-
getMutatedKeys
- Specified by:
getMutatedKeysin interfaceMapChangeModel<K,V>
-
getObjectChanges
- Specified by:
getObjectChangesin interfaceMapChangeModel<K,V>
-
getAddedObjects
- Specified by:
getAddedObjectsin interfaceMapChangeModel<K,V>
-
getRemovedObjects
- Specified by:
getRemovedObjectsin interfaceMapChangeModel<K,V>
-
getMutatedObjects
- Specified by:
getMutatedObjectsin interfaceMapChangeModel<K,V>
-
isDirty
- Specified by:
isDirtyin interfacePluralChangeModel<K,V>
-
isChanged
- Specified by:
isChangedin interfacePluralChangeModel<K,V>
-
isKeyDirty
- Specified by:
isKeyDirtyin interfaceMapChangeModel<K,V>
-
isKeyChanged
- Specified by:
isKeyChangedin interfaceMapChangeModel<K,V>
-
keyGet
- Specified by:
keyGetin interfaceMapChangeModel<K,V>
-
keyGet
public <E,C extends Collection<E>> List<PluralChangeModel<C,E>> keyGet(PluralAttribute<K, C, E> attribute) - Specified by:
keyGetin interfaceMapChangeModel<K,V>
-
keyGet
- Specified by:
keyGetin interfaceMapChangeModel<K,V>
-
keyGet
- Specified by:
keyGetin interfaceMapChangeModel<K,V>
-
keyGet
public <E,C extends Collection<E>> List<PluralChangeModel<C,E>> keyGet(MethodPluralAttribute<K, C, E> attribute) - Specified by:
keyGetin interfaceMapChangeModel<K,V>
-
keyGet
- Specified by:
keyGetin interfaceMapChangeModel<K,V>
-
getMutableKeyAttribute
-
get
- Specified by:
getin interfacePluralChangeModel<K,V>
-
keyGet
- Specified by:
keyGetin interfaceMapChangeModel<K,V>
-
getAll
-
keyGetAll
protected final <X> List<? extends ChangeModel<X>> keyGetAll(AbstractMethodAttribute<?, ?> methodAttribute)
-