|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.metamatrix.metadata.runtime.model.BasicVirtualDatabaseMetadata
public class BasicVirtualDatabaseMetadata
Constructor Summary | |
---|---|
BasicVirtualDatabaseMetadata(MetadataSourceAPI metadataSource,
VirtualDatabaseID id)
|
Method Summary | |
---|---|
java.util.Collection |
getAllModels()
Return all models that are defined in the VDB regardless of type or visibility. |
java.util.List |
getALLPaths(java.util.Collection models)
|
java.util.Collection |
getDisplayableModels()
Obtain a collection of ModelID's deployed in this VirtualDatabase metadata. |
java.util.List |
getElementsInGroup(GroupID groupID)
Return an ordered list of ElementID's for the specified groupID. |
java.util.Collection |
getGroupsInModel(ModelID modelID)
Obtain a collection of Group for the specified modelID. |
Model |
getModel(java.lang.String name)
Return model for the specified name |
java.util.Collection |
getProcedures(ModelID modelID)
Obtain a collection of ProcedureID's for the specified modelID. |
VirtualDatabase |
getVirtualDatabase()
returns the VirtualDatabase for which this metadata object represents. |
VirtualDatabaseID |
getVirtualDatabaseID()
returns the VirtualDatabaseID that identifies the VirtualDatabaseMetadata. |
boolean |
isModelDetailsLoaded()
Returns true if the metadata for the groups and elements have
been loaded. |
boolean |
isVisible(java.lang.String resourcePath)
Returns the visibility for a resource path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicVirtualDatabaseMetadata(MetadataSourceAPI metadataSource, VirtualDatabaseID id)
Method Detail |
---|
public boolean isModelDetailsLoaded()
VirtualDatabaseMetadata
true
if the metadata for the groups and elements have
been loaded. The loading of the details are only used when the metadata tree
is beind displayed. So to cut down on the overhead when it's never been asked
for, the details are not loaded when only the models are needed by
query processing.
isModelDetailsLoaded
in interface VirtualDatabaseMetadata
public java.util.Collection getDisplayableModels() throws VirtualDatabaseException
getDisplayableModels
in interface VirtualDatabaseMetadata
VirtualDatabaseException
- if an error occurs while trying to read the data.public java.util.Collection getAllModels() throws VirtualDatabaseException
VirtualDatabaseMetadata
getAllModels
in interface VirtualDatabaseMetadata
VirtualDatabaseException
public Model getModel(java.lang.String name) throws VirtualDatabaseException
VirtualDatabaseMetadata
getModel
in interface VirtualDatabaseMetadata
VirtualDatabaseException
public boolean isVisible(java.lang.String resourcePath) throws VirtualDatabaseException
isVisible
in interface VirtualDatabaseMetadata
resourcePath
-
true
if the resource is visible.
VirtualDatabaseException
public VirtualDatabase getVirtualDatabase() throws VirtualDatabaseException
VirtualDatabase
for which this metadata object represents.
getVirtualDatabase
in interface VirtualDatabaseMetadata
VirtualDatabaseException
- if an error occurs while trying to read the data.public VirtualDatabaseID getVirtualDatabaseID()
getVirtualDatabaseID
in interface VirtualDatabaseMetadata
public java.util.List getALLPaths(java.util.Collection models) throws VirtualDatabaseException
getALLPaths
in interface VirtualDatabaseMetadata
VirtualDatabaseException
public java.util.Collection getProcedures(ModelID modelID) throws VirtualDatabaseException
getProcedures
in interface VirtualDatabaseMetadata
modelID
- is the id for the Model
VirtualDatabaseException
- if an error occurs while trying to read the data.public java.util.List getElementsInGroup(GroupID groupID) throws VirtualDatabaseException
getElementsInGroup
in interface VirtualDatabaseMetadata
groupID
- is the group for which the elements are to be obtained.
VirtualDatabaseException
- if an error occurs while trying to read the data.public java.util.Collection getGroupsInModel(ModelID modelID) throws VirtualDatabaseException
getGroupsInModel
in interface VirtualDatabaseMetadata
modelID
- is the id for the Model
VirtualDatabaseException
- if an error occurs while trying to read the data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |