*/
- ExpressionList> getFilterMany();
+ ExpressionList> filterMany();
/**
* Set the filter that was used in building this collection.
@@ -154,7 +154,7 @@ public interface BeanCollection extends Serializable, ToStringAware {
/**
* Returns the underlying collection of beans from the Set, Map or List.
*/
- Collection getActualDetails();
+ Collection actualDetails();
/**
* Returns the underlying entries so for Maps this is a collection of
@@ -162,7 +162,7 @@ public interface BeanCollection extends Serializable, ToStringAware {
*
* For maps this returns the entrySet as we need the keys of the map.
*/
- Collection> getActualEntries();
+ Collection> actualEntries();
/**
* return true if there are real rows held. Return false is this is using
@@ -195,7 +195,7 @@ public interface BeanCollection extends Serializable, ToStringAware {
/**
* Return the current modify listening mode. Can be null for on newly created beans.
*/
- ModifyListenMode getModifyListening();
+ ModifyListenMode modifyListening();
/**
* Add an object to the additions list.
@@ -217,13 +217,13 @@ public interface BeanCollection extends Serializable, ToStringAware {
* Return the list of objects added to the list set or map. These will used to
* insert rows into the intersection table of a ManyToMany.
*/
- Set getModifyAdditions();
+ Set modifyAdditions();
/**
* Return the list of objects removed from the list set or map. These will
* used to delete rows from the intersection table of a ManyToMany.
*/
- Set getModifyRemovals();
+ Set modifyRemovals();
/**
* Reset the set of additions and deletions. This is called after the
@@ -239,5 +239,5 @@ public interface BeanCollection extends Serializable, ToStringAware {
/**
* Return a shallow copy of this collection that is modifiable.
*/
- BeanCollection getShallowCopy();
+ BeanCollection shallowCopy();
}
diff --git a/ebean-api/src/main/java/io/ebean/bean/EntityBeanIntercept.java b/ebean-api/src/main/java/io/ebean/bean/EntityBeanIntercept.java
index 0b0bafa87..1127c02b2 100644
--- a/ebean-api/src/main/java/io/ebean/bean/EntityBeanIntercept.java
+++ b/ebean-api/src/main/java/io/ebean/bean/EntityBeanIntercept.java
@@ -17,12 +17,12 @@ public interface EntityBeanIntercept extends Serializable {
/**
* Return the 'owning' entity bean.
*/
- EntityBean getOwner();
+ EntityBean owner();
/**
* Return the persistenceContext.
*/
- PersistenceContext getPersistenceContext();
+ PersistenceContext persistenceContext();
/**
* Set the persistenceContext.
@@ -37,7 +37,7 @@ public interface EntityBeanIntercept extends Serializable {
/**
* Return the ownerId (IdClass).
*/
- Object getOwnerId();
+ Object ownerId();
/**
* Set the ownerId (IdClass).
@@ -47,12 +47,12 @@ public interface EntityBeanIntercept extends Serializable {
/**
* Return the owning bean for an embedded bean.
*/
- Object getEmbeddedOwner();
+ Object embeddedOwner();
/**
* Return the property index (for the parent) of this embedded bean.
*/
- int getEmbeddedOwnerIndex();
+ int embeddedOwnerIndex();
/**
* Clear the getter callback.
@@ -229,7 +229,7 @@ public interface EntityBeanIntercept extends Serializable {
/**
* Return the original value that was changed via an update.
*/
- Object getOrigValue(int propertyIndex);
+ Object origValue(int propertyIndex);
/**
* Finds the index position of a given property. Returns -1 if the
@@ -240,12 +240,12 @@ public interface EntityBeanIntercept extends Serializable {
/**
* Return the property name for the given property.
*/
- String getProperty(int propertyIndex);
+ String property(int propertyIndex);
/**
* Return the number of properties.
*/
- int getPropertyLength();
+ int propertyLength();
/**
* Set the loaded state of the property given it's name.
@@ -321,17 +321,17 @@ public interface EntityBeanIntercept extends Serializable {
/**
* Return the set of property names for a partially loaded bean.
*/
- Set getLoadedPropertyNames();
+ Set loadedPropertyNames();
/**
* Return the array of flags indicating the dirty properties.
*/
- boolean[] getDirtyProperties();
+ boolean[] dirtyProperties();
/**
* Return the set of dirty properties.
*/
- Set getDirtyPropertyNames();
+ Set dirtyPropertyNames();
/**
* Recursively add dirty properties.
@@ -346,7 +346,7 @@ public interface EntityBeanIntercept extends Serializable {
/**
* Return a map of dirty properties with their new and old values.
*/
- Map getDirtyValues();
+ Map dirtyValues();
/**
* Recursively add dirty properties.
@@ -361,7 +361,7 @@ public interface EntityBeanIntercept extends Serializable {
/**
* Return a dirty property hash taking into account embedded beans.
*/
- StringBuilder getDirtyPropertyKey();
+ StringBuilder dirtyPropertyKey();
/**
* Add and return a dirty property hash.
@@ -371,22 +371,22 @@ public interface EntityBeanIntercept extends Serializable {
/**
* Return a loaded property hash.
*/
- StringBuilder getLoadedPropertyKey();
+ StringBuilder loadedPropertyKey();
/**
* Return the loaded state for all the properties.
*/
- boolean[] getLoaded();
+ boolean[] loaded();
/**
* Return the index of the property that triggered the lazy load.
*/
- int getLazyLoadPropertyIndex();
+ int lazyLoadPropertyIndex();
/**
* Return the property that triggered the lazy load.
*/
- String getLazyLoadProperty();
+ String lazyLoadProperty();
/**
* Load the bean when it is a reference.
@@ -497,7 +497,7 @@ public interface EntityBeanIntercept extends Serializable {
/**
* Return the sort order value for an order column.
*/
- int getSortOrder();
+ int sortOrder();
/**
* Set the sort order value for an order column.
@@ -522,7 +522,7 @@ public interface EntityBeanIntercept extends Serializable {
/**
* Returns the loadErrors.
*/
- Map getLoadErrors();
+ Map loadErrors();
/**
* Return true if the property has its changed state set.
diff --git a/ebean-api/src/main/java/io/ebean/bean/InterceptReadOnly.java b/ebean-api/src/main/java/io/ebean/bean/InterceptReadOnly.java
index 3fee1e03d..26f5faf8d 100644
--- a/ebean-api/src/main/java/io/ebean/bean/InterceptReadOnly.java
+++ b/ebean-api/src/main/java/io/ebean/bean/InterceptReadOnly.java
@@ -30,12 +30,12 @@ public class InterceptReadOnly implements EntityBeanIntercept {
}
@Override
- public EntityBean getOwner() {
+ public EntityBean owner() {
return owner;
}
@Override
- public PersistenceContext getPersistenceContext() {
+ public PersistenceContext persistenceContext() {
return null;
}
@@ -50,7 +50,7 @@ public class InterceptReadOnly implements EntityBeanIntercept {
}
@Override
- public Object getOwnerId() {
+ public Object ownerId() {
return null;
}
@@ -60,12 +60,12 @@ public class InterceptReadOnly implements EntityBeanIntercept {
}
@Override
- public Object getEmbeddedOwner() {
+ public Object embeddedOwner() {
return null;
}
@Override
- public int getEmbeddedOwnerIndex() {
+ public int embeddedOwnerIndex() {
return 0;
}
@@ -230,7 +230,7 @@ public class InterceptReadOnly implements EntityBeanIntercept {
}
@Override
- public Object getOrigValue(int propertyIndex) {
+ public Object origValue(int propertyIndex) {
return null;
}
@@ -240,12 +240,12 @@ public class InterceptReadOnly implements EntityBeanIntercept {
}
@Override
- public String getProperty(int propertyIndex) {
+ public String property(int propertyIndex) {
return null;
}
@Override
- public int getPropertyLength() {
+ public int propertyLength() {
return 0;
}
@@ -320,17 +320,17 @@ public class InterceptReadOnly implements EntityBeanIntercept {
}
@Override
- public Set getLoadedPropertyNames() {
+ public Set loadedPropertyNames() {
return Collections.emptySet();
}
@Override
- public boolean[] getDirtyProperties() {
+ public boolean[] dirtyProperties() {
return new boolean[0];
}
@Override
- public Set getDirtyPropertyNames() {
+ public Set dirtyPropertyNames() {
return Collections.emptySet();
}
@@ -345,7 +345,7 @@ public class InterceptReadOnly implements EntityBeanIntercept {
}
@Override
- public Map getDirtyValues() {
+ public Map dirtyValues() {
return Collections.emptyMap();
}
@@ -360,7 +360,7 @@ public class InterceptReadOnly implements EntityBeanIntercept {
}
@Override
- public StringBuilder getDirtyPropertyKey() {
+ public StringBuilder dirtyPropertyKey() {
return null;
}
@@ -370,22 +370,22 @@ public class InterceptReadOnly implements EntityBeanIntercept {
}
@Override
- public StringBuilder getLoadedPropertyKey() {
+ public StringBuilder loadedPropertyKey() {
return null;
}
@Override
- public boolean[] getLoaded() {
+ public boolean[] loaded() {
return new boolean[0];
}
@Override
- public int getLazyLoadPropertyIndex() {
+ public int lazyLoadPropertyIndex() {
return 0;
}
@Override
- public String getLazyLoadProperty() {
+ public String lazyLoadProperty() {
return null;
}
@@ -495,7 +495,7 @@ public class InterceptReadOnly implements EntityBeanIntercept {
}
@Override
- public int getSortOrder() {
+ public int sortOrder() {
return 0;
}
@@ -520,7 +520,7 @@ public class InterceptReadOnly implements EntityBeanIntercept {
}
@Override
- public Map getLoadErrors() {
+ public Map loadErrors() {
return null;
}
diff --git a/ebean-api/src/main/java/io/ebean/bean/InterceptReadWrite.java b/ebean-api/src/main/java/io/ebean/bean/InterceptReadWrite.java
index 9f8767212..70c90beaa 100644
--- a/ebean-api/src/main/java/io/ebean/bean/InterceptReadWrite.java
+++ b/ebean-api/src/main/java/io/ebean/bean/InterceptReadWrite.java
@@ -133,12 +133,12 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
}
@Override
- public EntityBean getOwner() {
+ public EntityBean owner() {
return owner;
}
@Override
- public PersistenceContext getPersistenceContext() {
+ public PersistenceContext persistenceContext() {
return persistenceContext;
}
@@ -153,7 +153,7 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
}
@Override
- public Object getOwnerId() {
+ public Object ownerId() {
return ownerId;
}
@@ -163,12 +163,12 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
}
@Override
- public Object getEmbeddedOwner() {
+ public Object embeddedOwner() {
return embeddedOwner;
}
@Override
- public int getEmbeddedOwnerIndex() {
+ public int embeddedOwnerIndex() {
return embeddedOwnerIndex;
}
@@ -381,8 +381,7 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
@Override
public void setEmbeddedLoaded(Object embeddedBean) {
if (embeddedBean instanceof EntityBean) {
- EntityBean eb = (EntityBean) embeddedBean;
- eb._ebean_getIntercept().setLoaded();
+ ((EntityBean) embeddedBean)._ebean_getIntercept().setLoaded();
}
}
@@ -402,7 +401,7 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
}
@Override
- public Object getOrigValue(int propertyIndex) {
+ public Object origValue(int propertyIndex) {
if ((flags[propertyIndex] & (FLAG_ORIG_VALUE_SET | FLAG_MUTABLE_HASH_SET)) == FLAG_MUTABLE_HASH_SET) {
// mutable hash set, but not ORIG_VALUE
setOriginalValue(propertyIndex, mutableInfo[propertyIndex].get());
@@ -415,7 +414,7 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
@Override
public int findProperty(String propertyName) {
- String[] names = owner._ebean_getPropertyNames();
+ final String[] names = owner._ebean_getPropertyNames();
for (int i = 0; i < names.length; i++) {
if (names[i].equals(propertyName)) {
return i;
@@ -425,7 +424,7 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
}
@Override
- public String getProperty(int propertyIndex) {
+ public String property(int propertyIndex) {
if (propertyIndex == -1) {
return null;
}
@@ -433,13 +432,13 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
}
@Override
- public int getPropertyLength() {
+ public int propertyLength() {
return flags.length;
}
@Override
public void setPropertyLoaded(String propertyName, boolean loaded) {
- int position = findProperty(propertyName);
+ final int position = findProperty(propertyName);
if (position == -1) {
throw new IllegalArgumentException("Property " + propertyName + " not found");
}
@@ -533,23 +532,23 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
}
@Override
- public Set getLoadedPropertyNames() {
+ public Set loadedPropertyNames() {
if (fullyLoadedBean) {
return null;
}
- Set props = new LinkedHashSet<>();
+ final Set props = new LinkedHashSet<>();
for (int i = 0; i < flags.length; i++) {
if ((flags[i] & FLAG_LOADED_PROP) != 0) {
- props.add(getProperty(i));
+ props.add(property(i));
}
}
return props;
}
@Override
- public boolean[] getDirtyProperties() {
- int len = getPropertyLength();
- boolean[] dirties = new boolean[len];
+ public boolean[] dirtyProperties() {
+ final int len = propertyLength();
+ final boolean[] dirties = new boolean[len];
for (int i = 0; i < len; i++) {
// this, or an embedded property has been changed - recurse
dirties[i] = (flags[i] & (FLAG_CHANGED_PROP + FLAG_EMBEDDED_DIRTY)) != 0;
@@ -558,31 +557,31 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
}
@Override
- public Set getDirtyPropertyNames() {
- Set props = new LinkedHashSet<>();
+ public Set dirtyPropertyNames() {
+ final Set props = new LinkedHashSet<>();
addDirtyPropertyNames(props, null);
return props;
}
@Override
public void addDirtyPropertyNames(Set props, String prefix) {
- int len = getPropertyLength();
+ final int len = propertyLength();
for (int i = 0; i < len; i++) {
if (isChangedProp(i)) {
// the property has been changed on this bean
- props.add((prefix == null ? getProperty(i) : prefix + getProperty(i)));
+ props.add((prefix == null ? property(i) : prefix + property(i)));
} else if ((flags[i] & FLAG_EMBEDDED_DIRTY) != 0) {
// an embedded property has been changed - recurse
- EntityBean embeddedBean = (EntityBean) owner._ebean_getField(i);
- embeddedBean._ebean_getIntercept().addDirtyPropertyNames(props, getProperty(i) + ".");
+ final EntityBean embeddedBean = (EntityBean) owner._ebean_getField(i);
+ embeddedBean._ebean_getIntercept().addDirtyPropertyNames(props, property(i) + ".");
}
}
}
@Override
public boolean hasDirtyProperty(Set propertyNames) {
- String[] names = owner._ebean_getPropertyNames();
- int len = getPropertyLength();
+ final String[] names = owner._ebean_getPropertyNames();
+ final int len = propertyLength();
for (int i = 0; i < len; i++) {
if (isChangedProp(i)) {
if (propertyNames.contains(names[i])) {
@@ -598,46 +597,46 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
}
@Override
- public Map getDirtyValues() {
- Map dirtyValues = new LinkedHashMap<>();
+ public Map dirtyValues() {
+ final Map dirtyValues = new LinkedHashMap<>();
addDirtyPropertyValues(dirtyValues, null);
return dirtyValues;
}
@Override
public void addDirtyPropertyValues(Map dirtyValues, String prefix) {
- int len = getPropertyLength();
+ final int len = propertyLength();
for (int i = 0; i < len; i++) {
if (isChangedProp(i)) {
// the property has been changed on this bean
- String propName = (prefix == null ? getProperty(i) : prefix + getProperty(i));
- Object newVal = owner._ebean_getField(i);
- Object oldVal = getOrigValue(i);
+ final String propName = (prefix == null ? property(i) : prefix + property(i));
+ final Object newVal = owner._ebean_getField(i);
+ final Object oldVal = origValue(i);
if (notEqual(oldVal, newVal)) {
dirtyValues.put(propName, new ValuePair(newVal, oldVal));
}
} else if ((flags[i] & FLAG_EMBEDDED_DIRTY) != 0) {
// an embedded property has been changed - recurse
- EntityBean embeddedBean = (EntityBean) owner._ebean_getField(i);
- embeddedBean._ebean_getIntercept().addDirtyPropertyValues(dirtyValues, getProperty(i) + ".");
+ final EntityBean embeddedBean = (EntityBean) owner._ebean_getField(i);
+ embeddedBean._ebean_getIntercept().addDirtyPropertyValues(dirtyValues, property(i) + ".");
}
}
}
@Override
public void addDirtyPropertyValues(BeanDiffVisitor visitor) {
- int len = getPropertyLength();
+ final int len = propertyLength();
for (int i = 0; i < len; i++) {
if (isChangedProp(i)) {
// the property has been changed on this bean
- Object newVal = owner._ebean_getField(i);
- Object oldVal = getOrigValue(i);
+ final Object newVal = owner._ebean_getField(i);
+ final Object oldVal = origValue(i);
if (notEqual(oldVal, newVal)) {
visitor.visit(i, newVal, oldVal);
}
} else if ((flags[i] & FLAG_EMBEDDED_DIRTY) != 0) {
// an embedded property has been changed - recurse
- EntityBean embeddedBean = (EntityBean) owner._ebean_getField(i);
+ final EntityBean embeddedBean = (EntityBean) owner._ebean_getField(i);
visitor.visitPush(i);
embeddedBean._ebean_getIntercept().addDirtyPropertyValues(visitor);
visitor.visitPop();
@@ -646,8 +645,8 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
}
@Override
- public StringBuilder getDirtyPropertyKey() {
- StringBuilder sb = new StringBuilder();
+ public StringBuilder dirtyPropertyKey() {
+ final StringBuilder sb = new StringBuilder();
addDirtyPropertyKey(sb);
return sb;
}
@@ -657,24 +656,23 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
if (sortOrder > 0) {
sb.append("s,");
}
- int len = getPropertyLength();
+ final int len = propertyLength();
for (int i = 0; i < len; i++) {
if ((flags[i] & FLAG_CHANGED_PROP) != 0) { // we do not check against mutablecontent here.
sb.append(i).append(',');
} else if ((flags[i] & FLAG_EMBEDDED_DIRTY) != 0) {
// an embedded property has been changed - recurse
- EntityBean embeddedBean = (EntityBean) owner._ebean_getField(i);
sb.append(i).append('[');
- embeddedBean._ebean_getIntercept().addDirtyPropertyKey(sb);
+ ((EntityBean) owner._ebean_getField(i))._ebean_getIntercept().addDirtyPropertyKey(sb);
sb.append(']');
}
}
}
@Override
- public StringBuilder getLoadedPropertyKey() {
- StringBuilder sb = new StringBuilder();
- int len = getPropertyLength();
+ public StringBuilder loadedPropertyKey() {
+ final StringBuilder sb = new StringBuilder();
+ final int len = propertyLength();
for (int i = 0; i < len; i++) {
if (isLoadedProperty(i)) {
sb.append(i).append(',');
@@ -684,8 +682,8 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
}
@Override
- public boolean[] getLoaded() {
- boolean[] ret = new boolean[flags.length];
+ public boolean[] loaded() {
+ final boolean[] ret = new boolean[flags.length];
for (int i = 0; i < ret.length; i++) {
ret[i] = (flags[i] & FLAG_LOADED_PROP) != 0;
}
@@ -693,13 +691,13 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
}
@Override
- public int getLazyLoadPropertyIndex() {
+ public int lazyLoadPropertyIndex() {
return lazyLoadProperty;
}
@Override
- public String getLazyLoadProperty() {
- return getProperty(lazyLoadProperty);
+ public String lazyLoadProperty() {
+ return property(lazyLoadProperty);
}
@Override
@@ -839,7 +837,7 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
loadBean(propertyIndex);
}
if (nodeUsageCollector != null) {
- nodeUsageCollector.addUsed(getProperty(propertyIndex));
+ nodeUsageCollector.addUsed(property(propertyIndex));
}
}
@@ -988,7 +986,7 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
}
@Override
- public int getSortOrder() {
+ public int sortOrder() {
return sortOrder;
}
@@ -1017,19 +1015,19 @@ public final class InterceptReadWrite implements EntityBeanIntercept {
}
@Override
- public Map getLoadErrors() {
+ public Map loadErrors() {
if (loadErrors == null) {
return Collections.emptyMap();
}
Map ret = null;
- int len = getPropertyLength();
+ int len = propertyLength();
for (int i = 0; i < len; i++) {
- Exception loadError = loadErrors[i];
+ final Exception loadError = loadErrors[i];
if (loadError != null) {
if (ret == null) {
ret = new LinkedHashMap<>();
}
- ret.put(getProperty(i), loadError);
+ ret.put(property(i), loadError);
}
}
return ret;
diff --git a/ebean-api/src/main/java/io/ebean/common/AbstractBeanCollection.java b/ebean-api/src/main/java/io/ebean/common/AbstractBeanCollection.java
index c453d99cd..b209d83be 100644
--- a/ebean-api/src/main/java/io/ebean/common/AbstractBeanCollection.java
+++ b/ebean-api/src/main/java/io/ebean/common/AbstractBeanCollection.java
@@ -59,17 +59,17 @@ abstract class AbstractBeanCollection implements BeanCollection {
}
@Override
- public EntityBean getOwnerBean() {
+ public EntityBean owner() {
return ownerBean;
}
@Override
- public String getPropertyName() {
+ public String propertyName() {
return propertyName;
}
@Override
- public ExpressionList> getFilterMany() {
+ public ExpressionList> filterMany() {
return filterMany;
}
@@ -129,7 +129,7 @@ abstract class AbstractBeanCollection implements BeanCollection {
}
@Override
- public ModifyListenMode getModifyListening() {
+ public ModifyListenMode modifyListening() {
return modifyListenMode;
}
@@ -182,7 +182,7 @@ abstract class AbstractBeanCollection implements BeanCollection {
}
@Override
- public Set getModifyAdditions() {
+ public Set modifyAdditions() {
if (modifyHolder == null) {
return null;
} else {
@@ -191,7 +191,7 @@ abstract class AbstractBeanCollection implements BeanCollection {
}
@Override
- public Set getModifyRemovals() {
+ public Set modifyRemovals() {
if (modifyHolder == null) {
return null;
} else {
@@ -213,7 +213,7 @@ abstract class AbstractBeanCollection implements BeanCollection {
}
/**
- * Copies all relevant properties for a clone. See {@link #getShallowCopy()}
+ * Copies all relevant properties for a clone. See {@link #shallowCopy()}
*/
protected void setFromOriginal(AbstractBeanCollection other) {
this.disableLazyLoad = other.disableLazyLoad;
diff --git a/ebean-api/src/main/java/io/ebean/common/BeanList.java b/ebean-api/src/main/java/io/ebean/common/BeanList.java
index 22842fa14..12d0770d6 100644
--- a/ebean-api/src/main/java/io/ebean/common/BeanList.java
+++ b/ebean-api/src/main/java/io/ebean/common/BeanList.java
@@ -3,12 +3,7 @@ package io.ebean.common;
import io.ebean.bean.*;
import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-import java.util.ListIterator;
+import java.util.*;
/**
* List capable of lazy loading and modification awareness.
@@ -73,7 +68,7 @@ public final class BeanList extends AbstractBeanCollection implements List
if (list == null) {
list = new ArrayList<>();
}
- list.addAll((Collection extends E>) other.getActualDetails());
+ list.addAll((Collection extends E>) other.actualDetails());
}
@Override
@@ -159,17 +154,17 @@ public final class BeanList extends AbstractBeanCollection implements List
/**
* Return the actual underlying list.
*/
- public List getActualList() {
+ public List actualList() {
return list;
}
@Override
- public Collection getActualDetails() {
+ public Collection actualDetails() {
return list;
}
@Override
- public Collection> getActualEntries() {
+ public Collection> actualEntries() {
return list;
}
@@ -538,7 +533,7 @@ public final class BeanList extends AbstractBeanCollection implements List
}
@Override
- public BeanCollection getShallowCopy() {
+ public BeanCollection shallowCopy() {
BeanList copy = new BeanList<>(new CopyOnFirstWriteList<>(list));
copy.setFromOriginal(this);
return copy;
diff --git a/ebean-api/src/main/java/io/ebean/common/BeanMap.java b/ebean-api/src/main/java/io/ebean/common/BeanMap.java
index 3809a9d25..fe959c22c 100644
--- a/ebean-api/src/main/java/io/ebean/common/BeanMap.java
+++ b/ebean-api/src/main/java/io/ebean/common/BeanMap.java
@@ -5,11 +5,7 @@ import io.ebean.bean.BeanCollectionLoader;
import io.ebean.bean.EntityBean;
import io.ebean.bean.ToStringBuilder;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.Map;
-import java.util.Set;
+import java.util.*;
/**
* Map capable of lazy loading and modification aware.
@@ -71,7 +67,7 @@ public final class BeanMap extends AbstractBeanCollection implements Ma
public void loadFrom(BeanCollection> other) {
BeanMap otherMap = (BeanMap) other;
internalPutNull();
- map.putAll(otherMap.getActualMap());
+ map.putAll(otherMap.actualMap());
}
public void internalPutNull() {
@@ -175,7 +171,7 @@ public final class BeanMap extends AbstractBeanCollection implements Ma
/**
* Return the actual underlying map.
*/
- public Map getActualMap() {
+ public Map actualMap() {
return map;
}
@@ -183,7 +179,7 @@ public final class BeanMap extends AbstractBeanCollection implements Ma
* Returns the collection of beans (map values).
*/
@Override
- public Collection getActualDetails() {
+ public Collection actualDetails() {
return map.values();
}
@@ -191,7 +187,7 @@ public final class BeanMap extends AbstractBeanCollection implements Ma
* Returns the map entrySet.
*/
@Override
- public Collection> getActualEntries() {
+ public Collection> actualEntries() {
return map.entrySet();
}
@@ -346,7 +342,7 @@ public final class BeanMap extends AbstractBeanCollection implements Ma
}
@Override
- public BeanCollection getShallowCopy() {
+ public BeanCollection shallowCopy() {
BeanMap copy = new BeanMap<>(new LinkedHashMap<>(map));
copy.setFromOriginal(this);
return copy;
diff --git a/ebean-api/src/main/java/io/ebean/common/BeanSet.java b/ebean-api/src/main/java/io/ebean/common/BeanSet.java
index 6440362e4..81d72284b 100644
--- a/ebean-api/src/main/java/io/ebean/common/BeanSet.java
+++ b/ebean-api/src/main/java/io/ebean/common/BeanSet.java
@@ -67,7 +67,7 @@ public final class BeanSet extends AbstractBeanCollection implements Set();
}
- set.addAll((Collection extends E>) other.getActualDetails());
+ set.addAll((Collection extends E>) other.actualDetails());
}
@Override
@@ -155,17 +155,17 @@ public final class BeanSet extends AbstractBeanCollection implements Set getActualSet() {
+ public Set actualSet() {
return set;
}
@Override
- public Collection getActualDetails() {
+ public Collection actualDetails() {
return set;
}
@Override
- public Collection> getActualEntries() {
+ public Collection> actualEntries() {
return set;
}
@@ -382,7 +382,7 @@ public final class BeanSet extends AbstractBeanCollection implements Set getShallowCopy() {
+ public BeanCollection shallowCopy() {
BeanSet copy = new BeanSet<>(new LinkedHashSet<>(set));
copy.setFromOriginal(this);
return copy;
diff --git a/ebean-core/src/main/java/io/ebeaninternal/api/LoadBeanRequest.java b/ebean-core/src/main/java/io/ebeaninternal/api/LoadBeanRequest.java
index a8baee1e2..f9595798d 100644
--- a/ebean-core/src/main/java/io/ebeaninternal/api/LoadBeanRequest.java
+++ b/ebean-core/src/main/java/io/ebeaninternal/api/LoadBeanRequest.java
@@ -23,7 +23,7 @@ public final class LoadBeanRequest extends LoadRequest {
* Construct for lazy load request.
*/
public LoadBeanRequest(LoadBeanBuffer loadBuffer, EntityBeanIntercept ebi, boolean loadCache) {
- this(loadBuffer, null, true, ebi.getLazyLoadProperty(), ebi.isLoaded(), loadCache || ebi.isLoadedFromCache());
+ this(loadBuffer, null, true, ebi.lazyLoadProperty(), ebi.isLoaded(), loadCache || ebi.isLoadedFromCache());
}
/**
@@ -66,7 +66,7 @@ public final class LoadBeanRequest extends LoadRequest {
final List