org.teiid.metadata.index
Class IndexMetadataStore

java.lang.Object
  extended by org.teiid.metadata.index.IndexMetadataStore
All Implemented Interfaces:
MetadataStore

public class IndexMetadataStore
extends java.lang.Object
implements MetadataStore

Loads MetadataRecords from index files. Only datatypes are directly cached.


Constructor Summary
IndexMetadataStore(MetadataSource source)
           
 
Method Summary
 ColumnRecordImpl findElement(java.lang.String fullName)
           
 TableRecordImpl findGroup(java.lang.String groupName)
           
 java.util.Collection findMetadataRecords(char recordType, java.lang.String entityName, boolean isPartialName)
           
 java.util.Collection<AbstractMetadataRecord> findMetadataRecords(java.lang.String indexName, java.lang.String pattern, boolean isPrefix, boolean isCaseSensitive)
          Search method used by the index connector
 java.util.Collection<DatatypeRecordImpl> getDatatypes()
           
 java.util.Collection<PropertyRecordImpl> getExtensionProperties(AbstractMetadataRecord metadataRecord)
           
 java.util.Collection<java.lang.String> getGroupsForPartialName(java.lang.String partialGroupName)
          Returns the fully qualified names of groups matching the given partial name.
 org.teiid.internal.core.index.Index[] getIndexes()
           
 ModelRecordImpl getModel(java.lang.String name)
           
 java.util.Collection<java.lang.String> getModelNames()
          Get the set of model names known to this store.
 ProcedureRecordImpl getStoredProcedure(java.lang.String fullyQualifiedProcedureName)
           
 java.util.Collection getXMLTempGroups(TableRecordImpl table)
           
 boolean postProcessFindMetadataRecords()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexMetadataStore

public IndexMetadataStore(MetadataSource source)
                   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

postProcessFindMetadataRecords

public boolean postProcessFindMetadataRecords()
Specified by:
postProcessFindMetadataRecords in interface MetadataStore

getModelNames

public java.util.Collection<java.lang.String> getModelNames()
Description copied from interface: MetadataStore
Get the set of model names known to this store.

Specified by:
getModelNames in interface MetadataStore

getModel

public ModelRecordImpl getModel(java.lang.String name)
                         throws QueryMetadataException,
                                MetaMatrixComponentException
Specified by:
getModel in interface MetadataStore
Throws:
QueryMetadataException
MetaMatrixComponentException

findGroup

public TableRecordImpl findGroup(java.lang.String groupName)
                          throws QueryMetadataException,
                                 MetaMatrixComponentException
Specified by:
findGroup in interface MetadataStore
Throws:
QueryMetadataException
MetaMatrixComponentException

getDatatypes

public java.util.Collection<DatatypeRecordImpl> getDatatypes()
                                                      throws MetaMatrixComponentException
Throws:
MetaMatrixComponentException

findElement

public ColumnRecordImpl findElement(java.lang.String fullName)
                             throws QueryMetadataException,
                                    MetaMatrixComponentException
Specified by:
findElement in interface MetadataStore
Returns:
Throws:
QueryMetadataException
MetaMatrixComponentException

getGroupsForPartialName

public java.util.Collection<java.lang.String> getGroupsForPartialName(java.lang.String partialGroupName)
                                                               throws MetaMatrixComponentException,
                                                                      QueryMetadataException
Description copied from interface: MetadataStore
Returns the fully qualified names of groups matching the given partial name.

Specified by:
getGroupsForPartialName in interface MetadataStore
Parameters:
partialGroupName - expected to be in lowercase
Returns:
Throws:
MetaMatrixComponentException
QueryMetadataException

getStoredProcedure

public ProcedureRecordImpl getStoredProcedure(java.lang.String fullyQualifiedProcedureName)
                                       throws MetaMatrixComponentException,
                                              QueryMetadataException
Specified by:
getStoredProcedure in interface MetadataStore
Throws:
MetaMatrixComponentException
QueryMetadataException

getXMLTempGroups

public java.util.Collection getXMLTempGroups(TableRecordImpl table)
                                      throws MetaMatrixComponentException
Specified by:
getXMLTempGroups in interface MetadataStore
Returns:
Throws:
MetaMatrixComponentException

findMetadataRecords

public java.util.Collection findMetadataRecords(char recordType,
                                                java.lang.String entityName,
                                                boolean isPartialName)
                                         throws MetaMatrixComponentException
Specified by:
findMetadataRecords in interface MetadataStore
Returns:
Throws:
MetaMatrixComponentException

findMetadataRecords

public java.util.Collection<AbstractMetadataRecord> findMetadataRecords(java.lang.String indexName,
                                                                        java.lang.String pattern,
                                                                        boolean isPrefix,
                                                                        boolean isCaseSensitive)
                                                                 throws MetaMatrixCoreException
Description copied from interface: MetadataStore
Search method used by the index connector

Specified by:
findMetadataRecords in interface MetadataStore
Returns:
Throws:
MetaMatrixCoreException

getExtensionProperties

public java.util.Collection<PropertyRecordImpl> getExtensionProperties(AbstractMetadataRecord metadataRecord)
                                                                throws MetaMatrixComponentException
Specified by:
getExtensionProperties in interface MetadataStore
Throws:
MetaMatrixComponentException

getIndexes

public org.teiid.internal.core.index.Index[] getIndexes()
Since:
4.2
See Also:
com.metamatrix.modeler.core.index.IndexSelector#getIndexes()


Copyright © 2009. All Rights Reserved.