E - the entity typepublic interface PreUpdateContext<E>
| Modifier and Type | Method and Description |
|---|---|
Config |
getConfig()
Returns the configuration.
|
EntityType<?> |
getEntityType()
Returns the entity description.
|
java.lang.reflect.Method |
getMethod()
The method that is annotated with
Update. |
E |
getNewEntity()
Returns the new entity.
|
boolean |
isEntityChanged()
Whether the entity is changed.
|
boolean |
isPropertyChanged(java.lang.String propertyName)
Whether the entity property is changed.
|
void |
setNewEntity(E newEntity)
Sets the new entity.
|
boolean isEntityChanged()
This method always returns true, when Update.sqlFile() returns true.
true if the entity is changedboolean isPropertyChanged(java.lang.String propertyName)
This method always returns true, when Update.sqlFile() returns true.
propertyName - the name of propertytrue if the property is changedEntityPropertyNotDefinedException - if the property is not defined in the entityOriginalStatesEntityType<?> getEntityType()
java.lang.reflect.Method getMethod()
Update.Config getConfig()
E getNewEntity()
void setNewEntity(E newEntity)
This method is available, when the entity is immutable.
newEntity - the entityDomaNullPointerException - if newEntity is null