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)
          Deprecated.  
 boolean existsParentChild(DirectoryNode parent, AVMNode child)
          Does the entry exist for a given child in a given parent.
 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, java.lang.String childNamePattern)
          Get all the children of a given parent.
 void rename(ChildKey key, java.lang.String newName)
          Rename a child entry (specific rename 'case' only)
 void save(ChildEntry entry)
          Save an unsaved 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,
                           java.lang.String childNamePattern)
Get all the children of a given parent.

Parameters:
parent - The parent.
childNamePattern - - achild name pattern to match - null is supported for match all
Returns:
A List of ChildEntries.

existsParentChild

boolean existsParentChild(DirectoryNode parent,
                          AVMNode child)
Does the entry exist for a given child in a given parent.

Parameters:
parent - The parent.
child - The child.
Returns:
True if it exists

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.

rename

void rename(ChildKey key,
            java.lang.String newName)
Rename a child entry (specific rename 'case' only)

Parameters:
child - The one to rename.

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)
Deprecated. 

Evict a child entry.

Parameters:
entry -


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