|
||||||||||
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)
|
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)
|
byte[] |
getBinaryVDBResource(java.lang.String resourcePath)
|
int |
getCardinality(java.lang.Object groupID)
|
java.lang.String |
getCharacterVDBResource(java.lang.String resourcePath)
|
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)
|
java.lang.String |
getDeletePlan(java.lang.Object groupID)
|
int |
getDistinctValues(java.lang.Object elementID)
|
java.lang.Object |
getElementID(java.lang.String elementName)
|
java.util.List |
getElementIDsInAccessPattern(java.lang.Object accessPattern)
|
java.util.List |
getElementIDsInGroupID(java.lang.Object groupID)
|
java.util.List |
getElementIDsInIndex(java.lang.Object index)
|
java.util.List |
getElementIDsInKey(java.lang.Object key)
|
int |
getElementLength(java.lang.Object elementID)
|
java.lang.String |
getElementType(java.lang.Object elementID)
|
java.util.Properties |
getExtensionProperties(java.lang.Object metadataID)
|
java.util.Collection |
getForeignKeysInGroup(java.lang.Object groupID)
|
java.lang.String |
getFormat(java.lang.Object elementID)
|
java.lang.String |
getFullElementName(java.lang.String fullGroupName,
java.lang.String shortElementName)
|
java.lang.String |
getFullName(java.lang.Object metadataID)
|
java.lang.Object |
getGroupID(java.lang.String groupName)
|
java.lang.Object |
getGroupIDForElementID(java.lang.Object elementID)
|
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)
|
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)
|
protected IndexSelector |
getIndexSelector()
Return the IndexSelector reference |
java.lang.String |
getInsertPlan(java.lang.Object groupID)
|
MappingNode |
getMappingNode(java.lang.Object 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)
|
java.lang.Object |
getMaterializationStage(java.lang.Object groupID)
|
java.lang.Object |
getMaximumValue(java.lang.Object elementID)
|
int |
getMaxSetSize(java.lang.Object modelID)
|
java.lang.Object |
getMinimumValue(java.lang.Object elementID)
|
java.lang.String |
getModeledBaseType(java.lang.Object elementID)
|
java.lang.String |
getModeledPrimitiveType(java.lang.Object elementID)
|
java.lang.String |
getModeledType(java.lang.Object elementID)
|
java.lang.Object |
getModelID(java.lang.Object groupOrElementID)
|
java.lang.String |
getNameInSource(java.lang.Object metadataID)
|
java.lang.String |
getNativeType(java.lang.Object elementID)
|
int |
getNullValues(java.lang.Object elementID)
|
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)
|
int |
getPrecision(java.lang.Object elementID)
|
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)
|
int |
getRadix(java.lang.Object elementID)
|
protected MetadataRecord |
getRecordByType(java.lang.String entityName,
char recordType)
Get a MetadataRecord object given a entityName/UUID. |
int |
getScale(java.lang.Object elementID)
|
java.lang.String |
getShortElementName(java.lang.String fullElementName)
|
StoredProcedureInfo |
getStoredProcedureInfoForProcedure(java.lang.String fullyQualifiedProcedureName)
|
java.util.Collection |
getUniqueKeysInGroup(java.lang.Object groupID)
|
java.lang.String |
getUpdatePlan(java.lang.Object groupID)
|
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()
|
java.lang.String |
getVirtualDatabaseName()
|
QueryNode |
getVirtualPlan(java.lang.Object groupID)
|
java.util.List |
getXMLSchemas(java.lang.Object groupID)
|
java.util.Collection |
getXMLTempGroups(java.lang.Object groupID)
|
boolean |
groupSupports(java.lang.Object groupID,
int groupConstant)
|
boolean |
hasMaterialization(java.lang.Object groupID)
|
boolean |
isProcedure(java.lang.Object groupID)
|
boolean |
isTemporaryGroup(java.lang.Object groupID)
|
boolean |
isVirtualGroup(java.lang.Object groupID)
|
boolean |
isVirtualModel(java.lang.Object modelID)
|
boolean |
isXMLGroup(java.lang.Object groupID)
|
boolean |
modelSupports(java.lang.Object modelID,
int modelConstant)
|
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
getElementID
in interface QueryMetadataInterface
getElementID
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.Object getGroupID(java.lang.String groupName) throws MetaMatrixComponentException, QueryMetadataException
getGroupID
in interface QueryMetadataInterface
getGroupID
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.util.Collection getGroupsForPartialName(java.lang.String partialGroupName) throws MetaMatrixComponentException, QueryMetadataException
getGroupsForPartialName
in interface QueryMetadataInterface
getGroupsForPartialName
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.Object getModelID(java.lang.Object groupOrElementID) throws MetaMatrixComponentException, QueryMetadataException
getModelID
in interface QueryMetadataInterface
getModelID
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getFullName(java.lang.Object metadataID) throws MetaMatrixComponentException, QueryMetadataException
getFullName
in interface QueryMetadataInterface
getFullName
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getFullElementName(java.lang.String fullGroupName, java.lang.String shortElementName) throws MetaMatrixComponentException, QueryMetadataException
getFullElementName
in interface QueryMetadataInterface
getFullElementName
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getShortElementName(java.lang.String fullElementName) throws MetaMatrixComponentException, QueryMetadataException
getShortElementName
in interface QueryMetadataInterface
getShortElementName
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getGroupName(java.lang.String fullElementName) throws MetaMatrixComponentException, QueryMetadataException
getGroupName
in interface QueryMetadataInterface
getGroupName
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
QueryMetadataInterface.getGroupName(java.lang.String)
public java.util.List getElementIDsInGroupID(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
getElementIDsInGroupID
in interface QueryMetadataInterface
getElementIDsInGroupID
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.Object getGroupIDForElementID(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getGroupIDForElementID
in interface QueryMetadataInterface
getGroupIDForElementID
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public StoredProcedureInfo getStoredProcedureInfoForProcedure(java.lang.String fullyQualifiedProcedureName) throws MetaMatrixComponentException, QueryMetadataException
getStoredProcedureInfoForProcedure
in interface QueryMetadataInterface
getStoredProcedureInfoForProcedure
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getElementType(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getElementType
in interface QueryMetadataInterface
getElementType
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.Object getDefaultValue(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getDefaultValue
in interface QueryMetadataInterface
getDefaultValue
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.Object getMinimumValue(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getMinimumValue
in interface QueryMetadataInterface
getMinimumValue
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.Object getMaximumValue(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getMaximumValue
in interface QueryMetadataInterface
getMaximumValue
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public boolean isVirtualGroup(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
isVirtualGroup
in interface QueryMetadataInterface
isVirtualGroup
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public boolean isProcedure(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
isProcedure
in interface QueryMetadataInterface
isProcedure
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
com.metamatrix.query.metadata.QueryMetadataInterface#isProcedureInputElement(java.lang.Object)
public boolean isVirtualModel(java.lang.Object modelID) throws MetaMatrixComponentException, QueryMetadataException
isVirtualModel
in interface QueryMetadataInterface
isVirtualModel
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public QueryNode getVirtualPlan(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
getVirtualPlan
in interface QueryMetadataInterface
getVirtualPlan
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getInsertPlan(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
getInsertPlan
in interface QueryMetadataInterface
getInsertPlan
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getUpdatePlan(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
getUpdatePlan
in interface QueryMetadataInterface
getUpdatePlan
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getDeletePlan(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
getDeletePlan
in interface QueryMetadataInterface
getDeletePlan
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public boolean modelSupports(java.lang.Object modelID, int modelConstant) throws MetaMatrixComponentException, QueryMetadataException
modelSupports
in interface QueryMetadataInterface
modelSupports
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public boolean groupSupports(java.lang.Object groupID, int groupConstant) throws MetaMatrixComponentException, QueryMetadataException
groupSupports
in interface QueryMetadataInterface
groupSupports
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public boolean elementSupports(java.lang.Object elementID, int elementConstant) throws MetaMatrixComponentException, QueryMetadataException
elementSupports
in interface QueryMetadataInterface
elementSupports
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public int getMaxSetSize(java.lang.Object modelID) throws MetaMatrixComponentException, QueryMetadataException
getMaxSetSize
in interface QueryMetadataInterface
getMaxSetSize
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.util.Collection getIndexesInGroup(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
getIndexesInGroup
in interface QueryMetadataInterface
getIndexesInGroup
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.util.Collection getUniqueKeysInGroup(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
getUniqueKeysInGroup
in interface QueryMetadataInterface
getUniqueKeysInGroup
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.util.Collection getForeignKeysInGroup(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
getForeignKeysInGroup
in interface QueryMetadataInterface
getForeignKeysInGroup
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.Object getPrimaryKeyIDForForeignKeyID(java.lang.Object foreignKeyID) throws MetaMatrixComponentException, QueryMetadataException
getPrimaryKeyIDForForeignKeyID
in interface QueryMetadataInterface
getPrimaryKeyIDForForeignKeyID
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.util.Collection getAccessPatternsInGroup(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
getAccessPatternsInGroup
in interface QueryMetadataInterface
getAccessPatternsInGroup
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.util.List getElementIDsInIndex(java.lang.Object index) throws MetaMatrixComponentException, QueryMetadataException
getElementIDsInIndex
in interface QueryMetadataInterface
getElementIDsInIndex
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.util.List getElementIDsInKey(java.lang.Object key) throws MetaMatrixComponentException, QueryMetadataException
getElementIDsInKey
in interface QueryMetadataInterface
getElementIDsInKey
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.util.List getElementIDsInAccessPattern(java.lang.Object accessPattern) throws MetaMatrixComponentException, QueryMetadataException
getElementIDsInAccessPattern
in interface QueryMetadataInterface
getElementIDsInAccessPattern
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public boolean isXMLGroup(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
isXMLGroup
in interface QueryMetadataInterface
isXMLGroup
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public boolean isTemporaryGroup(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
MetaMatrixComponentException
QueryMetadataException
public boolean hasMaterialization(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
hasMaterialization
in interface QueryMetadataInterface
hasMaterialization
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
QueryMetadataInterface.hasMaterialization(java.lang.Object)
public java.lang.Object getMaterialization(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
getMaterialization
in interface QueryMetadataInterface
getMaterialization
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
QueryMetadataInterface.getMaterialization(java.lang.Object)
public java.lang.Object getMaterializationStage(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
getMaterializationStage
in interface QueryMetadataInterface
getMaterializationStage
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
QueryMetadataInterface.getMaterializationStage(java.lang.Object)
public MappingNode getMappingNode(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
getMappingNode
in interface QueryMetadataInterface
getMappingNode
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getVirtualDatabaseName() throws MetaMatrixComponentException, QueryMetadataException
getVirtualDatabaseName
in interface QueryMetadataInterface
getVirtualDatabaseName
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.util.Collection getXMLTempGroups(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
getXMLTempGroups
in interface QueryMetadataInterface
getXMLTempGroups
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public int getCardinality(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
getCardinality
in interface QueryMetadataInterface
getCardinality
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.util.List getXMLSchemas(java.lang.Object groupID) throws MetaMatrixComponentException, QueryMetadataException
getXMLSchemas
in interface QueryMetadataInterface
getXMLSchemas
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getNameInSource(java.lang.Object metadataID) throws MetaMatrixComponentException, QueryMetadataException
getNameInSource
in interface QueryMetadataInterface
getNameInSource
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public int getElementLength(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getElementLength
in interface QueryMetadataInterface
getElementLength
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public int getPosition(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getPosition
in interface QueryMetadataInterface
getPosition
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public int getPrecision(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getPrecision
in interface QueryMetadataInterface
getPrecision
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public int getRadix(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getRadix
in interface QueryMetadataInterface
getRadix
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getFormat(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getFormat
in interface QueryMetadataInterface
getFormat
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public int getScale(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getScale
in interface QueryMetadataInterface
getScale
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public int getDistinctValues(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getDistinctValues
in interface QueryMetadataInterface
getDistinctValues
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public int getNullValues(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getNullValues
in interface QueryMetadataInterface
getNullValues
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.lang.String getNativeType(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getNativeType
in interface QueryMetadataInterface
getNativeType
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public java.util.Properties getExtensionProperties(java.lang.Object metadataID) throws MetaMatrixComponentException, QueryMetadataException
getExtensionProperties
in interface QueryMetadataInterface
getExtensionProperties
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
public byte[] getBinaryVDBResource(java.lang.String resourcePath) throws MetaMatrixComponentException, QueryMetadataException
getBinaryVDBResource
in interface QueryMetadataInterface
getBinaryVDBResource
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
BasicQueryMetadata.getBinaryVDBResource(java.lang.String)
public java.lang.String getCharacterVDBResource(java.lang.String resourcePath) throws MetaMatrixComponentException, QueryMetadataException
getCharacterVDBResource
in interface QueryMetadataInterface
getCharacterVDBResource
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
BasicQueryMetadata.getCharacterVDBResource(java.lang.String)
public java.lang.String[] getVDBResourcePaths() throws MetaMatrixComponentException, QueryMetadataException
getVDBResourcePaths
in interface QueryMetadataInterface
getVDBResourcePaths
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
BasicQueryMetadata.getVDBResourcePaths()
public java.lang.String getModeledType(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getModeledType
in interface QueryMetadataInterface
getModeledType
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
QueryMetadataInterface.getModeledType(java.lang.Object)
public java.lang.String getModeledBaseType(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getModeledBaseType
in interface QueryMetadataInterface
getModeledBaseType
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
QueryMetadataInterface.getModeledBaseType(java.lang.Object)
public java.lang.String getModeledPrimitiveType(java.lang.Object elementID) throws MetaMatrixComponentException, QueryMetadataException
getModeledPrimitiveType
in interface QueryMetadataInterface
getModeledPrimitiveType
in class BasicQueryMetadata
MetaMatrixComponentException
QueryMetadataException
QueryMetadataInterface.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 |