@NotStorableClass public class LinkRecordManager extends Object
| Constructor and Description |
|---|
LinkRecordManager(StoreHeader storeHeader,
HeapRecordableManager heapRecordableManager,
HelperBinaryConversion helperBinaryConversion) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendNewReferenceLink(ReferenceLink referenceLink) |
void |
deleteReferenceLink(ReferenceLink referenceLink) |
void |
getAllDataRecordIdentifiers(Set<DataRecordIdentifier> setToUpdate) |
ReferenceLink[] |
getAllReferenceLink() |
int |
getNumberOfLinkRecord()
for test purpose
|
List<DataRecordIdentifier> |
getReferencingForReferenced(DataRecordIdentifier referencedDataRecordIdentifier)
get all referencing for a referenced
|
boolean |
isReferenced(DataRecordIdentifier dataRecordIdentifier) |
void |
removeLink(DataRecordIdentifier referencedDataRecordIdentifier)
remove all link to a referenced, must exist
|
void |
removeLinkIfExist(DataRecordIdentifier referencedDataRecordIdentifier)
remove all link to a referenced, can not exist
|
ReferenceLink |
searchByReferenced(DataRecordIdentifier referencedDataRecordIdentifier) |
void |
updateReferenceLink(ReferenceLink referenceLink) |
public LinkRecordManager(StoreHeader storeHeader, HeapRecordableManager heapRecordableManager, HelperBinaryConversion helperBinaryConversion)
public ReferenceLink searchByReferenced(DataRecordIdentifier referencedDataRecordIdentifier) throws GarbageException, ReferenceLinkGarbageException
referencedDataRecordIdentifier - GarbageExceptionReferenceLinkGarbageExceptionpublic void appendNewReferenceLink(ReferenceLink referenceLink) throws GarbageException, ReferenceLinkGarbageException
public void deleteReferenceLink(ReferenceLink referenceLink) throws GarbageException, ReferenceLinkGarbageException
public void removeLink(DataRecordIdentifier referencedDataRecordIdentifier) throws GarbageException, ReferenceLinkGarbageException
referencedDataRecordIdentifier - data record identifier for referenced objectGarbageExceptionReferenceLinkGarbageExceptionpublic void removeLinkIfExist(DataRecordIdentifier referencedDataRecordIdentifier) throws GarbageException, ReferenceLinkGarbageException
referencedDataRecordIdentifier - data record identifier for referenced objectGarbageExceptionReferenceLinkGarbageExceptionpublic void updateReferenceLink(ReferenceLink referenceLink) throws GarbageException
GarbageExceptionpublic boolean isReferenced(DataRecordIdentifier dataRecordIdentifier) throws GarbageException, ReferenceLinkGarbageException
dataRecordIdentifier - data record identifier for objectGarbageExceptionReferenceLinkGarbageExceptionpublic List<DataRecordIdentifier> getReferencingForReferenced(DataRecordIdentifier referencedDataRecordIdentifier) throws GarbageException, ReferenceLinkGarbageException
referencedDataRecordIdentifier - data record identifier for referenced objectGarbageExceptionReferenceLinkGarbageException@Fortest public int getNumberOfLinkRecord() throws GarbageException, ReferenceLinkGarbageException
GarbageExceptionReferenceLinkGarbageException@Fortest public ReferenceLink[] getAllReferenceLink() throws GarbageException, ReferenceLinkGarbageException
public void getAllDataRecordIdentifiers(Set<DataRecordIdentifier> setToUpdate) throws GarbageException, ReferenceLinkGarbageException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.