com.metamatrix.query.eval
Interface LookupEvaluator

All Known Subinterfaces:
ProcessorDataManager
All Known Implementing Classes:
TempTableDataManager

public interface LookupEvaluator

Since:
5.0

Method Summary
 java.lang.Object lookupCodeValue(CommandContext context, java.lang.String codeTableName, java.lang.String returnElementName, java.lang.String keyElementName, java.lang.Object keyValue)
          Lookup a value from a cached code table.
 

Method Detail

lookupCodeValue

java.lang.Object lookupCodeValue(CommandContext context,
                                 java.lang.String codeTableName,
                                 java.lang.String returnElementName,
                                 java.lang.String keyElementName,
                                 java.lang.Object keyValue)
                                 throws BlockedException,
                                        MetaMatrixComponentException,
                                        MetaMatrixProcessingException
Lookup a value from a cached code table. If the code table is not loaded, it will be loaded on the first query. Code tables should be cached based on a combination of the codeTableName, returnElementName, and keyElementName. If the table is not loaded, a request will be made and the method should throw a BlockedException.

Parameters:
context - Context for processing
codeTableName - Name of the code table - must be a physical table
returnElementName - Name of the element to be returned in the code table
keyElementName - Name of the key element in the code table
keyValue - Key value to look up
Returns:
Return value for the specified key value, or null if not found
Throws:
BlockedException - If code table must be loaded
MetaMatrixComponentException - If an unexpected error occurs
MetaMatrixProcessingException


Copyright © 2009. All Rights Reserved.