public interface ItemModelInternalContext extends ItemModelContext
| Modifier and Type | Method and Description |
|---|---|
PK |
generateNewPK()
Generate the new PK and assigns it to the current model.
|
<T> T |
getDynamicValue(AbstractItemModel model,
java.lang.String attribute)
Retrieves the dynamic value of the attribute.
|
<T> T |
getLocalizedDynamicValue(AbstractItemModel model,
java.lang.String attribute,
java.util.Locale loc)
Retrieves the dynamic value of the attribute with the local.
|
<T> T |
getLocalizedRelationValue(java.lang.String attribute,
java.util.Locale loc)
Retrieves the current value of the specific attribute with the locale.
|
<T> T |
getLocalizedValue(java.lang.String attribute,
java.util.Locale loc)
Retrieves the current value of the specific attribute with the locale.
|
PK |
getNewPK()
Returns the newPK assigned to the current model
|
<T> T |
getPropertyValue(java.lang.String attribute)
Returns a value of a property with given name.
|
<T> T |
getValue(java.lang.String attribute,
T currentValue)
Retrieves the current value of the specific attribute.
|
int |
hashCode(AbstractItemModel abstractItemModel)
Calculates the hash code of the model.
|
boolean |
isDynamicAttribute(java.lang.String attributeName)
Returns information whether given attribute is dynamic or not
|
java.lang.Object |
loadOriginalValue(java.lang.String attribute)
Returns the original value for the given attribute
|
java.lang.Object |
loadOriginalValue(java.lang.String attribute,
java.util.Locale locale)
Returns the original localized value for the given attribute
|
<T> void |
setDynamicValue(AbstractItemModel model,
java.lang.String attribute,
T value)
Sets the dynamic value of the attribute.
|
<T> void |
setLocalizedDynamicValue(AbstractItemModel model,
java.lang.String attribute,
java.util.Locale loc,
T value)
Sets the dynamic value of the attribute under the locale.
|
<T> void |
setLocalizedValue(java.lang.String attribute,
java.util.Locale usedLoc,
T value)
Sets the new value for the specific attribute with the locale.
|
<T> void |
setPropertyValue(java.lang.String attribute,
T value)
Allows to set a value of a property with given name.
|
<T> T |
setValue(java.lang.String attribute,
T newValue)
Sets the new value for the specific attribute.
|
java.lang.Object |
writeReplace(java.lang.Object model)
YXX
|
exists, getDirtyAttributes, getDirtyLocalizedAttributes, getItemType, getOriginalValue, getOriginalValue, getPersistenceVersion, getPK, getSource, getTenantId, isDirty, isDirty, isDirty, isLoaded, isLoaded, isNew, isRemoved, isUpToDate<T> T getValue(java.lang.String attribute,
T currentValue)
<T> T setValue(java.lang.String attribute,
T newValue)
<T> T getLocalizedValue(java.lang.String attribute,
java.util.Locale loc)
<T> T getLocalizedRelationValue(java.lang.String attribute,
java.util.Locale loc)
<T> void setLocalizedValue(java.lang.String attribute,
java.util.Locale usedLoc,
T value)
<T> T getDynamicValue(AbstractItemModel model, java.lang.String attribute)
model - YTODO<T> void setDynamicValue(AbstractItemModel model, java.lang.String attribute, T value)
model - YTODO<T> T getLocalizedDynamicValue(AbstractItemModel model, java.lang.String attribute, java.util.Locale loc)
model - YTODO<T> void setLocalizedDynamicValue(AbstractItemModel model, java.lang.String attribute, java.util.Locale loc, T value)
model - YTODOint hashCode(AbstractItemModel abstractItemModel)
java.lang.Object writeReplace(java.lang.Object model)
throws java.io.ObjectStreamException
java.io.ObjectStreamExceptionPK getNewPK()
PK generateNewPK()
<T> T getPropertyValue(java.lang.String attribute)
attribute - name<T> void setPropertyValue(java.lang.String attribute,
T value)
attribute - namevalue - value to setboolean isDynamicAttribute(java.lang.String attributeName)
attributeName - attribute namejava.lang.Object loadOriginalValue(java.lang.String attribute)
attribute - attribute namejava.lang.Object loadOriginalValue(java.lang.String attribute,
java.util.Locale locale)
attribute - attribute namelocale - locale nameCopyright © 2018 SAP SE. All Rights Reserved.