|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.teiid.query.metadata.BasicQueryMetadata
org.teiid.query.metadata.TransformationMetadata
public class TransformationMetadata
Teiid's implementation of the QueryMetadataInterface that reads columns, groups, models etc. from the metadata object model.
Nested Class Summary | |
---|---|
static class |
TransformationMetadata.Resource
|
Field Summary | |
---|---|
static char |
DELIMITER_CHAR
Delimiter character used when specifying fully qualified entity names |
static String |
DELIMITER_STRING
|
static String |
NOT_EXISTS_MESSAGE
|
Fields inherited from interface org.teiid.query.metadata.QueryMetadataInterface |
---|
UNKNOWN_CARDINALITY |
Constructor Summary | |
---|---|
TransformationMetadata(VDBMetaData vdbMetadata,
CompositeMetadataStore store,
Map<String,TransformationMetadata.Resource> vdbEntries,
FunctionTree systemFunctions,
Collection<FunctionTree> functionTrees)
TransformationMetadata constructor |
Method Summary | |
---|---|
Object |
addToMetadataCache(Object metadataID,
String key,
Object value)
|
boolean |
elementSupports(Object elementID,
int elementConstant)
Determine whether the specified element supports some feature. |
Collection |
getAccessPatternsInGroup(Object groupID)
Get the access patterns for the specified group |
byte[] |
getBinaryVDBResource(String resourcePath)
Gets the contents of a VDB resource in binary form. |
int |
getCardinality(Object groupID)
Return the cardinality for this group |
String |
getCharacterVDBResource(String resourcePath)
Gets the contents of a VDB resource as a String. |
Object |
getDefaultValue(Object elementID)
Get the element's default value for an element symbol |
String |
getDeletePlan(Object groupID)
Get procedure defining the delete plan for this group. |
QueryMetadataInterface |
getDesignTimeMetadata()
Get the metadata without visibility and session tables |
int |
getDistinctValues(Object elementID)
Get the number of distinct values for this column. |
Column |
getElementID(String elementName)
Get the metadata-implementation identifier object for the given element name. |
List |
getElementIDsInAccessPattern(Object accessPattern)
Get the elements in the access pattern |
List<Column> |
getElementIDsInGroupID(Object groupID)
Get list of metadata element IDs for a group ID |
List |
getElementIDsInIndex(Object index)
Get the elements in the index |
List |
getElementIDsInKey(Object key)
Get the elements in the key |
int |
getElementLength(Object elementID)
Get the element length for a given element ID. |
String |
getElementType(Object elementID)
Get the element type name for an element symbol. |
Properties |
getExtensionProperties(Object metadataID)
Get all extension properties defined on this metadata object |
Collection |
getForeignKeysInGroup(Object groupID)
Get the foreign keys for the specified group |
String |
getFormat(Object elementID)
Get the element's format |
Object |
getFromMetadataCache(Object metadataID,
String key)
|
String |
getFullName(Object metadataID)
Get the fully qualified (unique) name of the metadata identifier specified. |
FunctionLibrary |
getFunctionLibrary()
|
Table |
getGroupID(String groupName)
Get the metadata-implementation identifier object for the given group name. |
Object |
getGroupIDForElementID(Object elementID)
Get containg group ID given element ID |
Collection<String> |
getGroupsForPartialName(String partialGroupName)
Get a collection of group names that match the partially qualified group name. |
Collection |
getIndexesInGroup(Object groupID)
Get the indexes for the specified group |
String |
getInsertPlan(Object groupID)
Get procedure defining the insert plan for this group. |
MappingNode |
getMappingNode(Object groupID)
Get the mapping node for the given groupID |
Object |
getMaterialization(Object groupID)
Accquire the physical group ID (the Materialization) for the given virtual group ID, or null if the given virtual group has no Materialization. |
Object |
getMaterializationStage(Object groupID)
Accquire the physical group ID that is used for the staging area for loading (the Materialization) for the given virtual group ID, or null
if the given virtual group has no Materialization. |
Object |
getMaximumValue(Object elementID)
Get the element's default value for an element symbol |
int |
getMaxSetSize(Object modelID)
Get the max set size for the specified model. |
CompositeMetadataStore |
getMetadataStore()
|
Object |
getMinimumValue(Object elementID)
Get the element's minimum value for an element symbol |
String |
getModeledBaseType(Object elementID)
Get the design-time model base type of the element specified. |
String |
getModeledPrimitiveType(Object elementID)
Get the design-time model primitive type of the element specified. |
String |
getModeledType(Object elementID)
Get the design-time model type of the element specified. |
Object |
getModelID(Object groupOrElementID)
Get the metadata-implementation identifier object for the model containing the specified group or element ID. |
String |
getName(Object metadataID)
Get the name of the metadata identifier specified. |
String |
getNameInSource(Object metadataID)
Get the name in source of the metadata identifier specified. |
String |
getNativeType(Object elementID)
Get the native type of the element specified. |
int |
getNullValues(Object elementID)
Get the number of distinct values for this column. |
int |
getPosition(Object elementID)
Get the element's position in the group |
int |
getPrecision(Object elementID)
Get the element's precision |
Object |
getPrimaryKey(Object metadataID)
|
Object |
getPrimaryKeyIDForForeignKeyID(Object foreignKeyID)
Get the corresponding primary key ID for the specified foreign key ID |
int |
getRadix(Object elementID)
Get the element's radix |
int |
getScale(Object elementID)
Get the element's scale |
StoredProcedureInfo |
getStoredProcedureInfoForProcedure(String name)
Get the the StoredProcedureInfo based on the fully qualified procedure name |
Collection |
getUniqueKeysInGroup(Object groupID)
Get the unique keys for the specified group (primary and unique keys) |
String |
getUpdatePlan(Object groupID)
Get procedure defining the update plan for this group. |
VDBMetaData |
getVdbMetaData()
|
BlobImpl |
getVDBResourceAsBlob(String resourcePath)
|
ClobImpl |
getVDBResourceAsClob(String resourcePath)
|
SQLXMLImpl |
getVDBResourceAsSQLXML(String resourcePath)
|
String[] |
getVDBResourcePaths()
Gets the resource paths of all the resources in the VDB. |
String |
getVirtualDatabaseName()
Get the currently connected virtual database name. |
int |
getVirtualDatabaseVersion()
|
QueryNode |
getVirtualPlan(Object groupID)
Get virtual plan for a group symbol. |
List<SQLXMLImpl> |
getXMLSchemas(Object groupID)
Get XML schemas for a document group. |
Collection<Table> |
getXMLTempGroups(Object groupID)
Return a list of all the temp groups used in this document. |
boolean |
groupSupports(Object groupID,
int groupConstant)
Determine whether the specified group supports some feature. |
boolean |
hasMaterialization(Object groupID)
Determine whether given virtual group has an associated Materialization. |
boolean |
hasProcedure(String name)
Return true if a procedure exists with the given name (partial or fqn) |
boolean |
isProcedure(Object groupID)
Determine whether this is a procedure |
boolean |
isVirtualGroup(Object groupID)
Determine whether a group is virtual or not. |
boolean |
isVirtualModel(Object modelID)
Determine whether a model is virtual or not. |
boolean |
isXMLGroup(Object groupID)
Determine whether a group is an XML virtual document. |
boolean |
modelSupports(Object modelID,
int modelConstant)
Determine whether the specified model supports some feature. |
Methods inherited from class org.teiid.query.metadata.BasicQueryMetadata |
---|
getSessionMetadata, isMultiSource, isMultiSourceElement, isScalarGroup, isTemporaryTable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char DELIMITER_CHAR
public static final String DELIMITER_STRING
public static String NOT_EXISTS_MESSAGE
Constructor Detail |
---|
public TransformationMetadata(VDBMetaData vdbMetadata, CompositeMetadataStore store, Map<String,TransformationMetadata.Resource> vdbEntries, FunctionTree systemFunctions, Collection<FunctionTree> functionTrees)
context
- Object containing the info needed to lookup metadta.Method Detail |
---|
public Column getElementID(String elementName) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getElementID
in interface QueryMetadataInterface
getElementID
in class BasicQueryMetadata
elementName
- Fully qualified element name
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getElementID(String)
public Table getGroupID(String groupName) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getGroupID
in interface QueryMetadataInterface
getGroupID
in class BasicQueryMetadata
groupName
- Fully qualified group name
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getGroupID(String)
public Collection<String> getGroupsForPartialName(String partialGroupName) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getGroupsForPartialName
in interface QueryMetadataInterface
getGroupsForPartialName
in class BasicQueryMetadata
partialGroupName
- Partially qualified group name
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getGroupID(String)
public Object getModelID(Object groupOrElementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getModelID
in interface QueryMetadataInterface
getModelID
in class BasicQueryMetadata
groupOrElementID
- Metadata group or element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getModelID(Object)
public String getFullName(Object metadataID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getFullName
in interface QueryMetadataInterface
getFullName
in class BasicQueryMetadata
metadataID
- Metadata identifier
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getFullName(Object)
public String getName(Object metadataID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getName
in interface QueryMetadataInterface
getName
in class BasicQueryMetadata
metadataID
- Metadata identifier
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestpublic List<Column> getElementIDsInGroupID(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getElementIDsInGroupID
in interface QueryMetadataInterface
getElementIDsInGroupID
in class BasicQueryMetadata
groupID
- Group ID
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getElementIDsInGroupID(Object)
public Object getGroupIDForElementID(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getGroupIDForElementID
in interface QueryMetadataInterface
getGroupIDForElementID
in class BasicQueryMetadata
elementID
- Element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getGroupIDForElementID(Object)
public boolean hasProcedure(String name) throws TeiidComponentException
QueryMetadataInterface
hasProcedure
in interface QueryMetadataInterface
hasProcedure
in class BasicQueryMetadata
TeiidComponentException
public StoredProcedureInfo getStoredProcedureInfoForProcedure(String name) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getStoredProcedureInfoForProcedure
in interface QueryMetadataInterface
getStoredProcedureInfoForProcedure
in class BasicQueryMetadata
name
- the fully qualified stored procedure name
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getStoredProcedureInfoForProcedure(String)
public String getElementType(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
DataTypeManager.DefaultDataTypes
.
getElementType
in interface QueryMetadataInterface
getElementType
in class BasicQueryMetadata
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface#getElementType(ElementSymbol)
public Object getDefaultValue(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getDefaultValue
in interface QueryMetadataInterface
getDefaultValue
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestpublic Object getMinimumValue(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getMinimumValue
in interface QueryMetadataInterface
getMinimumValue
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestpublic Object getMaximumValue(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getMaximumValue
in interface QueryMetadataInterface
getMaximumValue
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestpublic boolean isVirtualGroup(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
isVirtualGroup
in interface QueryMetadataInterface
isVirtualGroup
in class BasicQueryMetadata
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.isVirtualGroup(Object)
public boolean isProcedure(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
isProcedure
in interface QueryMetadataInterface
isProcedure
in class BasicQueryMetadata
groupID
- Group identifier
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestorg.teiid.query.metadata.QueryMetadataInterface#isProcedureInputElement(java.lang.Object)
public boolean isVirtualModel(Object modelID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
isVirtualModel
in interface QueryMetadataInterface
isVirtualModel
in class BasicQueryMetadata
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.isVirtualModel(Object)
public QueryNode getVirtualPlan(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getVirtualPlan
in interface QueryMetadataInterface
getVirtualPlan
in class BasicQueryMetadata
TeiidComponentException
QueryMetadataException
QueryMetadataInterface#getVirtualPlan(GroupSymbol)
public String getInsertPlan(Object groupID) throws TeiidComponentException, QueryMetadataException
BasicQueryMetadata
getInsertPlan
in interface QueryMetadataInterface
getInsertPlan
in class BasicQueryMetadata
TeiidComponentException
QueryMetadataException
public String getUpdatePlan(Object groupID) throws TeiidComponentException, QueryMetadataException
BasicQueryMetadata
getUpdatePlan
in interface QueryMetadataInterface
getUpdatePlan
in class BasicQueryMetadata
TeiidComponentException
QueryMetadataException
public String getDeletePlan(Object groupID) throws TeiidComponentException, QueryMetadataException
BasicQueryMetadata
getDeletePlan
in interface QueryMetadataInterface
getDeletePlan
in class BasicQueryMetadata
TeiidComponentException
QueryMetadataException
public boolean modelSupports(Object modelID, int modelConstant) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
modelSupports
in interface QueryMetadataInterface
modelSupports
in class BasicQueryMetadata
modelID
- Metadata identifier specifying the modelmodelConstant
- Constant from SupportConstants.Model
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.modelSupports(Object, int)
public boolean groupSupports(Object groupID, int groupConstant) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
groupSupports
in interface QueryMetadataInterface
groupSupports
in class BasicQueryMetadata
groupID
- Group metadata IDgroupConstant
- Constant from SupportConstants.Group
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.groupSupports(Object, int)
public boolean elementSupports(Object elementID, int elementConstant) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
elementSupports
in interface QueryMetadataInterface
elementSupports
in class BasicQueryMetadata
elementID
- Element metadata IDelementConstant
- Constant from SupportConstants.Element
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.elementSupports(Object, int)
public int getMaxSetSize(Object modelID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getMaxSetSize
in interface QueryMetadataInterface
getMaxSetSize
in class BasicQueryMetadata
modelID
- Metadata identifier specifying model
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getMaxSetSize(Object)
public Collection getIndexesInGroup(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getIndexesInGroup
in interface QueryMetadataInterface
getIndexesInGroup
in class BasicQueryMetadata
groupID
- Metadata identifier specifying group
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getIndexesInGroup(java.lang.Object)
public Collection getUniqueKeysInGroup(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getUniqueKeysInGroup
in interface QueryMetadataInterface
getUniqueKeysInGroup
in class BasicQueryMetadata
groupID
- Metadata identifier specifying group
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getUniqueKeysInGroup(Object)
public Collection getForeignKeysInGroup(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getForeignKeysInGroup
in interface QueryMetadataInterface
getForeignKeysInGroup
in class BasicQueryMetadata
groupID
- Metadata identifier specifying group
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getForeignKeysInGroup(Object)
public Object getPrimaryKeyIDForForeignKeyID(Object foreignKeyID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getPrimaryKeyIDForForeignKeyID
in interface QueryMetadataInterface
getPrimaryKeyIDForForeignKeyID
in class BasicQueryMetadata
foreignKeyID
- Metadata identifier of a foreign key
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getPrimaryKeyIDForForeignKeyID(Object)
public Collection getAccessPatternsInGroup(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getAccessPatternsInGroup
in interface QueryMetadataInterface
getAccessPatternsInGroup
in class BasicQueryMetadata
groupID
- Metadata identifier specifying group
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getAccessPatternsInGroup(Object)
public List getElementIDsInIndex(Object index) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getElementIDsInIndex
in interface QueryMetadataInterface
getElementIDsInIndex
in class BasicQueryMetadata
index
- Index identifier, as returned by QueryMetadataInterface.getIndexesInGroup(java.lang.Object)
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getElementIDsInIndex(java.lang.Object)
public List getElementIDsInKey(Object key) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getElementIDsInKey
in interface QueryMetadataInterface
getElementIDsInKey
in class BasicQueryMetadata
key
- Key identifier, as returned by QueryMetadataInterface.getUniqueKeysInGroup(java.lang.Object)
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getElementIDsInKey(Object)
public List getElementIDsInAccessPattern(Object accessPattern) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getElementIDsInAccessPattern
in interface QueryMetadataInterface
getElementIDsInAccessPattern
in class BasicQueryMetadata
accessPattern
- access pattern identifier, as returned by QueryMetadataInterface.getAccessPatternsInGroup(java.lang.Object)
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getElementIDsInAccessPattern(Object)
public boolean isXMLGroup(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
isXMLGroup
in interface QueryMetadataInterface
isXMLGroup
in class BasicQueryMetadata
groupID
- Group to check
TeiidComponentException
QueryMetadataException
QueryMetadataInterface.isXMLGroup(Object)
public boolean hasMaterialization(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
hasMaterialization
in interface QueryMetadataInterface
hasMaterialization
in class BasicQueryMetadata
groupID
- the groupID of the virtual group in question.
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.hasMaterialization(java.lang.Object)
public Object getMaterialization(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
null
if the given virtual group has no Materialization.
getMaterialization
in interface QueryMetadataInterface
getMaterialization
in class BasicQueryMetadata
groupID
- the groupID of a virtual group that has a Materialization.
TeiidComponentException
- Unexpected internal system problem during request
QueryMetadataException
- Metadata implementation detected a problem during the requestQueryMetadataInterface.getMaterialization(java.lang.Object)
public Object getMaterializationStage(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
null
if the given virtual group has no Materialization.
getMaterializationStage
in interface QueryMetadataInterface
getMaterializationStage
in class BasicQueryMetadata
groupID
- the groupID of a virtual group that has a Materialization.
TeiidComponentException
- Unexpected internal system problem during request
QueryMetadataException
- Metadata implementation detected a problem during the requestQueryMetadataInterface.getMaterializationStage(java.lang.Object)
public MappingNode getMappingNode(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getMappingNode
in interface QueryMetadataInterface
getMappingNode
in class BasicQueryMetadata
groupID
- Metadata group ID
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface#getMappingNode(GroupSymbol)
public String getVirtualDatabaseName() throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getVirtualDatabaseName
in interface QueryMetadataInterface
getVirtualDatabaseName
in class BasicQueryMetadata
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getVirtualDatabaseName()
public int getVirtualDatabaseVersion()
public VDBMetaData getVdbMetaData()
public Collection<Table> getXMLTempGroups(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getXMLTempGroups
in interface QueryMetadataInterface
getXMLTempGroups
in class BasicQueryMetadata
groupID
- XML virtual document groupID
TeiidComponentException
QueryMetadataException
QueryMetadataInterface.getXMLTempGroups(java.lang.Object)
public int getCardinality(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getCardinality
in interface QueryMetadataInterface
getCardinality
in class BasicQueryMetadata
groupID
- Metadata identifier specifying group
TeiidComponentException
QueryMetadataException
public List<SQLXMLImpl> getXMLSchemas(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getXMLSchemas
in interface QueryMetadataInterface
getXMLSchemas
in class BasicQueryMetadata
groupID
- Document group ID
TeiidComponentException
QueryMetadataException
public String getNameInSource(Object metadataID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getNameInSource
in interface QueryMetadataInterface
getNameInSource
in class BasicQueryMetadata
metadataID
- Metadata identifier
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestpublic int getElementLength(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
DataTypeManager.DefaultDataTypes
.
getElementLength
in interface QueryMetadataInterface
getElementLength
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestpublic int getPosition(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getPosition
in interface QueryMetadataInterface
getPosition
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestpublic int getPrecision(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getPrecision
in interface QueryMetadataInterface
getPrecision
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestpublic int getRadix(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getRadix
in interface QueryMetadataInterface
getRadix
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestpublic String getFormat(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getFormat
in interface QueryMetadataInterface
getFormat
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestpublic int getScale(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getScale
in interface QueryMetadataInterface
getScale
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestpublic int getDistinctValues(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getDistinctValues
in interface QueryMetadataInterface
getDistinctValues
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getDistinctValues(java.lang.Object)
public int getNullValues(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getNullValues
in interface QueryMetadataInterface
getNullValues
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getNullValues(java.lang.Object)
public String getNativeType(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getNativeType
in interface QueryMetadataInterface
getNativeType
in class BasicQueryMetadata
elementID
- Element identifier
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestpublic Properties getExtensionProperties(Object metadataID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getExtensionProperties
in interface QueryMetadataInterface
getExtensionProperties
in class BasicQueryMetadata
metadataID
- Typically element, group, model, or procedure
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestpublic byte[] getBinaryVDBResource(String resourcePath) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getBinaryVDBResource
in interface QueryMetadataInterface
getBinaryVDBResource
in class BasicQueryMetadata
resourcePath
- a path returned by getVDBResourcePaths()
TeiidComponentException
- Unexpected internal system problem during request
QueryMetadataException
- Metadata implementation detected a problem during the requestBasicQueryMetadata.getBinaryVDBResource(java.lang.String)
public ClobImpl getVDBResourceAsClob(String resourcePath)
public SQLXMLImpl getVDBResourceAsSQLXML(String resourcePath)
public BlobImpl getVDBResourceAsBlob(String resourcePath)
public String getCharacterVDBResource(String resourcePath) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getCharacterVDBResource
in interface QueryMetadataInterface
getCharacterVDBResource
in class BasicQueryMetadata
resourcePath
- a path returned by getVDBResourcePaths()
TeiidComponentException
- Unexpected internal system problem during request
QueryMetadataException
- Metadata implementation detected a problem during the requestBasicQueryMetadata.getCharacterVDBResource(java.lang.String)
public CompositeMetadataStore getMetadataStore()
public String[] getVDBResourcePaths() throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getVDBResourcePaths
in interface QueryMetadataInterface
getVDBResourcePaths
in class BasicQueryMetadata
TeiidComponentException
- Unexpected internal system problem during request
QueryMetadataException
- Metadata implementation detected a problem during the requestBasicQueryMetadata.getVDBResourcePaths()
public String getModeledType(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getModeledType
in interface QueryMetadataInterface
getModeledType
in class BasicQueryMetadata
elementID
- Element identifier
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getModeledType(java.lang.Object)
public String getModeledBaseType(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getModeledBaseType
in interface QueryMetadataInterface
getModeledBaseType
in class BasicQueryMetadata
elementID
- Element identifier
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getModeledBaseType(java.lang.Object)
public String getModeledPrimitiveType(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getModeledPrimitiveType
in interface QueryMetadataInterface
getModeledPrimitiveType
in class BasicQueryMetadata
elementID
- Element identifier
QueryMetadataException
- Metadata implementation detected a problem during the request
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getModeledPrimitiveType(java.lang.Object)
public Object addToMetadataCache(Object metadataID, String key, Object value)
addToMetadataCache
in interface QueryMetadataInterface
addToMetadataCache
in class BasicQueryMetadata
public Object getFromMetadataCache(Object metadataID, String key) throws TeiidComponentException, QueryMetadataException
getFromMetadataCache
in interface QueryMetadataInterface
getFromMetadataCache
in class BasicQueryMetadata
TeiidComponentException
QueryMetadataException
public FunctionLibrary getFunctionLibrary()
getFunctionLibrary
in interface QueryMetadataInterface
getFunctionLibrary
in class BasicQueryMetadata
public Object getPrimaryKey(Object metadataID)
getPrimaryKey
in interface QueryMetadataInterface
getPrimaryKey
in class BasicQueryMetadata
public QueryMetadataInterface getDesignTimeMetadata()
QueryMetadataInterface
getDesignTimeMetadata
in interface QueryMetadataInterface
getDesignTimeMetadata
in class BasicQueryMetadata
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |