|
|||||||||||
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(java.lang.String jdbcUrl,
java.lang.String jdbcDriver,
java.lang.String dbUsername,
java.lang.String dbPassword)
Constructor. |
Method Summary | |
---|---|
java.util.Vector<Entry> |
getAttributes(java.lang.String artifactType,
java.lang.String classType)
Retrieves the attributes of a given artifact (CI or a Relationship). |
java.lang.String |
getCdmVersion()
Retrieves the version of the Common Data Model, which meta-data is extracted. |
protected java.lang.String |
getIdentifierName(NamingRuleIdentifier identifier)
Generate proper name for provided NamingRuleIdentifier. |
protected java.util.List<NamingRule> |
getNamingRules(java.lang.String classType)
FIXME: |
java.util.Map<java.lang.String,java.lang.Object> |
getTypes(java.lang.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(java.lang.String jdbcUrl, java.lang.String jdbcDriver, java.lang.String dbUsername, java.lang.String dbPassword) throws java.lang.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.
java.lang.Exception
- if the JDBC driver is unavailable.Method Detail |
---|
public java.util.Vector<Entry> getAttributes(java.lang.String artifactType, java.lang.String classType) throws java.lang.Exception
getAttributes
in class MetaData
artifactType
- 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.
java.lang.Exception
- if a problem occurs.public java.lang.String getCdmVersion() throws java.lang.Exception
getCdmVersion
in class MetaData
java.lang.Exception
- if a problem occurs.public java.util.Map<java.lang.String,java.lang.Object> getTypes(java.lang.String artifactType) throws java.lang.Exception
getTypes
in class MetaData
artifactType
- determines the type of artifact - either
IdMLConstants.ARTIFACT_CI
or
IdMLConstants.ARTIFACT_RELATIONSHIP
.
java.lang.Exception
- if a problem occurs.protected java.util.List<NamingRule> getNamingRules(java.lang.String classType) throws java.lang.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 MetaData
classType
- the class type of interest.
java.lang.Exception
- if a problem occurs when reading the rules.JarNamingRulesReader
,
TADDMNamingRulesReader
protected java.lang.String getIdentifierName(NamingRuleIdentifier identifier)
getIdentifierName
in class MetaData
identifier
- whose name will be generate.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |