|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.domain.avm.AbstractAVMNodeLinksDAOImpl
public abstract class AbstractAVMNodeLinksDAOImpl
Abstract implementation for AVMNodeLinks DAO.
This provides basic services such as caching but defers to the underlying implementation for CRUD operations.
Constructor Summary | |
---|---|
AbstractAVMNodeLinksDAOImpl()
Default constructor. |
Method Summary | |
---|---|
void |
createChildEntry(long parentNodeId,
java.lang.String name,
long childNodeId)
Get an entry by name and parent |
protected abstract void |
createChildEntryEntity(AVMChildEntryEntity childEntryEntity)
|
void |
createHistoryLink(long ancestorNodeId,
long descendentNodeId)
|
protected abstract void |
createHistoryLinkEntity(long ancestorNodeId,
long descendentNodeId)
|
void |
createMergeLink(long mergeFromNodeId,
long mergeToNodeId)
|
protected abstract void |
createMergeLinkEntity(long mergeFromNodeId,
long mergeToNodeId)
|
void |
deleteChildEntriesByParent(long parentNodeId)
Delete all children of the given parent |
void |
deleteChildEntry(AVMChildEntryEntity childEntryEntity)
Delete one |
protected abstract int |
deleteChildEntryEntities(long parentNodeId)
|
protected abstract int |
deleteChildEntryEntity(long parentNodeId,
long childNodeId)
|
protected abstract int |
deleteChildEntryEntity(long parentNodeId,
java.lang.String name)
|
void |
deleteHistoryLink(long ancestorNodeId,
long descendentNodeId)
|
protected abstract int |
deleteHistoryLinkEntity(long ancestorNodeId,
long descendentNodeId)
|
void |
deleteMergeLink(long mergeFromNodeId,
long mergeToNodeId)
|
protected abstract int |
deleteMergeLinkEntity(long mergeFromNodeId,
long mergeToNodeId)
|
java.util.List |
getChildEntriesByChild(long childNodeId)
Get all the ChildEntries corresponding to the given child |
java.util.List |
getChildEntriesByParent(long parentNodeId,
java.lang.String childNamePattern)
Get all the children of a given parent (with optional child name pattern) |
AVMChildEntryEntity |
getChildEntry(long parentNodeId,
long childNodeId)
Get the entry for a given child in a given parent |
AVMChildEntryEntity |
getChildEntry(long parentNodeId,
java.lang.String name)
Get an entry by name and parent |
protected abstract java.util.List |
getChildEntryEntitiesByChild(long childNodeId)
|
protected abstract java.util.List |
getChildEntryEntitiesByParent(long parentNodeId)
|
protected abstract java.util.List |
getChildEntryEntitiesByParent(long parentNodeId,
java.lang.String childNamePattern)
|
protected abstract AVMChildEntryEntity |
getChildEntryEntity(AVMChildEntryEntity childEntryEntity)
|
protected abstract AVMChildEntryEntity |
getChildEntryEntity(long parentNodeId,
long childNodeId)
|
protected abstract AVMChildEntryEntity |
getChildEntryEntity(long parentNodeId,
java.lang.String name)
|
AVMHistoryLinkEntity |
getHistoryLinkByDescendent(long descendentNodeId)
|
protected abstract java.util.List |
getHistoryLinkEntitiesByAncestor(long ancestorNodeId)
|
protected abstract AVMHistoryLinkEntity |
getHistoryLinkEntity(long ancestorNodeId,
long descendentNodeId)
|
protected abstract AVMHistoryLinkEntity |
getHistoryLinkEntityByDescendent(long descendentNodeId)
|
java.util.List |
getHistoryLinksByAncestor(long ancestorNodeId)
|
AVMMergeLinkEntity |
getMergeLinkByTo(long mergeToNodeId)
|
protected abstract java.util.List |
getMergeLinkEntitiesByFrom(long mergeFromNodeId)
|
protected abstract AVMMergeLinkEntity |
getMergeLinkEntityByTo(long mergeToNodeId)
|
java.util.List |
getMergeLinksByFrom(long mergeFromNodeId)
|
void |
setAvmChildEntryCache(org.alfresco.repo.cache.SimpleCache avmChildEntryCache)
Set the cache to use for avm_child_entry lookups (optional). |
void |
setAvmHistoryLinkCache(org.alfresco.repo.cache.SimpleCache avmHistoryLinkCache)
Set the cache to use for avm_history_link lookups (optional). |
void |
updateChildEntry(AVMChildEntryEntity childEntryEntity)
Specific rename 'case' only |
protected abstract int |
updateChildEntryEntity(AVMChildEntryEntity childEntryEntity)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAVMNodeLinksDAOImpl()
This sets up the DAO accessors to bypass any caching to handle the case where the caches are not supplied in the setters.
Method Detail |
---|
public void setAvmChildEntryCache(org.alfresco.repo.cache.SimpleCache avmChildEntryCache)
avmChildEntryCache
- the cache of IDs to AVMChildEntryEntitiespublic void setAvmHistoryLinkCache(org.alfresco.repo.cache.SimpleCache avmHistoryLinkCache)
avmHistoryLinkCache
- the cache of ID to ID (from descendent to ancestor)public void createChildEntry(long parentNodeId, java.lang.String name, long childNodeId)
createChildEntry
in interface AVMNodeLinksDAO
public AVMChildEntryEntity getChildEntry(long parentNodeId, java.lang.String name)
getChildEntry
in interface AVMNodeLinksDAO
public java.util.List getChildEntriesByParent(long parentNodeId, java.lang.String childNamePattern)
getChildEntriesByParent
in interface AVMNodeLinksDAO
public AVMChildEntryEntity getChildEntry(long parentNodeId, long childNodeId)
getChildEntry
in interface AVMNodeLinksDAO
public java.util.List getChildEntriesByChild(long childNodeId)
getChildEntriesByChild
in interface AVMNodeLinksDAO
public void updateChildEntry(AVMChildEntryEntity childEntryEntity)
updateChildEntry
in interface AVMNodeLinksDAO
public void deleteChildEntry(AVMChildEntryEntity childEntryEntity)
deleteChildEntry
in interface AVMNodeLinksDAO
public void deleteChildEntriesByParent(long parentNodeId)
deleteChildEntriesByParent
in interface AVMNodeLinksDAO
protected abstract java.util.List getChildEntryEntitiesByParent(long parentNodeId)
protected abstract java.util.List getChildEntryEntitiesByParent(long parentNodeId, java.lang.String childNamePattern)
protected abstract java.util.List getChildEntryEntitiesByChild(long childNodeId)
protected abstract AVMChildEntryEntity getChildEntryEntity(long parentNodeId, java.lang.String name)
protected abstract AVMChildEntryEntity getChildEntryEntity(long parentNodeId, long childNodeId)
protected abstract AVMChildEntryEntity getChildEntryEntity(AVMChildEntryEntity childEntryEntity)
protected abstract void createChildEntryEntity(AVMChildEntryEntity childEntryEntity)
protected abstract int updateChildEntryEntity(AVMChildEntryEntity childEntryEntity)
protected abstract int deleteChildEntryEntity(long parentNodeId, java.lang.String name)
protected abstract int deleteChildEntryEntity(long parentNodeId, long childNodeId)
protected abstract int deleteChildEntryEntities(long parentNodeId)
public void createMergeLink(long mergeFromNodeId, long mergeToNodeId)
createMergeLink
in interface AVMNodeLinksDAO
public void deleteMergeLink(long mergeFromNodeId, long mergeToNodeId)
deleteMergeLink
in interface AVMNodeLinksDAO
public AVMMergeLinkEntity getMergeLinkByTo(long mergeToNodeId)
getMergeLinkByTo
in interface AVMNodeLinksDAO
public java.util.List getMergeLinksByFrom(long mergeFromNodeId)
getMergeLinksByFrom
in interface AVMNodeLinksDAO
protected abstract void createMergeLinkEntity(long mergeFromNodeId, long mergeToNodeId)
protected abstract int deleteMergeLinkEntity(long mergeFromNodeId, long mergeToNodeId)
protected abstract AVMMergeLinkEntity getMergeLinkEntityByTo(long mergeToNodeId)
protected abstract java.util.List getMergeLinkEntitiesByFrom(long mergeFromNodeId)
public void createHistoryLink(long ancestorNodeId, long descendentNodeId)
createHistoryLink
in interface AVMNodeLinksDAO
public void deleteHistoryLink(long ancestorNodeId, long descendentNodeId)
deleteHistoryLink
in interface AVMNodeLinksDAO
public AVMHistoryLinkEntity getHistoryLinkByDescendent(long descendentNodeId)
getHistoryLinkByDescendent
in interface AVMNodeLinksDAO
public java.util.List getHistoryLinksByAncestor(long ancestorNodeId)
getHistoryLinksByAncestor
in interface AVMNodeLinksDAO
protected abstract void createHistoryLinkEntity(long ancestorNodeId, long descendentNodeId)
protected abstract int deleteHistoryLinkEntity(long ancestorNodeId, long descendentNodeId)
protected abstract AVMHistoryLinkEntity getHistoryLinkEntity(long ancestorNodeId, long descendentNodeId)
protected abstract AVMHistoryLinkEntity getHistoryLinkEntityByDescendent(long descendentNodeId)
protected abstract java.util.List getHistoryLinkEntitiesByAncestor(long ancestorNodeId)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |