Various changes to keep Hibernate session caches from growing without bound.

Deleting AVM locks is considerably faster which makes large submits faster.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6935 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Britt Park
2007-10-09 01:11:19 +00:00
parent 2a47726733
commit 4489bd0a22
12 changed files with 341 additions and 172 deletions

View File

@@ -36,7 +36,7 @@ public interface ChildEntryDAO
* @param entry The entry to save.
*/
public void save(ChildEntry entry);
/**
* Get an entry by name and parent.
* @param name The name of the child to find.
@@ -44,14 +44,14 @@ public interface ChildEntryDAO
* @return The ChildEntry or null if not foun.
*/
public ChildEntry get(ChildKey key);
/**
* Get all the children of a given parent.
* @param parent The parent.
* @return A List of ChildEntries.
*/
public List<ChildEntry> getByParent(DirectoryNode parent);
/**
* Get the entry for a given child in a given parent.
* @param parent The parent.
@@ -59,29 +59,35 @@ public interface ChildEntryDAO
* @return The ChildEntry or null.
*/
public ChildEntry getByParentChild(DirectoryNode parent, AVMNode child);
/**
* Get all the ChildEntries corresponding to the given child.
* @param child The child for which to look up entries.
* @return The matching entries.
*/
public List<ChildEntry> getByChild(AVMNode child);
/**
* Update a dirty ChildEntry.
* @param child The dirty entry.
*/
public void update(ChildEntry child);
/**
* Delete one.
* @param child The one to delete.
*/
public void delete(ChildEntry child);
/**
* Delete all children of the given parent.
* @param parent The parent.
*/
public void deleteByParent(AVMNode parent);
/**
* Evict a child entry.
* @param entry
*/
public void evict(ChildEntry entry);
}