Package org.teiid.metadata
Class Database
- java.lang.Object
-
- org.teiid.metadata.AbstractMetadataRecord
-
- org.teiid.metadata.Database
-
- All Implemented Interfaces:
Serializable
public class Database extends AbstractMetadataRecord
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Database.ResourceType
-
Nested classes/interfaces inherited from class org.teiid.metadata.AbstractMetadataRecord
AbstractMetadataRecord.DataModifiable, AbstractMetadataRecord.Modifiable
-
-
Field Summary
Fields Modifier and Type Field Description protected NavigableMap<String,Server>
servers
protected MetadataStore
store
protected NavigableMap<String,DataWrapper>
wrappers
-
Fields inherited from class org.teiid.metadata.AbstractMetadataRecord
NAME_DELIM_CHAR, RELATIONAL_PREFIX
-
-
Method Summary
-
Methods inherited from class org.teiid.metadata.AbstractMetadataRecord
getAnnotation, getCanonicalName, getFullName, getIdentifier, getIncomingObjects, getName, getNameInSource, getParent, getProperties, getProperty, getProperty, getSourceName, getSQLString, getSQLString, getUUID, isUUIDSet, setAnnotation, setIncomingObjects, setName, setNameInSource, setProperties, setProperty, setUUID, toString
-
-
-
-
Field Detail
-
store
protected MetadataStore store
-
wrappers
protected NavigableMap<String,DataWrapper> wrappers
-
servers
protected NavigableMap<String,Server> servers
-
-
Method Detail
-
addSchema
public void addSchema(Schema schema)
-
getMetadataStore
public MetadataStore getMetadataStore()
-
getVersion
public String getVersion()
-
setVersion
public void setVersion(String version)
-
addDataWrapper
public void addDataWrapper(DataWrapper wrapper)
-
removeDataWrapper
public DataWrapper removeDataWrapper(String wrapperName)
-
getDataWrapper
public DataWrapper getDataWrapper(String wrapperName)
-
getDataWrappers
public List<DataWrapper> getDataWrappers()
-
addServer
public void addServer(Server server)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractMetadataRecord
-
equals
public boolean equals(Object obj)
Description copied from class:AbstractMetadataRecord
Compare two records for equality.- Overrides:
equals
in classAbstractMetadataRecord
-
getRoles
public Collection<Role> getRoles()
-
addRole
public void addRole(Role role)
-
removeRole
public void removeRole(String roleName)
-
addGrant
public void addGrant(Grant grant)
-
revokeGrant
public void revokeGrant(Grant grant)
-
addDomain
public Datatype addDomain(String name, String baseType, Integer precision, Integer scale, boolean notNull)
Add a domain with the given attributes. The UID must still be set.- Parameters:
name
-baseType
-precision
-scale
-notNull
-- Returns:
-
getNamespaceContainer
public NamespaceContainer getNamespaceContainer()
-
-