Class BasicSingularChangeModel<V>
java.lang.Object
com.blazebit.persistence.view.impl.change.AbstractChangeModel<V,V>
com.blazebit.persistence.view.impl.change.BasicSingularChangeModel<V>
- All Implemented Interfaces:
ChangeModel<V>
,SingularChangeModel<V>
public class BasicSingularChangeModel<V> extends AbstractChangeModel<V,V> implements SingularChangeModel<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.AbstractChangeModel
basicType, type
-
Constructor Summary
Constructors Constructor Description BasicSingularChangeModel(BasicTypeImpl<V> basicType, V initial, V current, DirtyChecker<V> dirtyChecker)
-
Method Summary
Modifier and Type Method Description protected <X> ChangeModel<X>
get(AbstractMethodAttribute<?,?> methodAttribute)
<K, V1> MapChangeModel<K,V1>
get(MapAttribute<V,K,V1> attribute)
<K, V1> MapChangeModel<K,V1>
get(MethodMapAttribute<V,K,V1> attribute)
<E, C extends Collection<E>>
PluralChangeModel<C,E>get(MethodPluralAttribute<V,C,E> attribute)
<X> SingularChangeModel<X>
get(MethodSingularAttribute<V,X> attribute)
<E, C extends Collection<E>>
PluralChangeModel<C,E>get(PluralAttribute<V,C,E> attribute)
<X> SingularChangeModel<X>
get(SingularAttribute<V,X> attribute)
<X> ChangeModel<X>
get(String attributePath)
<X> List<? extends ChangeModel<X>>
getAll(String attributePath)
V
getCurrentState()
List<ChangeModel<?>>
getDirtyChanges()
V
getInitialState()
ChangeModel.ChangeKind
getKind()
boolean
isChanged(String attributePath)
boolean
isDirty()
boolean
isDirty(String attributePath)
Methods 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, validateAttributePath
-
Constructor Details
-
BasicSingularChangeModel
public BasicSingularChangeModel(BasicTypeImpl<V> basicType, V initial, V current, DirtyChecker<V> dirtyChecker)
-
-
Method Details
-
getInitialState
- Specified by:
getInitialState
in interfaceChangeModel<V>
-
getCurrentState
- Specified by:
getCurrentState
in interfaceChangeModel<V>
-
getKind
- Specified by:
getKind
in interfaceChangeModel<V>
-
isDirty
public boolean isDirty()- Specified by:
isDirty
in interfaceChangeModel<V>
-
isDirty
- Specified by:
isDirty
in interfaceSingularChangeModel<V>
-
isChanged
- Specified by:
isChanged
in interfaceSingularChangeModel<V>
-
getDirtyChanges
- Specified by:
getDirtyChanges
in interfaceSingularChangeModel<V>
-
get
- Specified by:
get
in interfaceSingularChangeModel<V>
-
get
- Specified by:
get
in classAbstractChangeModel<V,V>
-
getAll
- Specified by:
getAll
in interfaceSingularChangeModel<V>
-
get
- Specified by:
get
in interfaceSingularChangeModel<V>
-
get
public <E, C extends Collection<E>> PluralChangeModel<C,E> get(PluralAttribute<V,C,E> attribute)- Specified by:
get
in interfaceSingularChangeModel<V>
-
get
- Specified by:
get
in interfaceSingularChangeModel<V>
-
get
- Specified by:
get
in interfaceSingularChangeModel<V>
-
get
public <E, C extends Collection<E>> PluralChangeModel<C,E> get(MethodPluralAttribute<V,C,E> attribute)- Specified by:
get
in interfaceSingularChangeModel<V>
-
get
- Specified by:
get
in interfaceSingularChangeModel<V>
-