Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.6.0)

E17060-03


oracle.odi.domain.xrefs.expression.contexts
Class CachingExpressionContextDecorator

java.lang.Object
  extended by oracle.odi.domain.xrefs.expression.contexts.CachingExpressionContextDecorator

All Implemented Interfaces:
IExpressionContext

public class CachingExpressionContextDecorator
extends java.lang.Object
implements IExpressionContext

Implementation of IExpressionContext that provides caching of SnpsExpressionTags for a concrete IExpressionContext instance.

This implementation guarantee that multiple calls to getSnpsExpressionTags(SnpsLanguage) will compute expression tags only once until caller invoke resetCache() or resetCache(SnpsLanguage).

Since:
11.1.1.3.0

Constructor Summary
CachingExpressionContextDecorator(IExpressionContext pContext)
          Construct a new CachingExpressionContextDecorator.

 

Method Summary
 com.sunopsis.language.parser.SnpsExpressionTag[] getSnpsExpressionTags(com.sunopsis.language.SnpsLanguage pSnpsLanguage)
          Obtains the expression tags relative to this context.
 boolean isCachePopulated(com.sunopsis.language.SnpsLanguage pSnpsLanguage)
           
 void resetCache()
          Reset cache of expression tags for all languages.
 void resetCache(com.sunopsis.language.SnpsLanguage pSnpsLanguage)
          Reset cache of expression tags for the given language.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

CachingExpressionContextDecorator

public CachingExpressionContextDecorator(IExpressionContext pContext)
Construct a new CachingExpressionContextDecorator.
Parameters:
pContext - the context to manage caching for

Method Detail

getSnpsExpressionTags

public com.sunopsis.language.parser.SnpsExpressionTag[] getSnpsExpressionTags(com.sunopsis.language.SnpsLanguage pSnpsLanguage)
Description copied from interface: IExpressionContext
Obtains the expression tags relative to this context.
Specified by:
getSnpsExpressionTags in interface IExpressionContext
Parameters:
pSnpsLanguage - the language that will be used when manipulating the expression tags (i.e. when building the Expression)
Returns:
an array of expression tags

isCachePopulated

public boolean isCachePopulated(com.sunopsis.language.SnpsLanguage pSnpsLanguage)

resetCache

public void resetCache(com.sunopsis.language.SnpsLanguage pSnpsLanguage)
Reset cache of expression tags for the given language.
Parameters:
pSnpsLanguage - the language

resetCache

public void resetCache()
Reset cache of expression tags for all languages.

Skip navigation links

Oracle® Data Integrator Java API Reference
11g Release 1 (11.1.1.6.0)

E17060-03


Copyright © 2011, Oracle and/or its affiliates. All rights reserved.