public class PersistableDocumentIDRegistry extends DocumentIDRegistry
DocumentIDRegistry.MODE| Constructor and Description |
|---|
PersistableDocumentIDRegistry(CSVReader documentIDReader,
CSVWriter documentIDWriter,
java.lang.String processCode) |
PersistableDocumentIDRegistry(CSVReader documentIDReader,
java.lang.String processCode) |
PersistableDocumentIDRegistry(CSVWriter documentIDWriter,
java.lang.String processCode) |
PersistableDocumentIDRegistry(java.lang.String processCode) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addID(java.lang.String qualifier,
java.lang.String documentID,
long pk,
DocumentIDRegistry.MODE mode)
Adds a new mapping ID<->PK to the registry.
|
void |
clearAllDocumentIds() |
protected java.util.List<ImpexDocumentIdModel> |
getAllImpexDocumentIDs() |
protected java.lang.String |
getID(java.lang.String qualifier,
long pk,
DocumentIDRegistry.MODE mode)
Gets the ID to which the given PK is mapped.
|
protected long |
getPK(java.lang.String qualifier,
java.lang.String documentID,
DocumentIDRegistry.MODE mode)
Gets the PK to which the given ID is mapped.
|
protected java.util.Map<java.lang.String,<any>> |
getQualifiersMap(DocumentIDRegistry.MODE mode)
Returns the storage related to the given mode.
|
calculateNextID, closeStreams, containsID, containsPK, exportID, hasUnresolvedIDs, importIDs, isResolved, isUnresolved, lookupID, lookupPK, printUnresolvedIDs, registerID, registerPK, resolveIDpublic PersistableDocumentIDRegistry(java.lang.String processCode)
public PersistableDocumentIDRegistry(CSVWriter documentIDWriter, java.lang.String processCode)
public PersistableDocumentIDRegistry(CSVReader documentIDReader, java.lang.String processCode)
protected java.lang.String getID(java.lang.String qualifier,
long pk,
DocumentIDRegistry.MODE mode)
DocumentIDRegistrygetID in class DocumentIDRegistryqualifier - scope in which will be searchedpk - the PK for which the ID will be returnedmode - defines the ID storage in which will be searchedprotected long getPK(java.lang.String qualifier,
java.lang.String documentID,
DocumentIDRegistry.MODE mode)
DocumentIDRegistrygetPK in class DocumentIDRegistryqualifier - scope of the IDdocumentID - ID for which the PK will be returnedmode - defines the ID storage in which will be searchedprotected void addID(java.lang.String qualifier,
java.lang.String documentID,
long pk,
DocumentIDRegistry.MODE mode)
throws ImpExException
DocumentIDRegistryaddID in class DocumentIDRegistryqualifier - the qualifier to which the ID is relateddocumentID - the new IDpk - the PK to which the ID will be mappedmode - defines the ID storage where the ID will be addedImpExException - the ID already exists and maps to another OKprotected java.util.List<ImpexDocumentIdModel> getAllImpexDocumentIDs()
public void clearAllDocumentIds()
protected java.util.Map<java.lang.String,<any>> getQualifiersMap(DocumentIDRegistry.MODE mode)
DocumentIDRegistrygetQualifiersMap in class DocumentIDRegistrymode - the mode to which the associated storage is neededCopyright © 2018 SAP SE. All Rights Reserved.