public class BasicQueryMetadata extends Object implements QueryMetadataInterface
UNKNOWN_CARDINALITY
Constructor and Description |
---|
BasicQueryMetadata()
Constructor for AbstractQueryMetadata.
|
Modifier and Type | Method and Description |
---|---|
Object |
addToMetadataCache(Object metadataID,
String key,
Object value) |
boolean |
elementSupports(Object elementID,
int elementConstant)
Determine whether the specified element supports some feature.
|
boolean |
findShortName() |
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.
|
float |
getCardinality(Object groupID)
Return the cardinality for this group
|
String |
getCharacterVDBResource(String resourcePath)
Gets the contents of a VDB resource as a String.
|
Class<?> |
getDataTypeClass(String typeName)
Get the runtime type class for the given type name, which may include domains
|
String |
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
|
float |
getDistinctValues(Object elementID)
Get the number of distinct values for this column.
|
Object |
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 |
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 |
getElementRuntimeTypeName(Object elementID)
Get the element type name for an element symbol.
|
Properties |
getExtensionProperties(Object metadataID)
Get all extension properties defined on this metadata object
|
String |
getExtensionProperty(Object metadataID,
String key,
boolean checkUnqualified) |
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.
|
Map<Expression,Integer> |
getFunctionBasedExpressions(Object metadataID) |
FunctionLibrary |
getFunctionLibrary() |
Object |
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 |
getGroupsForPartialName(String partialGroupName)
Get a collection of group names that match the partially qualified group name.
|
Set<String> |
getImportedModels() |
Collection |
getIndexesInGroup(Object groupID)
Get the indexes for the specified group
|
String |
getInsertPlan(Object groupID)
Get procedure defining the insert plan for this group.
|
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.
|
Object |
getMinimumValue(Object elementID)
Get the element's minimum value for an element symbol
|
String |
getModeledBaseType(Object elementID) |
String |
getModeledPrimitiveType(Object elementID) |
String |
getModeledType(Object elementID) |
Object |
getModelID(Object groupOrElementID)
Get the metadata-implementation identifier object for the model containing the
specified group or element ID.
|
Object |
getModelID(String modelName) |
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.
|
float |
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
|
ScriptEngine |
getScriptEngine(String language) |
ScriptEngine |
getScriptEngineDirect(String language) |
QueryMetadataInterface |
getSessionMetadata() |
StoredProcedureInfo |
getStoredProcedureInfoForProcedure(String fullyQualifiedProcedureName)
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)
The primary key if present will be first in the collection
|
String |
getUpdatePlan(Object groupID)
Get procedure defining the update plan for this group.
|
String[] |
getVDBResourcePaths()
Gets the resource paths of all the resources in the VDB.
|
String |
getVirtualDatabaseName()
Get the currently connected virtual database name.
|
QueryNode |
getVirtualPlan(Object groupID)
Get virtual plan for a group symbol.
|
List |
getXMLSchemas(Object groupID)
Get XML schemas for a document group.
|
Collection |
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 |
isEnvAllowed() |
boolean |
isMultiSource(Object modelId) |
boolean |
isMultiSourceElement(Object elementId) |
boolean |
isProcedure(Object elementID)
Determine whether this is a procedure
|
boolean |
isPseudo(Object elementId) |
boolean |
isScalarGroup(Object groupID) |
boolean |
isTemporaryTable(Object groupID)
Determine whether a group is a temporary table.
|
boolean |
isVariadic(Object metadataID) |
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.
|
boolean |
useOutputName() |
boolean |
widenComparisonToString() |
public BasicQueryMetadata()
public Object getElementID(String elementName) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getElementID
in interface QueryMetadataInterface
elementName
- Fully qualified element nameQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getElementID(String)
public Object getGroupID(String groupName) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getGroupID
in interface QueryMetadataInterface
groupName
- Fully qualified group nameQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getGroupID(String)
public Collection getGroupsForPartialName(String partialGroupName) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getGroupsForPartialName
in interface QueryMetadataInterface
partialGroupName
- Partially qualified group nameQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getGroupID(String)
public Object getModelID(Object groupOrElementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getModelID
in interface QueryMetadataInterface
groupOrElementID
- Metadata group or element IDQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getModelID(Object)
public String getFullName(Object metadataID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getFullName
in interface QueryMetadataInterface
metadataID
- Metadata identifierQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getFullName(Object)
public List getElementIDsInGroupID(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getElementIDsInGroupID
in interface QueryMetadataInterface
groupID
- Group IDQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getElementIDsInGroupID(Object)
public Object getGroupIDForElementID(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getGroupIDForElementID
in interface QueryMetadataInterface
elementID
- Element IDQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getGroupIDForElementID(Object)
public StoredProcedureInfo getStoredProcedureInfoForProcedure(String fullyQualifiedProcedureName) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getStoredProcedureInfoForProcedure
in interface QueryMetadataInterface
fullyQualifiedProcedureName
- the fully qualified stored procedure nameQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getStoredProcedureInfoForProcedure(String)
public String getElementRuntimeTypeName(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
DataTypeManager.DefaultDataTypes
.getElementRuntimeTypeName
in interface QueryMetadataInterface
QueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface#getElementRuntimeTypeName(ElementSymbol)
public String getDefaultValue(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getDefaultValue
in interface QueryMetadataInterface
elementID
- The element IDQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestpublic Object getMaximumValue(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getMaximumValue
in interface QueryMetadataInterface
elementID
- The element IDQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestpublic Object getMinimumValue(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getMinimumValue
in interface QueryMetadataInterface
elementID
- The element IDQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestpublic float getDistinctValues(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getDistinctValues
in interface QueryMetadataInterface
elementID
- The element IDQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getDistinctValues(java.lang.Object)
public float getNullValues(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getNullValues
in interface QueryMetadataInterface
elementID
- The element IDQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getNullValues(java.lang.Object)
public int getPosition(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getPosition
in interface QueryMetadataInterface
elementID
- The element IDQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestpublic int getPrecision(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getPrecision
in interface QueryMetadataInterface
elementID
- The element IDQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestpublic int getRadix(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getRadix
in interface QueryMetadataInterface
elementID
- The element IDQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestpublic String getFormat(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getFormat
in interface QueryMetadataInterface
elementID
- The element IDQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestpublic int getScale(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getScale
in interface QueryMetadataInterface
elementID
- The element IDQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestpublic boolean isVirtualGroup(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
isVirtualGroup
in interface QueryMetadataInterface
QueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.isVirtualGroup(Object)
public boolean hasMaterialization(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
hasMaterialization
in interface QueryMetadataInterface
groupID
- the groupID of the virtual group in question.QueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- 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
groupID
- the groupID of a virtual group that has a Materialization.TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataException
- 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
groupID
- the groupID of a virtual group that has a Materialization.TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataException
- Metadata implementation detected a problem during the requestQueryMetadataInterface.getMaterializationStage(java.lang.Object)
public boolean isVirtualModel(Object modelID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
isVirtualModel
in interface QueryMetadataInterface
QueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.isVirtualModel(Object)
public QueryNode getVirtualPlan(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getVirtualPlan
in interface QueryMetadataInterface
TeiidComponentException
QueryMetadataException
QueryMetadataInterface#getVirtualPlan(GroupSymbol)
public String getInsertPlan(Object groupID) throws TeiidComponentException, QueryMetadataException
getInsertPlan
in interface QueryMetadataInterface
symbol
- GroupTeiidComponentException
QueryMetadataException
public String getUpdatePlan(Object groupID) throws TeiidComponentException, QueryMetadataException
getUpdatePlan
in interface QueryMetadataInterface
symbol
- GroupTeiidComponentException
QueryMetadataException
public String getDeletePlan(Object groupID) throws TeiidComponentException, QueryMetadataException
getDeletePlan
in interface QueryMetadataInterface
symbol
- GroupTeiidComponentException
QueryMetadataException
public boolean modelSupports(Object modelID, int modelConstant) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
modelSupports
in interface QueryMetadataInterface
modelID
- Metadata identifier specifying the modelmodelConstant
- Constant from SupportConstants.Model
QueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.modelSupports(Object, int)
public boolean groupSupports(Object groupID, int groupConstant) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
groupSupports
in interface QueryMetadataInterface
groupID
- Group metadata IDgroupConstant
- Constant from SupportConstants.Group
QueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.groupSupports(Object, int)
public boolean elementSupports(Object elementID, int elementConstant) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
elementSupports
in interface QueryMetadataInterface
elementID
- Element metadata IDelementConstant
- Constant from SupportConstants.Element
QueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.elementSupports(Object, int)
public int getMaxSetSize(Object modelID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getMaxSetSize
in interface QueryMetadataInterface
modelID
- Metadata identifier specifying modelQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getMaxSetSize(Object)
public Collection getIndexesInGroup(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getIndexesInGroup
in interface QueryMetadataInterface
groupID
- Metadata identifier specifying groupQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getIndexesInGroup(java.lang.Object)
public Collection getUniqueKeysInGroup(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getUniqueKeysInGroup
in interface QueryMetadataInterface
groupID
- Metadata identifier specifying groupQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getUniqueKeysInGroup(Object)
public Collection getForeignKeysInGroup(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getForeignKeysInGroup
in interface QueryMetadataInterface
groupID
- Metadata identifier specifying groupQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getForeignKeysInGroup(Object)
public Object getPrimaryKeyIDForForeignKeyID(Object foreignKeyID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getPrimaryKeyIDForForeignKeyID
in interface QueryMetadataInterface
foreignKeyID
- Metadata identifier of a foreign keyQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getPrimaryKeyIDForForeignKeyID(Object)
public List getElementIDsInKey(Object key) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getElementIDsInKey
in interface QueryMetadataInterface
key
- Key identifier, as returned by QueryMetadataInterface.getUniqueKeysInGroup(java.lang.Object)
QueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getElementIDsInKey(Object)
public List getElementIDsInIndex(Object index) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getElementIDsInIndex
in interface QueryMetadataInterface
index
- Index identifier, as returned by QueryMetadataInterface.getIndexesInGroup(java.lang.Object)
QueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getElementIDsInIndex(java.lang.Object)
public Collection getAccessPatternsInGroup(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getAccessPatternsInGroup
in interface QueryMetadataInterface
groupID
- Metadata identifier specifying groupQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getAccessPatternsInGroup(Object)
public List getElementIDsInAccessPattern(Object accessPattern) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getElementIDsInAccessPattern
in interface QueryMetadataInterface
accessPattern
- access pattern identifier, as returned by QueryMetadataInterface.getAccessPatternsInGroup(java.lang.Object)
QueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getElementIDsInAccessPattern(Object)
public boolean isXMLGroup(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
isXMLGroup
in interface QueryMetadataInterface
groupID
- Group to checkTeiidComponentException
QueryMetadataException
QueryMetadataInterface.isXMLGroup(Object)
public String getVirtualDatabaseName() throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getVirtualDatabaseName
in interface QueryMetadataInterface
QueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getVirtualDatabaseName()
public Collection getXMLTempGroups(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getXMLTempGroups
in interface QueryMetadataInterface
groupID
- XML virtual document groupIDTeiidComponentException
QueryMetadataException
public float getCardinality(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getCardinality
in interface QueryMetadataInterface
groupID
- Metadata identifier specifying groupTeiidComponentException
QueryMetadataException
public List getXMLSchemas(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getXMLSchemas
in interface QueryMetadataInterface
groupID
- Document group IDTeiidComponentException
QueryMetadataException
public String getNameInSource(Object metadataID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getNameInSource
in interface QueryMetadataInterface
metadataID
- Metadata identifierQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestpublic int getElementLength(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
DataTypeManager.DefaultDataTypes
.getElementLength
in interface QueryMetadataInterface
elementID
- The element IDQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestpublic Properties getExtensionProperties(Object metadataID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getExtensionProperties
in interface QueryMetadataInterface
metadataID
- Typically element, group, model, or procedureQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestpublic String getNativeType(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getNativeType
in interface QueryMetadataInterface
elementID
- Element identifierQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestpublic boolean isProcedure(Object elementID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
isProcedure
in interface QueryMetadataInterface
elementID
- Group identifierQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestpublic byte[] getBinaryVDBResource(String resourcePath) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getBinaryVDBResource
in interface QueryMetadataInterface
resourcePath
- a path returned by getVDBResourcePaths()TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataException
- Metadata implementation detected a problem during the requestpublic String getCharacterVDBResource(String resourcePath) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getCharacterVDBResource
in interface QueryMetadataInterface
resourcePath
- a path returned by getVDBResourcePaths()TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataException
- Metadata implementation detected a problem during the requestpublic String[] getVDBResourcePaths() throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getVDBResourcePaths
in interface QueryMetadataInterface
TeiidComponentException
- Unexpected internal system problem during requestQueryMetadataException
- Metadata implementation detected a problem during the requestpublic String getModeledType(Object elementID) throws TeiidComponentException, QueryMetadataException
TeiidComponentException
QueryMetadataException
org.teiid.query.metadata.QueryMetadataInterface#getModeledType(java.lang.Object)
public String getModeledBaseType(Object elementID) throws TeiidComponentException, QueryMetadataException
TeiidComponentException
QueryMetadataException
org.teiid.query.metadata.QueryMetadataInterface#getModeledBaseType(java.lang.Object)
public String getModeledPrimitiveType(Object elementID) throws TeiidComponentException, QueryMetadataException
TeiidComponentException
QueryMetadataException
org.teiid.query.metadata.QueryMetadataInterface#getModeledPrimitiveType(java.lang.Object)
public boolean isTemporaryTable(Object groupID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
isTemporaryTable
in interface QueryMetadataInterface
groupID
- Group to checkTeiidComponentException
QueryMetadataException
public Object addToMetadataCache(Object metadataID, String key, Object value) throws TeiidComponentException, QueryMetadataException
addToMetadataCache
in interface QueryMetadataInterface
TeiidComponentException
QueryMetadataException
public Object getFromMetadataCache(Object metadataID, String key) throws TeiidComponentException, QueryMetadataException
getFromMetadataCache
in interface QueryMetadataInterface
TeiidComponentException
QueryMetadataException
public boolean isScalarGroup(Object groupID) throws TeiidComponentException, QueryMetadataException
isScalarGroup
in interface QueryMetadataInterface
TeiidComponentException
QueryMetadataException
public FunctionLibrary getFunctionLibrary()
getFunctionLibrary
in interface QueryMetadataInterface
public Object getPrimaryKey(Object metadataID)
getPrimaryKey
in interface QueryMetadataInterface
public boolean isMultiSource(Object modelId)
isMultiSource
in interface QueryMetadataInterface
public boolean isMultiSourceElement(Object elementId)
isMultiSourceElement
in interface QueryMetadataInterface
public QueryMetadataInterface getDesignTimeMetadata()
QueryMetadataInterface
getDesignTimeMetadata
in interface QueryMetadataInterface
public boolean hasProcedure(String name) throws TeiidComponentException
QueryMetadataInterface
hasProcedure
in interface QueryMetadataInterface
TeiidComponentException
public String getName(Object metadataID) throws TeiidComponentException, QueryMetadataException
QueryMetadataInterface
getName
in interface QueryMetadataInterface
metadataID
- Metadata identifierQueryMetadataException
- Metadata implementation detected a problem during the requestTeiidComponentException
- Unexpected internal system problem during requestpublic QueryMetadataInterface getSessionMetadata()
getSessionMetadata
in interface QueryMetadataInterface
public Set<String> getImportedModels()
getImportedModels
in interface QueryMetadataInterface
public ScriptEngine getScriptEngine(String language) throws TeiidProcessingException
getScriptEngine
in interface QueryMetadataInterface
language
- null is treated as the default of 'javascript'TeiidProcessingException
- if the ScriptEngine is requiredpublic ScriptEngine getScriptEngineDirect(String language) throws TeiidProcessingException
language
- TeiidProcessingException
public boolean isVariadic(Object metadataID)
isVariadic
in interface QueryMetadataInterface
public Map<Expression,Integer> getFunctionBasedExpressions(Object metadataID)
getFunctionBasedExpressions
in interface QueryMetadataInterface
public boolean isPseudo(Object elementId)
isPseudo
in interface QueryMetadataInterface
public Object getModelID(String modelName) throws TeiidComponentException, QueryMetadataException
getModelID
in interface QueryMetadataInterface
TeiidComponentException
QueryMetadataException
public String getExtensionProperty(Object metadataID, String key, boolean checkUnqualified)
getExtensionProperty
in interface QueryMetadataInterface
public boolean findShortName()
findShortName
in interface QueryMetadataInterface
public boolean useOutputName()
useOutputName
in interface QueryMetadataInterface
public boolean widenComparisonToString()
widenComparisonToString
in interface QueryMetadataInterface
public Class<?> getDataTypeClass(String typeName) throws QueryMetadataException
QueryMetadataInterface
getDataTypeClass
in interface QueryMetadataInterface
QueryMetadataException
public boolean isEnvAllowed()
isEnvAllowed
in interface QueryMetadataInterface
Copyright © 2017 JBoss by Red Hat. All rights reserved.