From 8f432aa0a950d42135c961ec727a9ee4bb2b2001 Mon Sep 17 00:00:00 2001
From: rbygrave
* Technically this is NOT an extension of * java.util.Collection. The reason being that java.util.Map is not a * Collection. I realise this makes this name confusing so I apologise for that. - *
*/ public interface BeanCollection* Returning true means can safely skip cascade save for this bean collection. - *
*/ boolean isSkipSave(); @@ -93,7 +90,6 @@ public interface BeanCollection* That is, if the collection was not loaded due to filterMany predicates etc * then make sure the collection is set to empty. - *
*/ boolean checkEmptyLazyLoad(); @@ -136,10 +132,7 @@ public interface BeanCollection- * This is disallowed for BeanMap. - *
+ * Add the bean to the collection. This is disallowed for BeanMap. */ void internalAdd(Object bean); @@ -168,7 +161,6 @@ public interface BeanCollection* For maps this returns the entrySet as we need the keys of the map. - *
*/ Collection> getActualEntries(); @@ -185,6 +177,11 @@ public interface BeanCollection* This will potentially end up as an insert into a intersection table for a * ManyToMany. - *
*/ void modifyAddition(E bean); @@ -215,7 +210,6 @@ public interface BeanCollection* This will potentially end up as an delete from an intersection table for a * ManyToMany. - *
*/ void modifyRemoval(Object bean); diff --git a/ebean-api/src/main/java/io/ebean/bean/PersistenceContext.java b/ebean-api/src/main/java/io/ebean/bean/PersistenceContext.java index 8c861af1f..9d67499d1 100644 --- a/ebean-api/src/main/java/io/ebean/bean/PersistenceContext.java +++ b/ebean-api/src/main/java/io/ebean/bean/PersistenceContext.java @@ -1,13 +1,10 @@ package io.ebean.bean; -import java.util.List; - /** * Holds entity beans by there type and id. ** This is used to ensure only one instance for a given entity type and id is * used to build object graphs from queries and lazy loading. - *
*/ public interface PersistenceContext { @@ -22,7 +19,6 @@ public interface PersistenceContext { ** Returns an existing entity bean (if one is already there) and otherwise * returns null. - *
*/ Object putIfAbsent(Class> rootType, Object id, Object bean); @@ -79,17 +75,11 @@ public interface PersistenceContext { */ boolean resetLimit(); - /** - * Return the list of dirty beans held by this persistence context. - */ - List