public interface BeanPersistRequest<T>
This is made available for the BeanPersistControllers.
Modifier and Type | Method and Description |
---|---|
T |
getBean()
Returns the bean being inserted updated or deleted.
|
EbeanServer |
getEbeanServer()
Return the server processing the request.
|
Set<String> |
getLoadedProperties()
For an update or delete of a partially populated bean this is the set of
loaded properties and otherwise returns null.
|
Transaction |
getTransaction()
Return the Transaction associated with this request.
|
Set<String> |
getUpdatedProperties()
For an update this is the set of properties that where updated.
|
Map<String,ValuePair> |
getUpdatedValues()
Returns a map of the properties that have changed and their new and old values.
|
boolean |
hasDirtyProperty(Set<String> propertyNames)
Return true for an update request if at least one of dirty properties is contained
in the given set of property names.
|
EbeanServer getEbeanServer()
Transaction getTransaction()
Set<String> getLoadedProperties()
Set<String> getUpdatedProperties()
Note that hasDirtyProperty() is a more efficient check than this method and should be preferred if it satisfies the requirement.
boolean hasDirtyProperty(Set<String> propertyNames)
This method will produce less GC compared with getUpdatedProperties() and should be preferred if it satisfies the requirement.
Note that this method is used by the default ChangeLogFilter mechanism for when
the @ChangeLog
updatesThatInclude attribute has been specified.
propertyNames
- a set of property names which we are checking to see if at least
one of them is dirty.Map<String,ValuePair> getUpdatedValues()
Copyright © 2019. All rights reserved.