@NotStorableClass public class LinkManager extends Object
Constructor and Description |
---|
LinkManager(IGarbageManagerForLinkUpdate garbageManager) |
Modifier and Type | Method and Description |
---|---|
void |
addLink(DataRecordIdentifier referencingDataRecordIdentifier,
DataRecordIdentifier referencedDataRecordIdentifier)
add a link from reference to referenced
#initializeLinkUpdate() must be called before first call to this
method |
LinkRecordManager |
getLinkRecordManager() |
void |
initializeLinkUpdate(Set<DataRecordIdentifier> attachedToRoot)
initialize link between object update
must be call before #addLink(long, long) ,
#removeLink(long) and linkUpdate() |
boolean |
isReferenced(DataRecordIdentifier dataRecordIdentifier) |
void |
linkUpdate()
update link between object on database according to
#addLink(long, long) and #removeLink(long) call |
void |
removeLink(DataRecordIdentifier referencingDataRecordIdentifier,
DataRecordIdentifier referencedDataRecordIdentifier)
remove a link from referencing to referenced
#initializeLinkUpdate() must be called before first call to this
method |
void |
removeLinkIfExist(DataRecordIdentifier referencedDataRecordIdentifier) |
public LinkManager(IGarbageManagerForLinkUpdate garbageManager)
public void initializeLinkUpdate(Set<DataRecordIdentifier> attachedToRoot)
#addLink(long, long)
,
#removeLink(long)
and linkUpdate()
attachedToRoot
- public void addLink(DataRecordIdentifier referencingDataRecordIdentifier, DataRecordIdentifier referencedDataRecordIdentifier)
#initializeLinkUpdate()
must be called before first call to this
methodreferencingDataRecordIdentifier
- data record identifier for object that referencereferencedDataRecordIdentifier
- data record identifier for referenced objectGarbageException
public void removeLink(DataRecordIdentifier referencingDataRecordIdentifier, DataRecordIdentifier referencedDataRecordIdentifier)
#initializeLinkUpdate()
must be called before first call to this
methodreferencingDataRecordIdentifier
- data record identifier for object that referencereferencedDataRecordIdentifier
- data record identifier for referenced objectGarbageException
public void removeLinkIfExist(DataRecordIdentifier referencedDataRecordIdentifier) throws GarbageException, ReferenceLinkGarbageException
public void linkUpdate() throws GarbageException, ReferenceLinkGarbageException
#addLink(long, long)
and #removeLink(long)
callpublic boolean isReferenced(DataRecordIdentifier dataRecordIdentifier) throws GarbageException, ReferenceLinkGarbageException
dataRecordIdentifier
- data record identifier for objectGarbageException
ReferenceLinkGarbageException
public LinkRecordManager getLinkRecordManager()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.