public class MvsDataSetDirectory
extends java.lang.Object
IMvsResources that have been retrieved during the active
session.
Not intended to be sub-classed by clients.
| Constructor and Description |
|---|
MvsDataSetDirectory(MvsSubsystem pMvsSubsystem)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDataSet(IMvsDataset pDs)
Adds a data set to the directory.
|
void |
clear()
Clears the data set directory, removing all cached data set instances.
|
IMvsDataset |
getDataSet(java.lang.String pDataSetName)
Gets a data set with the given name from the directory.
|
java.util.Collection<IMvsDataset> |
getDataSets()
Gets all data sets contained by the directory.
|
IMvsResource |
getResource(java.lang.String pFullName)
Returns a
IMvsDataset or a MvsDatasetMember for the full
qualified name. |
void |
loadLinkedDataSetsFromCache(org.eclipse.core.runtime.IProgressMonitor pMon)
Loads data sets of linked element types from cache.
|
void |
saveLinkedDataSets(org.eclipse.core.runtime.IProgressMonitor pMon)
Persists all data sets (including members) which have linked MVS element
instances in the currently loaded AWM model.
|
void |
updateRenamedDataSet(java.lang.String pOldName,
java.lang.String pNewName)
Updates the key of a renamed data set.
|
public MvsDataSetDirectory(MvsSubsystem pMvsSubsystem)
pMvsSubsystem - the MVS sub systempublic void addDataSet(IMvsDataset pDs)
pDs - the data set to be addedgetDataSet(String)public IMvsDataset getDataSet(java.lang.String pDataSetName)
pDataSetName - name of the desired data setnull if the directory does
not contain a data set with the given namepublic java.util.Collection<IMvsDataset> getDataSets()
public void updateRenamedDataSet(java.lang.String pOldName,
java.lang.String pNewName)
pOldName - old name of a renamed data setpNewName - new name of a renamed data setpublic IMvsResource getResource(java.lang.String pFullName)
IMvsDataset or a MvsDatasetMember for the full
qualified name.pFullName - data set name or data set name and membername (Q1.Q2(MEM))null, if no resource with that
name exists in the directorypublic void clear()
public void saveLinkedDataSets(org.eclipse.core.runtime.IProgressMonitor pMon)
throws java.io.IOException
pMon - a progress monitorjava.io.IOException - if persisting MVS data sets failedpublic void loadLinkedDataSetsFromCache(org.eclipse.core.runtime.IProgressMonitor pMon)
throws java.io.IOException
pMon - a progress monitorjava.io.IOException - if loading linked data sets failsCopyright © 2015 Micro Focus GmbH. All rights reserved.