Author: rareddy
Date: 2009-04-03 18:26:22 -0400 (Fri, 03 Apr 2009)
New Revision: 713
Modified:
trunk/connector-metadata/src/main/java/com/metamatrix/connector/metadata/IndexConnector.java
Log:
TEIID-461: Moved the required call to MedataService interface and moved the required
classes into engine.
Modified:
trunk/connector-metadata/src/main/java/com/metamatrix/connector/metadata/IndexConnector.java
===================================================================
---
trunk/connector-metadata/src/main/java/com/metamatrix/connector/metadata/IndexConnector.java 2009-04-03
22:25:56 UTC (rev 712)
+++
trunk/connector-metadata/src/main/java/com/metamatrix/connector/metadata/IndexConnector.java 2009-04-03
22:26:22 UTC (rev 713)
@@ -31,7 +31,7 @@
import com.metamatrix.connector.metadata.adapter.ObjectConnector;
import com.metamatrix.connector.metadata.internal.IObjectSource;
import com.metamatrix.dqp.service.DQPServiceNames;
-import com.metamatrix.dqp.service.metadata.IndexSelectorSource;
+import com.metamatrix.dqp.service.MetadataService;
/**
* Connector whose source is metadata index files stored in vdbs aviailable to
@@ -45,8 +45,9 @@
*/
protected IObjectSource getMetadataObjectSource(final ExecutionContext context)
throws ConnectorException {
ConnectorEnvironmentImpl internalEnvironment = (ConnectorEnvironmentImpl)
this.getEnvironment();
+
// lookup indesService
- IndexSelectorSource metadataService = (IndexSelectorSource)
internalEnvironment.findResource(DQPServiceNames.METADATA_SERVICE);
+ MetadataService metadataService = (MetadataService)
internalEnvironment.findResource(DQPServiceNames.METADATA_SERVICE);
try {
return metadataService.getMetadataObjectSource(context.getVirtualDatabaseName(),
context.getVirtualDatabaseVersion());