|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.di.cdm.core.MetaData
com.ibm.di.cdm.itregistry.ITRegistryMetaData
public class ITRegistryMetaData
This class is used to retrieve CDM meta-data from an IT registry.
| Field Summary |
|---|
| Fields inherited from class com.ibm.di.cdm.core.MetaData |
|---|
resHash |
| Constructor Summary | |
|---|---|
ITRegistryMetaData(String jdbcUrl,
String jdbcDriver,
String dbUsername,
String dbPassword)
Constructor. |
|
| Method Summary | |
|---|---|
Vector<Entry> |
getAttributes(String artifactType,
String classType)
Retrieves the attributes of a given artifact (CI or a Relationship). |
String |
getCdmVersion()
Retrieves the version of the Common Data Model, which meta-data is extracted. |
protected String |
getIdentifierName(NamingRuleIdentifier identifier)
Generate proper name for provided NamingRuleIdentifier. |
protected List<NamingRule> |
getNamingRules(String classType)
FIXME: |
Map<String,Object> |
getTypes(String artifactType)
Returns the CDM meta-data types artifacts (CIs or Relationships). |
| Methods inherited from class com.ibm.di.cdm.core.MetaData |
|---|
createExplicitAttribute, createImplicitAttribute, getClassType, getExtendedAttributeName, getMSSClassName, getNamingRuleIdentifier, getRelationshipAttributes, getUnsatisfiedNamingRules, matchesNamingRules |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ITRegistryMetaData(String jdbcUrl,
String jdbcDriver,
String dbUsername,
String dbPassword)
throws Exception
jdbcUrl - the JDBC URL used for connecting to the IT registry.jdbcDriver - the JDBC driver for connecting to the IT registry.dbUsername - the user name used for connecting to the IT registry.dbPassword - the password used for connecting to the IT registry.
Exception - if the JDBC driver is unavailable.| Method Detail |
|---|
public Vector<Entry> getAttributes(String artifactType,
String classType)
throws Exception
getAttributes in class MetaDataartifactType - determines the type of artifact, which attributes we want.
Accepts either IdMLConstants.ARTIFACT_CI or
IdMLConstants.ARTIFACT_RELATIONSHIP.classType - the type of the artifact, which attributes we want.
Exception - if a problem occurs.
public String getCdmVersion()
throws Exception
getCdmVersion in class MetaDataException - if a problem occurs.
public Map<String,Object> getTypes(String artifactType)
throws Exception
getTypes in class MetaDataartifactType - determines the type of artifact - either
IdMLConstants.ARTIFACT_CI or
IdMLConstants.ARTIFACT_RELATIONSHIP.
Exception - if a problem occurs.
protected List<NamingRule> getNamingRules(String classType)
throws Exception
Important: Once the DIS team starts supporting Naming
Rule-s via the DataIntegrationServices API this method should be
extended to return their IT registry adapter classes.
getNamingRules in class MetaDataclassType - the class type of interest.
Exception - if a problem occurs when reading the rules.JarNamingRulesReader,
TADDMNamingRulesReaderprotected String getIdentifierName(NamingRuleIdentifier identifier)
getIdentifierName in class MetaDataidentifier - whose name will be generate.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||