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,
String attribute)
Retrieves the dynamic value of the attribute.
|
<T> T |
getLocalizedDynamicValue(AbstractItemModel model,
String attribute,
Locale loc)
Retrieves the dynamic value of the attribute with the local.
|
<T> T |
getLocalizedRelationValue(String attribute,
Locale loc)
Retrieves the current value of the specific attribute with the locale.
|
<T> T |
getLocalizedValue(String attribute,
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(String attribute)
Returns a value of a property with given name.
|
<T> T |
getValue(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(String attributeName)
Returns information whether given attribute is dynamic or not
|
Object |
loadOriginalValue(String attribute)
Returns the original value for the given attribute
|
Object |
loadOriginalValue(String attribute,
Locale locale)
Returns the original localized value for the given attribute
|
<T> void |
setDynamicValue(AbstractItemModel model,
String attribute,
T value)
Sets the dynamic value of the attribute.
|
<T> void |
setLocalizedDynamicValue(AbstractItemModel model,
String attribute,
Locale loc,
T value)
Sets the dynamic value of the attribute under the locale.
|
<T> void |
setLocalizedValue(String attribute,
Locale usedLoc,
T value)
Sets the new value for the specific attribute with the locale.
|
<T> void |
setPropertyValue(String attribute,
T value)
Allows to set a value of a property with given name.
|
<T> T |
setValue(String attribute,
T newValue)
Sets the new value for the specific attribute.
|
Object |
writeReplace(Object model)
YXX
|
exists, getDirtyAttributes, getDirtyLocalizedAttributes, getItemType, getOriginalValue, getOriginalValue, getPersistenceVersion, getPK, getSource, getTenantId, isDirty, isDirty, isDirty, isLoaded, isLoaded, isNew, isRemoved, isUpToDate<T> T getValue(String attribute, T currentValue)
<T> T setValue(String attribute, T newValue)
<T> T getLocalizedValue(String attribute, Locale loc)
<T> T getLocalizedRelationValue(String attribute, Locale loc)
<T> void setLocalizedValue(String attribute, Locale usedLoc, T value)
<T> T getDynamicValue(AbstractItemModel model, String attribute)
model - YTODO<T> void setDynamicValue(AbstractItemModel model, String attribute, T value)
model - YTODO<T> T getLocalizedDynamicValue(AbstractItemModel model, String attribute, Locale loc)
model - YTODO<T> void setLocalizedDynamicValue(AbstractItemModel model, String attribute, Locale loc, T value)
model - YTODOint hashCode(AbstractItemModel abstractItemModel)
Object writeReplace(Object model) throws ObjectStreamException
ObjectStreamExceptionPK getNewPK()
PK generateNewPK()
<T> T getPropertyValue(String attribute)
attribute - name<T> void setPropertyValue(String attribute, T value)
attribute - namevalue - value to setboolean isDynamicAttribute(String attributeName)
attributeName - attribute nameObject loadOriginalValue(String attribute)
attribute - attribute nameCopyright © 2017 SAP SE. All Rights Reserved.