Class ObjectValueContainer.ObjectValueHolder
- java.lang.Object
-
- de.hybris.platform.cockpit.services.values.ObjectValueContainer.ObjectValueHolder
-
- All Implemented Interfaces:
java.lang.Cloneable
- Enclosing class:
- ObjectValueContainer
public class ObjectValueContainer.ObjectValueHolder extends java.lang.Object implements java.lang.Cloneable
Encapsulates a single property value. Hold current value, original value and (after update) the live value too.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
assureLoaded()
protected ObjectValueContainer.ObjectValueHolder
clone()
boolean
equals(java.lang.Object obj)
java.lang.Object
getCurrentValue()
Returns the most recent value for this property.java.lang.String
getLanguageIso()
java.lang.Object
getLiveValue()
java.lang.Object
getLocalValue()
java.lang.Object
getOriginalValue()
PropertyDescriptor
getPropertyDescriptor()
boolean
hasConflict()
int
hashCode()
boolean
isModified()
void
setLocalValue(java.lang.Object currentValue)
void
setModified(boolean modified)
void
stored()
java.lang.String
toString()
void
unmodify()
void
update(java.lang.Object liveValue)
-
-
-
Method Detail
-
clone
protected ObjectValueContainer.ObjectValueHolder clone()
- Overrides:
clone
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
getCurrentValue
public java.lang.Object getCurrentValue()
Returns the most recent value for this property. If the property has been modified this returns the local value. Otherwise it returns the live value (which may be the same as local or different after update).
-
setModified
public void setModified(boolean modified)
-
getLanguageIso
public java.lang.String getLanguageIso()
-
getLiveValue
public java.lang.Object getLiveValue()
-
getLocalValue
public java.lang.Object getLocalValue()
-
getOriginalValue
public java.lang.Object getOriginalValue()
-
getPropertyDescriptor
public PropertyDescriptor getPropertyDescriptor()
-
hasConflict
public boolean hasConflict()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
isModified
public boolean isModified()
-
setLocalValue
public void setLocalValue(java.lang.Object currentValue)
-
stored
public void stored()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
unmodify
public void unmodify()
-
update
public void update(java.lang.Object liveValue)
-
assureLoaded
protected void assureLoaded()
-
-