com.metamatrix.connector.metadata
Class MultiObjectSource

java.lang.Object
  extended by com.metamatrix.connector.metadata.MultiObjectSource
All Implemented Interfaces:
com.metamatrix.connector.metadata.internal.IObjectSource

public class MultiObjectSource
extends java.lang.Object
implements com.metamatrix.connector.metadata.internal.IObjectSource

Holds two object sources and routes queries to them based on the suffix of the group name.


Constructor Summary
MultiObjectSource(com.metamatrix.connector.metadata.internal.IObjectSource primaryObjectSource, java.lang.String secondaryGroupNameSuffix, com.metamatrix.connector.metadata.internal.IObjectSource objectSource)
           
 
Method Summary
 java.util.Collection getObjects(java.lang.String groupName, java.util.Map criteria)
          Return a collection that is results given the groupName(indexName) and search criteria.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiObjectSource

public MultiObjectSource(com.metamatrix.connector.metadata.internal.IObjectSource primaryObjectSource,
                         java.lang.String secondaryGroupNameSuffix,
                         com.metamatrix.connector.metadata.internal.IObjectSource objectSource)
Method Detail

getObjects

public java.util.Collection getObjects(java.lang.String groupName,
                                       java.util.Map criteria)
Description copied from interface: com.metamatrix.connector.metadata.internal.IObjectSource
Return a collection that is results given the groupName(indexName) and search criteria.

Specified by:
getObjects in interface com.metamatrix.connector.metadata.internal.IObjectSource
Parameters:
groupName - The name of table/index to search.
criteria - The map of metadata field name to MetadataSearchCriteria
Returns:
The collection that is the MetadataRecord objects


Copyright © 2009. All Rights Reserved.