Package org.teiid.metadata
Class MetadataStore
- java.lang.Object
-
- org.teiid.metadata.MetadataStore
-
- All Implemented Interfaces:
Serializable
public class MetadataStore extends Object implements Serializable
Simple holder for metadata.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected NavigableMap<String,Datatype>datatypesprotected LinkedHashMap<String,Role>rolesprotected List<Schema>schemaListprotected NavigableMap<String,Schema>schemasprotected NavigableMap<String,Datatype>unmondifiableDatatypes
-
Constructor Summary
Constructors Constructor Description MetadataStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDatatype(String name, Datatype datatype)voidaddDataTypes(Map<String,Datatype> typeMap)voidaddSchema(Schema schema)NavigableMap<String,Datatype>getDatatypes()NavigableMap<String,Datatype>getDatatypesExcludingAliases()Get the type information excluding aliases and case sensitive by nameCollection<Role>getRoles()SchemagetSchema(String name)List<Schema>getSchemaList()NavigableMap<String,Schema>getSchemas()voidmerge(MetadataStore store)voidmergeRoles(Collection<Role> toMerge)SchemaremoveSchema(String schemaName)
-
-
-
Field Detail
-
schemas
protected NavigableMap<String,Schema> schemas
-
datatypes
protected NavigableMap<String,Datatype> datatypes
-
unmondifiableDatatypes
protected NavigableMap<String,Datatype> unmondifiableDatatypes
-
roles
protected LinkedHashMap<String,Role> roles
-
-
Method Detail
-
getSchemas
public NavigableMap<String,Schema> getSchemas()
-
addSchema
public void addSchema(Schema schema)
-
getDatatypes
public NavigableMap<String,Datatype> getDatatypes()
-
getDatatypesExcludingAliases
public NavigableMap<String,Datatype> getDatatypesExcludingAliases()
Get the type information excluding aliases and case sensitive by name- Returns:
-
merge
public void merge(MetadataStore store)
-
mergeRoles
public void mergeRoles(Collection<Role> toMerge)
-
getRoles
public Collection<Role> getRoles()
-
-