public interface ItemModelContext
AbstractItemModel.| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Checks if the model is still valid.
|
java.util.Set<java.lang.String> |
getDirtyAttributes()
Returns all changed attributes.
|
java.util.Map<java.util.Locale,java.util.Set<java.lang.String>> |
getDirtyLocalizedAttributes()
Returns all changed localized attributes with the locale.
|
java.lang.String |
getItemType()
Retrieves the item type of the model.
|
<T> T |
getOriginalValue(java.lang.String attribute)
Retrieves the original loaded value of the attribute.
|
<T> T |
getOriginalValue(java.lang.String attribute,
java.util.Locale loc)
Retrieves the original loaded value of the localized attribute with the locale.
|
long |
getPersistenceVersion()
Retrieves the persistence version of the model.
|
PK |
getPK()
Retrieves the pk of the model.
|
java.lang.Object |
getSource()
Retrieves the item of the model.
|
java.lang.String |
getTenantId()
Retrieves the tenant id of the model.
|
boolean |
isDirty()
Checks if the model has been modified.
|
boolean |
isDirty(java.lang.String attribute)
Checks if the specific attribute has been changed.
|
boolean |
isDirty(java.lang.String attribute,
java.util.Locale loc)
Checks if the specific localized attribute has been changed with the locale.
|
boolean |
isLoaded(java.lang.String attribute)
Checks if the specific attribute has been loaded from the database.
|
boolean |
isLoaded(java.lang.String attribute,
java.util.Locale loc)
Checks if the specific localized attribute has been loaded with the locale from the database.
|
boolean |
isNew()
Checks if the model is a new model.
|
boolean |
isRemoved()
Checks if the model has been removed from the database.
|
boolean |
isUpToDate()
Checks if the model is still up to date with.
|
java.util.Set<java.lang.String> getDirtyAttributes()
boolean isDirty(java.lang.String attribute)
boolean isLoaded(java.lang.String attribute)
<T> T getOriginalValue(java.lang.String attribute)
boolean isDirty(java.lang.String attribute,
java.util.Locale loc)
boolean isLoaded(java.lang.String attribute,
java.util.Locale loc)
<T> T getOriginalValue(java.lang.String attribute,
java.util.Locale loc)
java.util.Map<java.util.Locale,java.util.Set<java.lang.String>> getDirtyLocalizedAttributes()
PK getPK()
java.lang.String getItemType()
java.lang.String getTenantId()
long getPersistenceVersion()
boolean isDirty()
boolean isNew()
boolean exists()
boolean isRemoved()
boolean isUpToDate()
java.lang.Object getSource()
Copyright © 2018 SAP SE. All Rights Reserved.