Package org.teiid.query.metadata
Class CompositeMetadataStore
- java.lang.Object
-
- org.teiid.metadata.MetadataStore
-
- org.teiid.query.metadata.CompositeMetadataStore
-
- All Implemented Interfaces:
Serializable
public class CompositeMetadataStore extends MetadataStore
Aggregates the metadata from multiple stores.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CompositeMetadataStore.RecordHolder
-
Field Summary
-
Fields inherited from class org.teiid.metadata.MetadataStore
datatypes, roles, schemaList, schemas, unmondifiableDatatypes
-
-
Constructor Summary
Constructors Constructor Description CompositeMetadataStore(List<MetadataStore> metadataStores)
CompositeMetadataStore(MetadataStore metadataStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Table
findGroup(String fullName)
Collection<Table>
getGroupsForPartialName(String partialGroupName)
TODO: this resolving mode allows partial matches of a full group name containing .int
getMaxOid()
Integer
getOid(String record)
TreeMap<String,CompositeMetadataStore.RecordHolder>
getOids()
Collection<Procedure>
getStoredProcedure(String name)
protected boolean
matchesPartialName(String partialGroupName, String name, Schema schema)
-
Methods inherited from class org.teiid.metadata.MetadataStore
addDatatype, addDataTypes, addSchema, getDatatypes, getDatatypesExcludingAliases, getRoles, getSchema, getSchemaList, getSchemas, merge, mergeRoles, removeSchema
-
-
-
-
Constructor Detail
-
CompositeMetadataStore
public CompositeMetadataStore(MetadataStore metadataStore)
-
CompositeMetadataStore
public CompositeMetadataStore(List<MetadataStore> metadataStores)
-
-
Method Detail
-
findGroup
public Table findGroup(String fullName) throws QueryMetadataException
- Throws:
QueryMetadataException
-
getGroupsForPartialName
public Collection<Table> getGroupsForPartialName(String partialGroupName)
TODO: this resolving mode allows partial matches of a full group name containing .- Parameters:
partialGroupName
-- Returns:
-
matchesPartialName
protected boolean matchesPartialName(String partialGroupName, String name, Schema schema)
-
getStoredProcedure
public Collection<Procedure> getStoredProcedure(String name)
-
getOids
public TreeMap<String,CompositeMetadataStore.RecordHolder> getOids()
-
getMaxOid
public int getMaxOid()
-
-