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 void
addVersionedObject(ObjectID newOID, ObjectID originalOID)
Add a new pair versionOID-originalOID to the mappingExecutionEnvironmentID
getLocID()
Map<ObjectID,MetaDataInfo>
getOriginalMD()
Get the objectID-metadata mappingObjectID
getVersionOID()
Get the objectID of the main versioned objectMap<ObjectID,ObjectID>
getVersionsMapping()
Get the versionOID-originalOID mappingvoid
setLocID(ExecutionEnvironmentID theLocID)
void
setOriginalMD(Map<ObjectID,MetaDataInfo> newOriginalMD)
Set the objectID-metadata mappingvoid
setVersionOID(ObjectID newOID)
Set the objectID of the main versioned objectvoid
setVersionsMapping(Map<ObjectID,ObjectID> versionToOriginal)
Set the versionOID-originalOID mappingString
toString()
-
-
-
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
-
-