|
||||||||||
| 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 QueryMetadataInterfacegetElementID in class BasicQueryMetadataelementName - 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 QueryMetadataInterfacegetGroupID in class BasicQueryMetadatagroupName - 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 QueryMetadataInterfacegetGroupsForPartialName in class BasicQueryMetadatapartialGroupName - 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 QueryMetadataInterfacegetModelID in class BasicQueryMetadatagroupOrElementID - 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 QueryMetadataInterfacegetFullName in class BasicQueryMetadatametadataID - 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 QueryMetadataInterfacegetFullElementName in class BasicQueryMetadatafullGroupName - 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 QueryMetadataInterfacegetShortElementName in class BasicQueryMetadatafullElementName - 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 QueryMetadataInterfacegetGroupName in class BasicQueryMetadatafullElementName - 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 QueryMetadataInterfacegetElementIDsInGroupID in class BasicQueryMetadatagroupID - 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 QueryMetadataInterfacegetGroupIDForElementID in class BasicQueryMetadataelementID - 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 QueryMetadataInterfacegetStoredProcedureInfoForProcedure in class BasicQueryMetadatafullyQualifiedProcedureName - 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
QueryMetadataInterfaceDataTypeManager.DefaultDataTypes.
getElementType in interface QueryMetadataInterfacegetElementType in class BasicQueryMetadataQueryMetadataException - 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 QueryMetadataInterfacegetDefaultValue in class BasicQueryMetadataelementID - The element ID
QueryMetadataException - Metadata implementation detected a problem during the request
MetaMatrixComponentException - Unexpected internal system problem during request
public java.lang.Object getMinimumValue(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterface
getMinimumValue in interface QueryMetadataInterfacegetMinimumValue in class BasicQueryMetadataelementID - The element ID
QueryMetadataException - Metadata implementation detected a problem during the request
MetaMatrixComponentException - Unexpected internal system problem during request
public java.lang.Object getMaximumValue(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterface
getMaximumValue in interface QueryMetadataInterfacegetMaximumValue in class BasicQueryMetadataelementID - The element ID
QueryMetadataException - Metadata implementation detected a problem during the request
MetaMatrixComponentException - Unexpected internal system problem during request
public boolean isVirtualGroup(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterface
isVirtualGroup in interface QueryMetadataInterfaceisVirtualGroup in class BasicQueryMetadataQueryMetadataException - 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 QueryMetadataInterfaceisProcedure in class BasicQueryMetadatagroupID - 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 QueryMetadataInterfaceisVirtualModel in class BasicQueryMetadataQueryMetadataException - 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 QueryMetadataInterfacegetVirtualPlan in class BasicQueryMetadataMetaMatrixComponentException
QueryMetadataExceptionQueryMetadataInterface#getVirtualPlan(GroupSymbol)
public java.lang.String getInsertPlan(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
BasicQueryMetadata
getInsertPlan in interface QueryMetadataInterfacegetInsertPlan in class BasicQueryMetadataMetaMatrixComponentException
QueryMetadataException
public java.lang.String getUpdatePlan(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
BasicQueryMetadata
getUpdatePlan in interface QueryMetadataInterfacegetUpdatePlan in class BasicQueryMetadataMetaMatrixComponentException
QueryMetadataException
public java.lang.String getDeletePlan(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
BasicQueryMetadata
getDeletePlan in interface QueryMetadataInterfacegetDeletePlan in class BasicQueryMetadataMetaMatrixComponentException
QueryMetadataException
public boolean modelSupports(java.lang.Object modelID,
int modelConstant)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterface
modelSupports in interface QueryMetadataInterfacemodelSupports in class BasicQueryMetadatamodelID - 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 QueryMetadataInterfacegroupSupports in class BasicQueryMetadatagroupID - 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 QueryMetadataInterfaceelementSupports in class BasicQueryMetadataelementID - 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 QueryMetadataInterfacegetMaxSetSize in class BasicQueryMetadatamodelID - 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 QueryMetadataInterfacegetIndexesInGroup in class BasicQueryMetadatagroupID - 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 QueryMetadataInterfacegetUniqueKeysInGroup in class BasicQueryMetadatagroupID - 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 QueryMetadataInterfacegetForeignKeysInGroup in class BasicQueryMetadatagroupID - 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 QueryMetadataInterfacegetPrimaryKeyIDForForeignKeyID in class BasicQueryMetadataforeignKeyID - 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 QueryMetadataInterfacegetAccessPatternsInGroup in class BasicQueryMetadatagroupID - 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 QueryMetadataInterfacegetElementIDsInIndex in class BasicQueryMetadataindex - 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 QueryMetadataInterfacegetElementIDsInKey in class BasicQueryMetadatakey - 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 QueryMetadataInterfacegetElementIDsInAccessPattern in class BasicQueryMetadataaccessPattern - 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 QueryMetadataInterfaceisXMLGroup in class BasicQueryMetadatagroupID - Group to check
MetaMatrixComponentException
QueryMetadataExceptionQueryMetadataInterface.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 QueryMetadataInterfacehasMaterialization in class BasicQueryMetadatagroupID - 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
QueryMetadataInterfacenull if the given virtual group has no Materialization.
getMaterialization in interface QueryMetadataInterfacegetMaterialization in class BasicQueryMetadatagroupID - 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
QueryMetadataInterfacenull
if the given virtual group has no Materialization.
getMaterializationStage in interface QueryMetadataInterfacegetMaterializationStage in class BasicQueryMetadatagroupID - 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 QueryMetadataInterfacegetMappingNode in class BasicQueryMetadatagroupID - 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 QueryMetadataInterfacegetVirtualDatabaseName in class BasicQueryMetadataQueryMetadataException - 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 QueryMetadataInterfacegetXMLTempGroups in class BasicQueryMetadatagroupID - XML virtual document groupID
MetaMatrixComponentException
QueryMetadataException
public int getCardinality(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterface
getCardinality in interface QueryMetadataInterfacegetCardinality in class BasicQueryMetadatagroupID - Metadata identifier specifying group
MetaMatrixComponentException
QueryMetadataException
public java.util.List getXMLSchemas(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterface
getXMLSchemas in interface QueryMetadataInterfacegetXMLSchemas in class BasicQueryMetadatagroupID - Document group ID
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getNameInSource(java.lang.Object metadataID)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterface
getNameInSource in interface QueryMetadataInterfacegetNameInSource in class BasicQueryMetadatametadataID - Metadata identifier
QueryMetadataException - Metadata implementation detected a problem during the request
MetaMatrixComponentException - Unexpected internal system problem during request
public int getElementLength(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterfaceDataTypeManager.DefaultDataTypes.
getElementLength in interface QueryMetadataInterfacegetElementLength in class BasicQueryMetadataelementID - The element ID
QueryMetadataException - Metadata implementation detected a problem during the request
MetaMatrixComponentException - Unexpected internal system problem during request
public int getPosition(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterface
getPosition in interface QueryMetadataInterfacegetPosition in class BasicQueryMetadataelementID - The element ID
QueryMetadataException - Metadata implementation detected a problem during the request
MetaMatrixComponentException - Unexpected internal system problem during request
public int getPrecision(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterface
getPrecision in interface QueryMetadataInterfacegetPrecision in class BasicQueryMetadataelementID - The element ID
QueryMetadataException - Metadata implementation detected a problem during the request
MetaMatrixComponentException - Unexpected internal system problem during request
public int getRadix(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterface
getRadix in interface QueryMetadataInterfacegetRadix in class BasicQueryMetadataelementID - The element ID
QueryMetadataException - Metadata implementation detected a problem during the request
MetaMatrixComponentException - Unexpected internal system problem during request
public java.lang.String getFormat(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterface
getFormat in interface QueryMetadataInterfacegetFormat in class BasicQueryMetadataelementID - The element ID
QueryMetadataException - Metadata implementation detected a problem during the request
MetaMatrixComponentException - Unexpected internal system problem during request
public int getScale(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterface
getScale in interface QueryMetadataInterfacegetScale in class BasicQueryMetadataelementID - The element ID
QueryMetadataException - Metadata implementation detected a problem during the request
MetaMatrixComponentException - Unexpected internal system problem during request
public int getDistinctValues(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterface
getDistinctValues in interface QueryMetadataInterfacegetDistinctValues in class BasicQueryMetadataelementID - 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 QueryMetadataInterfacegetNullValues in class BasicQueryMetadataelementID - 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 QueryMetadataInterfacegetNativeType in class BasicQueryMetadataelementID - Element identifier
QueryMetadataException - Metadata implementation detected a problem during the request
MetaMatrixComponentException - Unexpected internal system problem during request
public java.util.Properties getExtensionProperties(java.lang.Object metadataID)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterface
getExtensionProperties in interface QueryMetadataInterfacegetExtensionProperties in class BasicQueryMetadatametadataID - Typically element, group, model, or procedure
QueryMetadataException - Metadata implementation detected a problem during the request
MetaMatrixComponentException - Unexpected internal system problem during request
public byte[] getBinaryVDBResource(java.lang.String resourcePath)
throws MetaMatrixComponentException,
QueryMetadataException
QueryMetadataInterface
getBinaryVDBResource in interface QueryMetadataInterfacegetBinaryVDBResource in class BasicQueryMetadataresourcePath - 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 QueryMetadataInterfacegetCharacterVDBResource in class BasicQueryMetadataresourcePath - 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 QueryMetadataInterfacegetVDBResourcePaths in class BasicQueryMetadataMetaMatrixComponentException - 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 QueryMetadataInterfacegetModeledType in class BasicQueryMetadataelementID - 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 QueryMetadataInterfacegetModeledBaseType in class BasicQueryMetadataelementID - 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 QueryMetadataInterfacegetModeledPrimitiveType in class BasicQueryMetadataelementID - 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
MetaMatrixComponentExceptionprotected 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
MetaMatrixComponentExceptionprotected java.util.Collection findMetadataRecords(IEntryResult[] results)
indexName - entityName - the name to matchisPartialName - true if the entity name is a partially qualified
QueryMetadataExceptionprotected 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 | |||||||||