COSMOS ${releaseVersion} data-collection Project
Public API Specification

org.eclipse.cosmos.dc.common.api.impl
Class AbstractQuery

java.lang.Object
  extended by org.eclipse.cosmos.dc.common.api.impl.AbstractQuery
All Implemented Interfaces:
IDataQueryService, IWireSource, IWireTerminal
Direct Known Subclasses:
CBEQuery, StatisticalQuery

public abstract class AbstractQuery
extends java.lang.Object
implements IDataQueryService, IWireSource


Field Summary
protected  IDataQueryService _proxy
           
protected  java.util.HashMap<java.lang.String,java.util.ArrayList<IDataQueryComponent>> queryMap
           
protected  java.util.ArrayList<IDataResponseService> responseList
           
protected  java.util.ArrayList<IWireTarget> targetList
           
 
Fields inherited from interface org.eclipse.cosmos.dc.common.api.IDataQueryService
DIALECTS_QNAME, NAMESPACE_URI, PAGE_QUERY_URI, PREFIX, QUERY_QNAME, QUERY_URI, SUPPORTED_DIALECTS_URI, SUPPORTED_QUERY_URI, SUPPORTED_RESPONSES_URI
 
Constructor Summary
AbstractQuery(ContributionManager manager)
           
 
Method Summary
abstract  boolean acceptWireTarget(IWireTarget target)
           
 void addResponse(IDataResponseService response)
           
 void addWireTarget(IWireTarget target)
           
 void dispatch(java.lang.Object obj)
           
 java.lang.reflect.Method getWireMethod()
           
 IWireTarget[] getWireTargets()
           
 void prepare()
           
 void setWireMethod(java.lang.reflect.Method wireMethod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.cosmos.dc.common.api.IDataQueryService
getSupportedDialects, getSupportedResponses, pageQuery, query, supportedQuery
 
Methods inherited from interface org.eclipse.cosmos.dc.common.spi.IWireSource
getOutputTypes
 

Field Detail

_proxy

protected IDataQueryService _proxy

targetList

protected java.util.ArrayList<IWireTarget> targetList

responseList

protected java.util.ArrayList<IDataResponseService> responseList

queryMap

protected java.util.HashMap<java.lang.String,java.util.ArrayList<IDataQueryComponent>> queryMap
Constructor Detail

AbstractQuery

public AbstractQuery(ContributionManager manager)
Method Detail

acceptWireTarget

public abstract boolean acceptWireTarget(IWireTarget target)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

prepare

public void prepare()
             throws java.lang.Exception
Specified by:
prepare in interface IWireTerminal
Throws:
java.lang.Exception

addResponse

public void addResponse(IDataResponseService response)
Specified by:
addResponse in interface IDataQueryService

addWireTarget

public void addWireTarget(IWireTarget target)
                   throws java.lang.Exception
Specified by:
addWireTarget in interface IWireSource
Throws:
java.lang.Exception

getWireTargets

public IWireTarget[] getWireTargets()
Specified by:
getWireTargets in interface IWireSource

setWireMethod

public void setWireMethod(java.lang.reflect.Method wireMethod)

getWireMethod

public java.lang.reflect.Method getWireMethod()

dispatch

public void dispatch(java.lang.Object obj)

COSMOS ${releaseVersion} data-collection Project
Public API Specification