mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Refactor tidy PersistRequestBean
This commit is contained in:
@@ -41,6 +41,11 @@ public interface BeanPersistRequest<T> {
|
||||
*/
|
||||
Set<String> getUpdatedProperties();
|
||||
|
||||
/**
|
||||
* Flags set for dirty properties (used by ElasticSearch integration).
|
||||
*/
|
||||
boolean[] getDirtyProperties();
|
||||
|
||||
/**
|
||||
* Return true for an update request if at least one of dirty properties is contained
|
||||
* in the given set of property names.
|
||||
|
||||
@@ -427,6 +427,7 @@ public final class PersistRequestBean<T> extends PersistRequest implements BeanP
|
||||
/**
|
||||
* Return the dirty properties on this request.
|
||||
*/
|
||||
@Override
|
||||
public boolean[] getDirtyProperties() {
|
||||
return dirtyProperties;
|
||||
}
|
||||
@@ -485,7 +486,7 @@ public final class PersistRequestBean<T> extends PersistRequest implements BeanP
|
||||
/**
|
||||
* Collect L2 cache changes to be applied after the transaction has successfully committed.
|
||||
*/
|
||||
public void notifyCache(CacheChangeSet changeSet) {
|
||||
private void notifyCache(CacheChangeSet changeSet) {
|
||||
if (notifyCache) {
|
||||
switch (type) {
|
||||
case INSERT:
|
||||
@@ -740,14 +741,6 @@ public final class PersistRequestBean<T> extends PersistRequest implements BeanP
|
||||
return parentBean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the controller if there is one associated with this type of bean. This returns null if
|
||||
* there is no controller associated.
|
||||
*/
|
||||
public BeanPersistController getBeanController() {
|
||||
return controller;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the intercept if there is one.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user