|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VDBDefn
Date Dec 3, 2002
To import a VDB, the following information is required:
1. VDB Jar #setVDBJar(Object)
. This jar will provide
the model and their model info.
2. Add a model to connector binding mapping #addModelToConnectorMapping(String, String)
that indicates which binding should be used for that model
3. set VDB name (version will be assign at creation time)
Optional information:
1. Add a ConnectorBinding #addConnectorBinding(ConnectorBinding)
. If this
already exist in the configration, it will not be loaded. The
model will reference the existing binding.
If not added, the connector binding mapping will indicate an
assumed already existing binding.
2. Add a ConnectorType {@link #addConnectorType(ComponentType). If
already exist in the configration, it will not be loaded. The
binding will reference the existing type.
Method Summary | |
---|---|
boolean |
doesVDBHaveValidityError()
Returns true if the VDBDefn was built from a .VDB file
that had a validity error; |
ConnectorBinding |
getConnectorBindingByName(java.lang.String connectorBindingName)
Returns the connector binding for the specified connector binding name. |
ConnectorBinding |
getConnectorBindingByRouting(java.lang.String routingUUID)
Returns the connector binding for the specified routing UUID. |
java.util.Map<java.lang.String,ConnectorBinding> |
getConnectorBindings()
Returns the connector bindings that are used in this VDB. |
ComponentType |
getConnectorType(java.lang.String componentTypeName)
Returns the component type for the specified componentTypeName. |
java.util.Map<java.lang.String,ComponentType> |
getConnectorTypes()
Returns the connector types that are used in this VDB. |
char[] |
getDataRoles()
Get the XML contents of data roles defined for the VDB; |
java.util.Properties |
getHeaderProperties()
Header Properties |
ModelInfo |
getMatertializationModel()
Get the Materialization model in this VDB if one exists. |
java.util.Collection<java.lang.String> |
getModelNames()
Returns the collection of all the model names contained in the vdb archive. |
java.util.Map |
getModelToBindingMappings()
Returns the model to connector binding mappings. |
short |
getStatus()
Returns a short indicating if the status of the VirtualDatabase. |
VDBStream |
getVDBStream()
This will let the uses stream the VDB contents the way they would need. |
java.lang.String[] |
getVDBValidityErrors()
During the load of the VDB, if there are any validity errors reported in the VDB manifest file, they will be loaded into Defn file for observation or for the logging. |
java.lang.String |
getVersion()
Returns the vdbVersion. |
boolean |
isActiveStatus()
|
boolean |
isVisible(java.lang.String resourcePath)
Is the given resource file is visible to the user. |
Methods inherited from interface com.metamatrix.common.vdb.api.VDBInfo |
---|
getCreatedBy, getDateCreated, getDescription, getFileName, getModel, getModels, getName, getUUID, hasWSDLDefined |
Method Detail |
---|
VDBStream getVDBStream()
java.lang.String getVersion()
java.util.Map<java.lang.String,ComponentType> getConnectorTypes()
ComponentType
ComponentType getConnectorType(java.lang.String componentTypeName)
componentTypeName
-
java.util.Map<java.lang.String,ConnectorBinding> getConnectorBindings()
ConnectorBinding
ConnectorBinding getConnectorBindingByName(java.lang.String connectorBindingName)
routingUUID
-
ConnectorBinding getConnectorBindingByRouting(java.lang.String routingUUID)
routingUUID
-
java.util.Map getModelToBindingMappings()
java.util.Collection<java.lang.String> getModelNames()
ModelInfo getMatertializationModel()
null
if none exists.short getStatus()
MetadataConstants.VDB_STATUS VDB_STATUS}
boolean isActiveStatus()
boolean doesVDBHaveValidityError()
true
if the VDBDefn was built from a .VDB file
that had a validity error;
java.lang.String[] getVDBValidityErrors()
boolean isVisible(java.lang.String resourcePath)
resourcePath
- - path in the VDB file
char[] getDataRoles()
java.util.Properties getHeaderProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |