|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.metadata.BasicQueryMetadata
com.metamatrix.modeler.transformation.metadata.TransformationMetadata
public abstract class TransformationMetadata
Modelers implementation of QueryMetadataInterface that reads columns, groups, models etc. index files for various metadata properties.
Field Summary | |
---|---|
static ColumnRecordComparator |
columnComparator
|
static char |
DELIMITER_CHAR
Delimiter character used when specifying fully qualified entity names |
static java.lang.String |
DELIMITER_STRING
|
static java.lang.String |
NOT_EXISTS_MESSAGE
|
Fields inherited from interface com.metamatrix.query.metadata.QueryMetadataInterface |
---|
UNKNOWN_CARDINALITY |
Constructor Summary | |
---|---|
protected |
TransformationMetadata(QueryMetadataContext context)
TransformationMetadata constructor |
Method Summary | |
---|---|
boolean |
elementSupports(java.lang.Object elementID,
int elementConstant)
Determine whether the specified element supports some feature. |
protected void |
filterMetadataRecordForUUID(java.lang.String uuid,
java.util.Collection records)
Remove any MetadataRecord instances that do not match the specified uuid Due to the pattern matching used to query index files if an index record matched the specified uuid string anywhere in that record it would be returned in the results (for example, if the parent ObjectID in the index record matched the specified uuid). |
protected java.util.Collection |
findChildRecords(MetadataRecord parentRecord,
char childRecordType)
Return all index file records that match the specified entity name, filtering by matching on parent uuid |
protected java.util.Collection |
findChildRecordsForColumns(MetadataRecord parentRecord,
char childRecordType,
java.util.List uuids)
Return all index file records that match the specified entity name, filtering by matching on the child uuids |
protected java.util.Collection |
findChildRecordsWithoutFiltering(MetadataRecord parentRecord,
char childRecordType)
Return all index file records that match the specified entity name, without filtering |
protected MetadataRecord |
findMetadataRecord(IEntryResult result)
|
protected java.util.Collection |
findMetadataRecords(char recordType,
java.lang.String entityName,
boolean isPartialName)
Return all index file records that match the specified entity name |
protected java.util.Collection |
findMetadataRecords(IEntryResult[] results)
Return all index file records that match the specified entity name |
java.util.Collection |
getAccessPatternsInGroup(java.lang.Object groupID)
Get the access patterns for the specified group |
byte[] |
getBinaryVDBResource(java.lang.String resourcePath)
Gets the contents of a VDB resource in binary form. |
int |
getCardinality(java.lang.Object groupID)
Return the cardinality for this group |
java.lang.String |
getCharacterVDBResource(java.lang.String resourcePath)
Gets the contents of a VDB resource as a String. |
protected QueryMetadataContext |
getContext()
Return the QueryMetadataContext reference |
protected DatatypeRecord |
getDatatypeRecord(java.lang.Object elementID)
|
protected java.lang.String |
getDatatypeUUIDMatchPattern(java.lang.String uuid)
Return the pattern match string that could be used to match a UUID in a datatype index record. |
java.lang.Object |
getDefaultValue(java.lang.Object elementID)
Get the element's default value for an element symbol |
java.lang.String |
getDeletePlan(java.lang.Object groupID)
Get procedure defining the delete plan for this group. |
int |
getDistinctValues(java.lang.Object elementID)
Get the number of distinct values for this column. |
java.lang.Object |
getElementID(java.lang.String elementName)
Get the metadata-implementation identifier object for the given element name. |
java.util.List |
getElementIDsInAccessPattern(java.lang.Object accessPattern)
Get the elements in the access pattern |
java.util.List |
getElementIDsInGroupID(java.lang.Object groupID)
Get list of metadata element IDs for a group ID |
java.util.List |
getElementIDsInIndex(java.lang.Object index)
Get the elements in the index |
java.util.List |
getElementIDsInKey(java.lang.Object key)
Get the elements in the key |
int |
getElementLength(java.lang.Object elementID)
Get the element length for a given element ID. |
java.lang.String |
getElementType(java.lang.Object elementID)
Get the element type name for an element symbol. |
java.util.Properties |
getExtensionProperties(java.lang.Object metadataID)
Get all extension properties defined on this metadata object |
java.util.Collection |
getForeignKeysInGroup(java.lang.Object groupID)
Get the foreign keys for the specified group |
java.lang.String |
getFormat(java.lang.Object elementID)
Get the element's format |
java.lang.String |
getFullElementName(java.lang.String fullGroupName,
java.lang.String shortElementName)
Get the fully qualified (unique) element name given the full group name and the short element name. |
java.lang.String |
getFullName(java.lang.Object metadataID)
Get the fully qualified (unique) name of the metadata identifier specified. |
java.lang.Object |
getGroupID(java.lang.String groupName)
Get the metadata-implementation identifier object for the given group name. |
java.lang.Object |
getGroupIDForElementID(java.lang.Object elementID)
Get containg group ID given element ID |
java.lang.String |
getGroupName(java.lang.String fullElementName)
Return the text portion of the fullElementName representing a group. |
java.util.Collection |
getGroupsForPartialName(java.lang.String partialGroupName)
Get a collection of group names that match the partially qualified group name. |
protected com.metamatrix.internal.core.index.Index[] |
getIndexes(char recordType,
IndexSelector selector)
Return the array of MtkIndex instances representing temporary indexes |
java.util.Collection |
getIndexesInGroup(java.lang.Object groupID)
Get the indexes for the specified group |
protected IndexSelector |
getIndexSelector()
Return the IndexSelector reference |
java.lang.String |
getInsertPlan(java.lang.Object groupID)
Get procedure defining the insert plan for this group. |
MappingNode |
getMappingNode(java.lang.Object groupID)
Get the mapping node for the given groupID |
protected java.lang.String |
getMatchPattern(char recordType,
java.lang.String name)
Return the pattern match string that could be used to match a partially/fully qualified entity name in an index record. |
java.lang.Object |
getMaterialization(java.lang.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. |
java.lang.Object |
getMaterializationStage(java.lang.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. |
java.lang.Object |
getMaximumValue(java.lang.Object elementID)
Get the element's default value for an element symbol |
int |
getMaxSetSize(java.lang.Object modelID)
Get the max set size for the specified model. |
java.lang.Object |
getMinimumValue(java.lang.Object elementID)
Get the element's minimum value for an element symbol |
java.lang.String |
getModeledBaseType(java.lang.Object elementID)
Get the design-time model base type of the element specified. |
java.lang.String |
getModeledPrimitiveType(java.lang.Object elementID)
Get the design-time model primitive type of the element specified. |
java.lang.String |
getModeledType(java.lang.Object elementID)
Get the design-time model type of the element specified. |
java.lang.Object |
getModelID(java.lang.Object groupOrElementID)
Get the metadata-implementation identifier object for the model containing the specified group or element ID. |
java.lang.String |
getNameInSource(java.lang.Object metadataID)
Get the name in source of the metadata identifier specified. |
java.lang.String |
getNativeType(java.lang.Object elementID)
Get the native type of the element specified. |
int |
getNullValues(java.lang.Object elementID)
Get the number of distinct values for this column. |
protected java.lang.String |
getParentPrefixPattern(char recordType,
java.lang.String name)
Return the prefix match string that could be used to exactly match a fully qualified entity name in an index record. |
int |
getPosition(java.lang.Object elementID)
Get the element's position in the group |
int |
getPrecision(java.lang.Object elementID)
Get the element's precision |
protected java.lang.String |
getPrefixPattern(char recordType,
java.lang.String name)
Return the prefix match string that could be used to exactly match a fully qualified entity name in an index record. |
java.lang.Object |
getPrimaryKeyIDForForeignKeyID(java.lang.Object foreignKeyID)
Get the corresponding primary key ID for the specified foreign key ID |
int |
getRadix(java.lang.Object elementID)
Get the element's radix |
protected MetadataRecord |
getRecordByType(java.lang.String entityName,
char recordType)
Get a MetadataRecord object given a entityName/UUID. |
int |
getScale(java.lang.Object elementID)
Get the element's scale |
java.lang.String |
getShortElementName(java.lang.String fullElementName)
Get the short (unique only to group) name of an element, given a fully qualified element name. |
StoredProcedureInfo |
getStoredProcedureInfoForProcedure(java.lang.String fullyQualifiedProcedureName)
Get the the StoredProcedureInfo based on the fully qualified procedure name |
java.util.Collection |
getUniqueKeysInGroup(java.lang.Object groupID)
Get the unique keys for the specified group (primary and unique keys) |
java.lang.String |
getUpdatePlan(java.lang.Object groupID)
Get procedure defining the update plan for this group. |
protected java.lang.String |
getUUIDMatchPattern(char recordType,
java.lang.String uuid)
Return the pattern match string that could be used to match a UUID in an index record. |
protected java.lang.String |
getUUIDPrefixPattern(char recordType,
java.lang.String uuid)
Return the prefix match string that could be used to exactly match a uuid in an index record. |
java.lang.String[] |
getVDBResourcePaths()
Gets the resource paths of all the resources in the VDB. |
java.lang.String |
getVirtualDatabaseName()
Get the currently connected virtual database name. |
QueryNode |
getVirtualPlan(java.lang.Object groupID)
Get virtual plan for a group symbol. |
java.util.List |
getXMLSchemas(java.lang.Object groupID)
Get XML schemas for a document group. |
java.util.Collection |
getXMLTempGroups(java.lang.Object groupID)
Return a list of all the temp groups used in this document. |
boolean |
groupSupports(java.lang.Object groupID,
int groupConstant)
Determine whether the specified group supports some feature. |
boolean |
hasMaterialization(java.lang.Object groupID)
Determine whether given virtual group has an associated Materialization. |
boolean |
isProcedure(java.lang.Object groupID)
Determine whether this is a procedure |
boolean |
isTemporaryGroup(java.lang.Object groupID)
|
boolean |
isVirtualGroup(java.lang.Object groupID)
Determine whether a group is virtual or not. |
boolean |
isVirtualModel(java.lang.Object modelID)
Determine whether a model is virtual or not. |
boolean |
isXMLGroup(java.lang.Object groupID)
Determine whether a group is an XML virtual document. |
boolean |
modelSupports(java.lang.Object modelID,
int modelConstant)
Determine whether the specified model supports some feature. |
protected IEntryResult[] |
queryIndex(char recordType,
java.lang.String entityName,
boolean isPartialName)
Return all index file records that match the specified entity name |
protected IEntryResult[] |
queryIndex(com.metamatrix.internal.core.index.Index[] indexes,
char[] pattern,
boolean isPrefix,
boolean returnFirstMatch)
Return all index file records that match the specified record pattern. |
protected IEntryResult[] |
queryIndex(com.metamatrix.internal.core.index.Index[] indexes,
char[] pattern,
boolean isPrefix,
boolean isCaseSensitive,
boolean returnFirstMatch)
Return all index file records that match the specified record pattern. |
Methods inherited from class com.metamatrix.query.metadata.BasicQueryMetadata |
---|
addToMetadataCache, getFromMetadataCache, 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 java.lang.String DELIMITER_STRING
public static ColumnRecordComparator columnComparator
public static java.lang.String NOT_EXISTS_MESSAGE
Constructor Detail |
---|
protected TransformationMetadata(QueryMetadataContext context)
context
- Object containing the info needed to lookup metadta.Method Detail |
---|
public java.lang.Object getElementID(java.lang.String elementName) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getElementID
in interface QueryMetadataInterface
getElementID
in class BasicQueryMetadata
elementName
- Fully qualified element name
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getElementID(String)
public java.lang.Object getGroupID(java.lang.String groupName) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getGroupID
in interface QueryMetadataInterface
getGroupID
in class BasicQueryMetadata
groupName
- Fully qualified group name
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getGroupID(String)
public java.util.Collection getGroupsForPartialName(java.lang.String partialGroupName) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getGroupsForPartialName
in interface QueryMetadataInterface
getGroupsForPartialName
in class BasicQueryMetadata
partialGroupName
- Partially qualified group name
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getGroupID(String)
public java.lang.Object getModelID(java.lang.Object groupOrElementID) throws MetaMatrixComponentException, 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
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getModelID(Object)
public java.lang.String getFullName(java.lang.Object metadataID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getFullName
in interface QueryMetadataInterface
getFullName
in class BasicQueryMetadata
metadataID
- Metadata identifier
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getFullName(Object)
public java.lang.String getFullElementName(java.lang.String fullGroupName, java.lang.String shortElementName) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getFullElementName
in interface QueryMetadataInterface
getFullElementName
in class BasicQueryMetadata
fullGroupName
- Fully qualified group nameshortElementName
- Short element name
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getFullElementName(String, String)
public java.lang.String getShortElementName(java.lang.String fullElementName) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getShortElementName
in interface QueryMetadataInterface
getShortElementName
in class BasicQueryMetadata
fullElementName
- Fully qualified element name
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getShortElementName(String)
public java.lang.String getGroupName(java.lang.String fullElementName) throws MetaMatrixComponentException, QueryMetadataException
getGroupName
in interface QueryMetadataInterface
getGroupName
in class BasicQueryMetadata
fullElementName
- Fully qualified element name
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getGroupName(java.lang.String)
public java.util.List getElementIDsInGroupID(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getElementIDsInGroupID
in interface QueryMetadataInterface
getElementIDsInGroupID
in class BasicQueryMetadata
groupID
- Group ID
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getElementIDsInGroupID(Object)
public java.lang.Object getGroupIDForElementID(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getGroupIDForElementID
in interface QueryMetadataInterface
getGroupIDForElementID
in class BasicQueryMetadata
elementID
- Element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getGroupIDForElementID(Object)
public StoredProcedureInfo getStoredProcedureInfoForProcedure(java.lang.String fullyQualifiedProcedureName) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getStoredProcedureInfoForProcedure
in interface QueryMetadataInterface
getStoredProcedureInfoForProcedure
in class BasicQueryMetadata
fullyQualifiedProcedureName
- the fully qualified stored procedure name
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getStoredProcedureInfoForProcedure(String)
public java.lang.String getElementType(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
DataTypeManager.DefaultDataTypes
.
getElementType
in interface QueryMetadataInterface
getElementType
in class BasicQueryMetadata
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface#getElementType(ElementSymbol)
public java.lang.Object getDefaultValue(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getDefaultValue
in interface QueryMetadataInterface
getDefaultValue
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestpublic java.lang.Object getMinimumValue(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getMinimumValue
in interface QueryMetadataInterface
getMinimumValue
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestpublic java.lang.Object getMaximumValue(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getMaximumValue
in interface QueryMetadataInterface
getMaximumValue
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestpublic boolean isVirtualGroup(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
isVirtualGroup
in interface QueryMetadataInterface
isVirtualGroup
in class BasicQueryMetadata
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.isVirtualGroup(Object)
public boolean isProcedure(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
isProcedure
in interface QueryMetadataInterface
isProcedure
in class BasicQueryMetadata
groupID
- Group identifier
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestcom.metamatrix.query.metadata.QueryMetadataInterface#isProcedureInputElement(java.lang.Object)
public boolean isVirtualModel(java.lang.Object modelID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
isVirtualModel
in interface QueryMetadataInterface
isVirtualModel
in class BasicQueryMetadata
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.isVirtualModel(Object)
public QueryNode getVirtualPlan(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getVirtualPlan
in interface QueryMetadataInterface
getVirtualPlan
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
QueryMetadataInterface#getVirtualPlan(GroupSymbol)
public java.lang.String getInsertPlan(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
BasicQueryMetadata
getInsertPlan
in interface QueryMetadataInterface
getInsertPlan
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getUpdatePlan(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
BasicQueryMetadata
getUpdatePlan
in interface QueryMetadataInterface
getUpdatePlan
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getDeletePlan(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
BasicQueryMetadata
getDeletePlan
in interface QueryMetadataInterface
getDeletePlan
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public boolean modelSupports(java.lang.Object modelID, int modelConstant) throws MetaMatrixComponentException, 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
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.modelSupports(Object, int)
public boolean groupSupports(java.lang.Object groupID, int groupConstant) throws MetaMatrixComponentException, 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
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.groupSupports(Object, int)
public boolean elementSupports(java.lang.Object elementID, int elementConstant) throws MetaMatrixComponentException, 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
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.elementSupports(Object, int)
public int getMaxSetSize(java.lang.Object modelID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getMaxSetSize
in interface QueryMetadataInterface
getMaxSetSize
in class BasicQueryMetadata
modelID
- Metadata identifier specifying model
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getMaxSetSize(Object)
public java.util.Collection getIndexesInGroup(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getIndexesInGroup
in interface QueryMetadataInterface
getIndexesInGroup
in class BasicQueryMetadata
groupID
- Metadata identifier specifying group
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getIndexesInGroup(java.lang.Object)
public java.util.Collection getUniqueKeysInGroup(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getUniqueKeysInGroup
in interface QueryMetadataInterface
getUniqueKeysInGroup
in class BasicQueryMetadata
groupID
- Metadata identifier specifying group
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getUniqueKeysInGroup(Object)
public java.util.Collection getForeignKeysInGroup(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getForeignKeysInGroup
in interface QueryMetadataInterface
getForeignKeysInGroup
in class BasicQueryMetadata
groupID
- Metadata identifier specifying group
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getForeignKeysInGroup(Object)
public java.lang.Object getPrimaryKeyIDForForeignKeyID(java.lang.Object foreignKeyID) throws MetaMatrixComponentException, 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
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getPrimaryKeyIDForForeignKeyID(Object)
public java.util.Collection getAccessPatternsInGroup(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getAccessPatternsInGroup
in interface QueryMetadataInterface
getAccessPatternsInGroup
in class BasicQueryMetadata
groupID
- Metadata identifier specifying group
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getAccessPatternsInGroup(Object)
public java.util.List getElementIDsInIndex(java.lang.Object index) throws MetaMatrixComponentException, 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
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getElementIDsInIndex(java.lang.Object)
public java.util.List getElementIDsInKey(java.lang.Object key) throws MetaMatrixComponentException, 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
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getElementIDsInKey(Object)
public java.util.List getElementIDsInAccessPattern(java.lang.Object accessPattern) throws MetaMatrixComponentException, 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
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getElementIDsInAccessPattern(Object)
public boolean isXMLGroup(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
isXMLGroup
in interface QueryMetadataInterface
isXMLGroup
in class BasicQueryMetadata
groupID
- Group to check
MetaMatrixComponentException
QueryMetadataException
QueryMetadataInterface.isXMLGroup(Object)
public boolean isTemporaryGroup(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
MetaMatrixComponentException
QueryMetadataException
public boolean hasMaterialization(java.lang.Object groupID) throws MetaMatrixComponentException, 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
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.hasMaterialization(java.lang.Object)
public java.lang.Object getMaterialization(java.lang.Object groupID) throws MetaMatrixComponentException, 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.
MetaMatrixComponentException
- Unexpected internal system problem during request
QueryMetadataException
- Metadata implementation detected a problem during the requestQueryMetadataInterface.getMaterialization(java.lang.Object)
public java.lang.Object getMaterializationStage(java.lang.Object groupID) throws MetaMatrixComponentException, 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.
MetaMatrixComponentException
- Unexpected internal system problem during request
QueryMetadataException
- Metadata implementation detected a problem during the requestQueryMetadataInterface.getMaterializationStage(java.lang.Object)
public MappingNode getMappingNode(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getMappingNode
in interface QueryMetadataInterface
getMappingNode
in class BasicQueryMetadata
groupID
- Metadata group ID
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface#getMappingNode(GroupSymbol)
public java.lang.String getVirtualDatabaseName() throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getVirtualDatabaseName
in interface QueryMetadataInterface
getVirtualDatabaseName
in class BasicQueryMetadata
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getVirtualDatabaseName()
public java.util.Collection getXMLTempGroups(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getXMLTempGroups
in interface QueryMetadataInterface
getXMLTempGroups
in class BasicQueryMetadata
groupID
- XML virtual document groupID
MetaMatrixComponentException
QueryMetadataException
public int getCardinality(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getCardinality
in interface QueryMetadataInterface
getCardinality
in class BasicQueryMetadata
groupID
- Metadata identifier specifying group
MetaMatrixComponentException
QueryMetadataException
public java.util.List getXMLSchemas(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getXMLSchemas
in interface QueryMetadataInterface
getXMLSchemas
in class BasicQueryMetadata
groupID
- Document group ID
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getNameInSource(java.lang.Object metadataID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getNameInSource
in interface QueryMetadataInterface
getNameInSource
in class BasicQueryMetadata
metadataID
- Metadata identifier
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestpublic int getElementLength(java.lang.Object elementID) throws MetaMatrixComponentException, 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
MetaMatrixComponentException
- Unexpected internal system problem during requestpublic int getPosition(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getPosition
in interface QueryMetadataInterface
getPosition
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestpublic int getPrecision(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getPrecision
in interface QueryMetadataInterface
getPrecision
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestpublic int getRadix(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getRadix
in interface QueryMetadataInterface
getRadix
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestpublic java.lang.String getFormat(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getFormat
in interface QueryMetadataInterface
getFormat
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestpublic int getScale(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getScale
in interface QueryMetadataInterface
getScale
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestpublic int getDistinctValues(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getDistinctValues
in interface QueryMetadataInterface
getDistinctValues
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getDistinctValues(java.lang.Object)
public int getNullValues(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getNullValues
in interface QueryMetadataInterface
getNullValues
in class BasicQueryMetadata
elementID
- The element ID
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getNullValues(java.lang.Object)
public java.lang.String getNativeType(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getNativeType
in interface QueryMetadataInterface
getNativeType
in class BasicQueryMetadata
elementID
- Element identifier
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestpublic java.util.Properties getExtensionProperties(java.lang.Object metadataID) throws MetaMatrixComponentException, 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
MetaMatrixComponentException
- Unexpected internal system problem during requestpublic byte[] getBinaryVDBResource(java.lang.String resourcePath) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getBinaryVDBResource
in interface QueryMetadataInterface
getBinaryVDBResource
in class BasicQueryMetadata
resourcePath
- a path returned by getVDBResourcePaths()
MetaMatrixComponentException
- Unexpected internal system problem during request
QueryMetadataException
- Metadata implementation detected a problem during the requestBasicQueryMetadata.getBinaryVDBResource(java.lang.String)
public java.lang.String getCharacterVDBResource(java.lang.String resourcePath) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getCharacterVDBResource
in interface QueryMetadataInterface
getCharacterVDBResource
in class BasicQueryMetadata
resourcePath
- a path returned by getVDBResourcePaths()
MetaMatrixComponentException
- Unexpected internal system problem during request
QueryMetadataException
- Metadata implementation detected a problem during the requestBasicQueryMetadata.getCharacterVDBResource(java.lang.String)
public java.lang.String[] getVDBResourcePaths() throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getVDBResourcePaths
in interface QueryMetadataInterface
getVDBResourcePaths
in class BasicQueryMetadata
MetaMatrixComponentException
- Unexpected internal system problem during request
QueryMetadataException
- Metadata implementation detected a problem during the requestBasicQueryMetadata.getVDBResourcePaths()
public java.lang.String getModeledType(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getModeledType
in interface QueryMetadataInterface
getModeledType
in class BasicQueryMetadata
elementID
- Element identifier
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getModeledType(java.lang.Object)
public java.lang.String getModeledBaseType(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getModeledBaseType
in interface QueryMetadataInterface
getModeledBaseType
in class BasicQueryMetadata
elementID
- Element identifier
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getModeledBaseType(java.lang.Object)
public java.lang.String getModeledPrimitiveType(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
QueryMetadataInterface
getModeledPrimitiveType
in interface QueryMetadataInterface
getModeledPrimitiveType
in class BasicQueryMetadata
elementID
- Element identifier
QueryMetadataException
- Metadata implementation detected a problem during the request
MetaMatrixComponentException
- Unexpected internal system problem during requestQueryMetadataInterface.getModeledPrimitiveType(java.lang.Object)
protected DatatypeRecord getDatatypeRecord(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
MetaMatrixComponentException
QueryMetadataException
protected com.metamatrix.internal.core.index.Index[] getIndexes(char recordType, IndexSelector selector) throws MetaMatrixComponentException
selector
-
QueryMetadataException
MetaMatrixComponentException
protected java.lang.String getDatatypeUUIDMatchPattern(java.lang.String uuid)
uuid
- The UUID for which the pattern match string is to be constructed.
protected java.lang.String getUUIDMatchPattern(char recordType, java.lang.String uuid)
uuid
- The UUID for which the pattern match string is to be constructed.
protected java.lang.String getMatchPattern(char recordType, java.lang.String name)
name
- The partially/fully qualified name for which
the pattern match string is to be constructed.
protected java.lang.String getPrefixPattern(char recordType, java.lang.String name)
name
- The fully qualified name for which the prefix match
string is to be constructed.
protected java.lang.String getUUIDPrefixPattern(char recordType, java.lang.String uuid)
uuid
- The uuid for which the prefix match string is to be constructed.
protected java.lang.String getParentPrefixPattern(char recordType, java.lang.String name)
name
- The fully qualified name for which the prefix match
string is to be constructed.
protected MetadataRecord getRecordByType(java.lang.String entityName, char recordType) throws MetaMatrixComponentException, QueryMetadataException
entityName
- String representing an entity, may be null(vdbs)recordType
- The record type for the entity
MetaMatrixComponentException
QueryMetadataException
protected void filterMetadataRecordForUUID(java.lang.String uuid, java.util.Collection records)
uuid
- records
- protected IndexSelector getIndexSelector()
protected QueryMetadataContext getContext()
protected java.util.Collection findChildRecords(MetadataRecord parentRecord, char childRecordType) throws MetaMatrixComponentException
parentRecord
- childRecordType
- the type of the child to seek uuidsuuids
- to filter just the objects we want
MetaMatrixComponentException
protected java.util.Collection findChildRecordsForColumns(MetadataRecord parentRecord, char childRecordType, java.util.List uuids) throws MetaMatrixComponentException
parentRecord
- childRecordType
- the type of the child to seek uuidsuuids
- to filter just the objects we want
MetaMatrixComponentException
protected java.util.Collection findChildRecordsWithoutFiltering(MetadataRecord parentRecord, char childRecordType) throws MetaMatrixComponentException
parentRecord
- childRecordType
- the type of the child to seek
MetaMatrixComponentException
protected java.util.Collection findMetadataRecords(IEntryResult[] results)
indexName
- entityName
- the name to matchisPartialName
- true if the entity name is a partially qualified
QueryMetadataException
protected MetadataRecord findMetadataRecord(IEntryResult result)
protected java.util.Collection findMetadataRecords(char recordType, java.lang.String entityName, boolean isPartialName) throws MetaMatrixComponentException
indexName
- entityName
- the name to matchisPartialName
- true if the entity name is a partially qualified
QueryMetadataException
MetaMatrixComponentException
protected IEntryResult[] queryIndex(char recordType, java.lang.String entityName, boolean isPartialName) throws MetaMatrixComponentException
indexName
- entityName
- the name to matchisPartialName
- true if the entity name is a partially qualified
QueryMetadataException
MetaMatrixComponentException
protected IEntryResult[] queryIndex(com.metamatrix.internal.core.index.Index[] indexes, char[] pattern, boolean isPrefix, boolean returnFirstMatch) throws MetaMatrixComponentException
indexes
- the array of MtkIndex instances to querypattern
-
QueryMetadataException
MetaMatrixComponentException
protected IEntryResult[] queryIndex(com.metamatrix.internal.core.index.Index[] indexes, char[] pattern, boolean isPrefix, boolean isCaseSensitive, boolean returnFirstMatch) throws MetaMatrixComponentException
indexes
- the array of MtkIndex instances to querypattern
-
QueryMetadataException
MetaMatrixComponentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |