com.metamatrix.modeler.transformation.metadata
Class TransformationMetadataFacade
java.lang.Object
com.metamatrix.modeler.transformation.metadata.TransformationMetadataFacade
- All Implemented Interfaces:
- QueryMetadataInterface
public class TransformationMetadataFacade
- extends java.lang.Object
- implements QueryMetadataInterface
Modelers implementation of QueryMetadataInterface that reads columns, groups, modeles etc.
index files for various metadata properties.
TransformationMetadataFacade should only be used when the metadata is read only. It is used
in the modeler with in the context of validating a Query(when the metadata is read only).
|
Field Summary |
static int |
DEFAULT_SPACELIMIT
Default amount of space in the cache |
static int |
DEFAULT_SPACELIMIT_PARTIAL_NAME_CACHE
Partial name cache is useful when the user executes same kind of
partial name queries many times, number of such queries will not be many
so limiting this cachesize to 100. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_SPACELIMIT
public static final int DEFAULT_SPACELIMIT
- Default amount of space in the cache
- See Also:
- Constant Field Values
DEFAULT_SPACELIMIT_PARTIAL_NAME_CACHE
public static final int DEFAULT_SPACELIMIT_PARTIAL_NAME_CACHE
- Partial name cache is useful when the user executes same kind of
partial name queries many times, number of such queries will not be many
so limiting this cachesize to 100.
- See Also:
- Constant Field Values
TransformationMetadataFacade
public TransformationMetadataFacade(TransformationMetadata delegate)
TransformationMetadataFacade
public TransformationMetadataFacade(TransformationMetadata delegate,
int cacheSize)
getElementID
public java.lang.Object getElementID(java.lang.String elementName)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getElementID in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getGroupID
public java.lang.Object getGroupID(java.lang.String groupName)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getGroupID in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getGroupsForPartialName
public java.util.Collection getGroupsForPartialName(java.lang.String partialGroupName)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getGroupsForPartialName in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getModelID
public java.lang.Object getModelID(java.lang.Object groupOrElementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getModelID in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getFullName
public java.lang.String getFullName(java.lang.Object metadataID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getFullName in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getFullElementName
public java.lang.String getFullElementName(java.lang.String fullGroupName,
java.lang.String shortElementName)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getFullElementName in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getShortElementName
public java.lang.String getShortElementName(java.lang.String fullElementName)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getShortElementName in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getGroupName
public java.lang.String getGroupName(java.lang.String fullElementName)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getGroupName in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getElementIDsInGroupID
public java.util.List getElementIDsInGroupID(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getElementIDsInGroupID in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getGroupIDForElementID
public java.lang.Object getGroupIDForElementID(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getGroupIDForElementID in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getStoredProcedureInfoForProcedure
public StoredProcedureInfo getStoredProcedureInfoForProcedure(java.lang.String fullyQualifiedProcedureName)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getStoredProcedureInfoForProcedure in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getElementType
public java.lang.String getElementType(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getElementType in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getDefaultValue
public java.lang.Object getDefaultValue(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getDefaultValue in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getMaximumValue
public java.lang.Object getMaximumValue(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getMaximumValue in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getMinimumValue
public java.lang.Object getMinimumValue(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getMinimumValue in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getPosition
public int getPosition(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getPosition in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getPrecision
public int getPrecision(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getPrecision in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getRadix
public int getRadix(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getRadix in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getFormat
public java.lang.String getFormat(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getFormat in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getScale
public int getScale(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getScale in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getDistinctValues
public int getDistinctValues(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getDistinctValues in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getNullValues
public int getNullValues(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getNullValues in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
isVirtualGroup
public boolean isVirtualGroup(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
isVirtualGroup in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
hasMaterialization
public boolean hasMaterialization(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
hasMaterialization in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException- Since:
- 4.2
- See Also:
QueryMetadataInterface.hasMaterialization(java.lang.Object)
getMaterialization
public java.lang.Object getMaterialization(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getMaterialization in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException- Since:
- 4.2
- See Also:
QueryMetadataInterface.getMaterialization(java.lang.Object)
getMaterializationStage
public java.lang.Object getMaterializationStage(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getMaterializationStage in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException- Since:
- 4.2
- See Also:
QueryMetadataInterface.getMaterializationStage(java.lang.Object)
isVirtualModel
public boolean isVirtualModel(java.lang.Object modelID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
isVirtualModel in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
isProcedure
public boolean isProcedure(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
isProcedure in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getVirtualPlan
public QueryNode getVirtualPlan(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getVirtualPlan in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getInsertPlan
public java.lang.String getInsertPlan(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getInsertPlan in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getUpdatePlan
public java.lang.String getUpdatePlan(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getUpdatePlan in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getDeletePlan
public java.lang.String getDeletePlan(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getDeletePlan in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
modelSupports
public boolean modelSupports(java.lang.Object modelID,
int modelConstant)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
modelSupports in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
groupSupports
public boolean groupSupports(java.lang.Object groupID,
int groupConstant)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
groupSupports in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
elementSupports
public boolean elementSupports(java.lang.Object elementID,
int elementConstant)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
elementSupports in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getMaxSetSize
public int getMaxSetSize(java.lang.Object modelID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getMaxSetSize in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getIndexesInGroup
public java.util.Collection getIndexesInGroup(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getIndexesInGroup in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getUniqueKeysInGroup
public java.util.Collection getUniqueKeysInGroup(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getUniqueKeysInGroup in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getForeignKeysInGroup
public java.util.Collection getForeignKeysInGroup(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getForeignKeysInGroup in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getPrimaryKeyIDForForeignKeyID
public java.lang.Object getPrimaryKeyIDForForeignKeyID(java.lang.Object foreignKeyID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getPrimaryKeyIDForForeignKeyID in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getAccessPatternsInGroup
public java.util.Collection getAccessPatternsInGroup(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getAccessPatternsInGroup in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getElementIDsInIndex
public java.util.List getElementIDsInIndex(java.lang.Object index)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getElementIDsInIndex in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getElementIDsInKey
public java.util.List getElementIDsInKey(java.lang.Object key)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getElementIDsInKey in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getElementIDsInAccessPattern
public java.util.List getElementIDsInAccessPattern(java.lang.Object accessPattern)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getElementIDsInAccessPattern in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
isXMLGroup
public boolean isXMLGroup(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
isXMLGroup in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getMappingNode
public MappingNode getMappingNode(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getMappingNode in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getVirtualDatabaseName
public java.lang.String getVirtualDatabaseName()
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getVirtualDatabaseName in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getXMLTempGroups
public java.util.Collection getXMLTempGroups(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getXMLTempGroups in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getCardinality
public int getCardinality(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getCardinality in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getXMLSchemas
public java.util.List getXMLSchemas(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getXMLSchemas in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getNameInSource
public java.lang.String getNameInSource(java.lang.Object metadataID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getNameInSource in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getElementLength
public int getElementLength(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getElementLength in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getExtensionProperties
public java.util.Properties getExtensionProperties(java.lang.Object metadataID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getExtensionProperties in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getNativeType
public java.lang.String getNativeType(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getNativeType in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getBinaryVDBResource
public byte[] getBinaryVDBResource(java.lang.String resourcePath)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getBinaryVDBResource in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getCharacterVDBResource
public java.lang.String getCharacterVDBResource(java.lang.String resourcePath)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getCharacterVDBResource in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getVDBResourcePaths
public java.lang.String[] getVDBResourcePaths()
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getVDBResourcePaths in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getModeledType
public java.lang.String getModeledType(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getModeledType in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException- Since:
- 5.0
- See Also:
QueryMetadataInterface.getModeledType(java.lang.Object)
getModeledBaseType
public java.lang.String getModeledBaseType(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getModeledBaseType in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException- Since:
- 5.0
- See Also:
QueryMetadataInterface.getModeledBaseType(java.lang.Object)
getModeledPrimitiveType
public java.lang.String getModeledPrimitiveType(java.lang.Object elementID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getModeledPrimitiveType in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException- Since:
- 5.0
- See Also:
QueryMetadataInterface.getModeledPrimitiveType(java.lang.Object)
isTemporaryTable
public boolean isTemporaryTable(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
isTemporaryTable in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getDelegate
public TransformationMetadata getDelegate()
- Return the IndexSelector reference
- Returns:
addToMetadataCache
public java.lang.Object addToMetadataCache(java.lang.Object metadataID,
java.lang.String key,
java.lang.Object value)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
addToMetadataCache in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
getFromMetadataCache
public java.lang.Object getFromMetadataCache(java.lang.Object metadataID,
java.lang.String key)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
getFromMetadataCache in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
isScalarGroup
public boolean isScalarGroup(java.lang.Object groupID)
throws MetaMatrixComponentException,
QueryMetadataException
- Specified by:
isScalarGroup in interface QueryMetadataInterface
- Throws:
MetaMatrixComponentException
QueryMetadataException
Copyright © 2009. All Rights Reserved.