org.apache.tuscany.sca.implementation.xquery
Interface XQueryImplementation

All Superinterfaces:
Base, ComponentType, Implementation
All Known Implementing Classes:
XQueryImplementationImpl

public interface XQueryImplementation
extends Implementation

Class representing the XQuery implementation type


Method Summary
 java.util.Map<java.lang.String,XQueryExpression> getCompiledExpressionsCache()
          This map is a kind of cache for function invocations.
 java.lang.String getLocation()
          Location of the XQuery implementation file
 java.lang.String getLocationURL()
           
 java.lang.String getXqExpression()
          The XQuery expression that is loaded from the XQuery implementation file
 java.util.Map<java.lang.reflect.Method,java.lang.String> getXqExpressionExtensionsMap()
          The XQuery expression should be extended for with additional script, which provides the external variables needed to invoke a function.
 void setLocation(java.lang.String location)
           
 void setLocationURL(java.lang.String location)
           
 void setXqExpression(java.lang.String expression)
           
 
Methods inherited from interface org.apache.tuscany.sca.assembly.ComponentType
getConstrainingType, getProperties, getReferences, getServices, getURI, setConstrainingType, setURI
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
isUnresolved, setUnresolved
 

Method Detail

getLocation

java.lang.String getLocation()
Location of the XQuery implementation file

Returns:

setLocation

void setLocation(java.lang.String location)

getLocationURL

java.lang.String getLocationURL()

setLocationURL

void setLocationURL(java.lang.String location)

getXqExpression

java.lang.String getXqExpression()
The XQuery expression that is loaded from the XQuery implementation file

Returns:

setXqExpression

void setXqExpression(java.lang.String expression)

getXqExpressionExtensionsMap

java.util.Map<java.lang.reflect.Method,java.lang.String> getXqExpressionExtensionsMap()
The XQuery expression should be extended for with additional script, which provides the external variables needed to invoke a function. In this way for each function that is defined in the original XQuery expression additional expression is defined, which can invoke this function, using external variables as input. These expression extensions are stored in this map. It provides for each method of a service interface that is implemented by this component type corresponding expression extension

Returns:

getCompiledExpressionsCache

java.util.Map<java.lang.String,XQueryExpression> getCompiledExpressionsCache()
This map is a kind of cache for function invocations. If a given XQuery function of this implementation has been invoked already its compiled expression can be reused. In this manner the performance can be increased

Returns: