org.alfresco.repo.avm
Interface ChildEntryDAO


public interface ChildEntryDAO

DAO for ChildEntries.


Method Summary
 void delete(ChildEntry child)
          Delete one.
 void deleteByParent(AVMNode parent)
          Delete all children of the given parent.
 void evict(ChildEntry entry)
          Evict a child entry.
 ChildEntry get(ChildKey key)
          Get an entry by name and parent.
 java.util.List getByChild(AVMNode child)
          Get all the ChildEntries corresponding to the given child.
 java.util.List getByParent(DirectoryNode parent)
          Get all the children of a given parent.
 ChildEntry getByParentChild(DirectoryNode parent, AVMNode child)
          Get the entry for a given child in a given parent.
 void save(ChildEntry entry)
          Save an unsaved ChildEntry.
 void update(ChildEntry child)
          Update a dirty ChildEntry.
 

Method Detail

save

void save(ChildEntry entry)
Save an unsaved ChildEntry.

Parameters:
entry - The entry to save.

get

ChildEntry get(ChildKey key)
Get an entry by name and parent.

Parameters:
name - The name of the child to find.
parent - The parent to look in.
Returns:
The ChildEntry or null if not foun.

getByParent

java.util.List getByParent(DirectoryNode parent)
Get all the children of a given parent.

Parameters:
parent - The parent.
Returns:
A List of ChildEntries.

getByParentChild

ChildEntry getByParentChild(DirectoryNode parent,
                            AVMNode child)
Get the entry for a given child in a given parent.

Parameters:
parent - The parent.
child - The child.
Returns:
The ChildEntry or null.

getByChild

java.util.List getByChild(AVMNode child)
Get all the ChildEntries corresponding to the given child.

Parameters:
child - The child for which to look up entries.
Returns:
The matching entries.

update

void update(ChildEntry child)
Update a dirty ChildEntry.

Parameters:
child - The dirty entry.

delete

void delete(ChildEntry child)
Delete one.

Parameters:
child - The one to delete.

deleteByParent

void deleteByParent(AVMNode parent)
Delete all children of the given parent.

Parameters:
parent - The parent.

evict

void evict(ChildEntry entry)
Evict a child entry.

Parameters:
entry -


Copyright © 2005 - 2008 Alfresco Software, Inc. All Rights Reserved.