Package es.bsc.dataclay.util.info
Class VersionInfo
- java.lang.Object
-
- es.bsc.dataclay.util.info.VersionInfo
-
- All Implemented Interfaces:
Serializable
public final class VersionInfo extends Object implements Serializable
This class contains the info created for a version. It will be used to consolidate the version.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VersionInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVersionedObject(ObjectID newOID, ObjectID originalOID)Add a new pair versionOID-originalOID to the mappingExecutionEnvironmentIDgetLocID()Map<ObjectID,MetaDataInfo>getOriginalMD()Get the objectID-metadata mappingObjectIDgetVersionOID()Get the objectID of the main versioned objectMap<ObjectID,ObjectID>getVersionsMapping()Get the versionOID-originalOID mappingvoidsetLocID(ExecutionEnvironmentID theLocID)voidsetOriginalMD(Map<ObjectID,MetaDataInfo> newOriginalMD)Set the objectID-metadata mappingvoidsetVersionOID(ObjectID newOID)Set the objectID of the main versioned objectvoidsetVersionsMapping(Map<ObjectID,ObjectID> versionToOriginal)Set the versionOID-originalOID mappingStringtoString()
-
-
-
Method Detail
-
getVersionOID
public ObjectID getVersionOID()
Get the objectID of the main versioned object- Returns:
- versionOID
-
setVersionOID
public void setVersionOID(ObjectID newOID)
Set the objectID of the main versioned object- Parameters:
newOID- OID to be set
-
addVersionedObject
public void addVersionedObject(ObjectID newOID, ObjectID originalOID)
Add a new pair versionOID-originalOID to the mapping- Parameters:
newOID- The OID of the versionoriginalOID- The original OID corresponding to versionOID
-
setVersionsMapping
public void setVersionsMapping(Map<ObjectID,ObjectID> versionToOriginal)
Set the versionOID-originalOID mapping- Parameters:
versionToOriginal- A map containing a set of versionOIDs and their correspondence to original OIDs
-
getVersionsMapping
public Map<ObjectID,ObjectID> getVersionsMapping()
Get the versionOID-originalOID mapping- Returns:
- The mapping of the versionInfo
-
setOriginalMD
public void setOriginalMD(Map<ObjectID,MetaDataInfo> newOriginalMD)
Set the objectID-metadata mapping- Parameters:
newOriginalMD- A map containing the metadata of each ObjectID
-
getOriginalMD
public Map<ObjectID,MetaDataInfo> getOriginalMD()
Get the objectID-metadata mapping- Returns:
- A map containing the metadata of each ObjectID
-
getLocID
public ExecutionEnvironmentID getLocID()
- Returns:
- the locID
-
setLocID
public void setLocID(ExecutionEnvironmentID theLocID)
- Parameters:
theLocID- the locID to set
-
-