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