@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
- GarbageException
ReferenceLinkGarbageException
public 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 objectGarbageException
ReferenceLinkGarbageException
public void removeLinkIfExist(DataRecordIdentifier referencedDataRecordIdentifier) throws GarbageException, ReferenceLinkGarbageException
referencedDataRecordIdentifier
- data record identifier for referenced objectGarbageException
ReferenceLinkGarbageException
public void updateReferenceLink(ReferenceLink referenceLink) throws GarbageException
GarbageException
public boolean isReferenced(DataRecordIdentifier dataRecordIdentifier) throws GarbageException, ReferenceLinkGarbageException
dataRecordIdentifier
- data record identifier for objectGarbageException
ReferenceLinkGarbageException
public List<DataRecordIdentifier> getReferencingForReferenced(DataRecordIdentifier referencedDataRecordIdentifier) throws GarbageException, ReferenceLinkGarbageException
referencedDataRecordIdentifier
- data record identifier for referenced objectGarbageException
ReferenceLinkGarbageException
@Fortest public int getNumberOfLinkRecord() throws GarbageException, ReferenceLinkGarbageException
GarbageException
ReferenceLinkGarbageException
@Fortest public ReferenceLink[] getAllReferenceLink() throws GarbageException, ReferenceLinkGarbageException
public void getAllDataRecordIdentifiers(Set<DataRecordIdentifier> setToUpdate) throws GarbageException, ReferenceLinkGarbageException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.