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

org.eclipse.cosmos.dc.sample.components.query
Class CBEQuery

java.lang.Object
  extended by org.eclipse.cosmos.dc.common.api.impl.AbstractQuery
      extended by org.eclipse.cosmos.dc.sample.components.query.CBEQuery
All Implemented Interfaces:
IDataQueryService, IWireSource, IWireTerminal, CBEQueryCapability

public class CBEQuery
extends AbstractQuery
implements CBEQueryCapability


Field Summary
 
Fields inherited from class org.eclipse.cosmos.dc.common.api.impl.AbstractQuery
_proxy, queryMap, responseList, 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
CBEQuery(ContributionManager manager, com.ibatis.sqlmap.client.SqlMapClient sqlMapper, ProviderRegistry registry, org.w3c.dom.Element binding)
           
 
Method Summary
 boolean acceptWireTarget(IWireTarget target)
           
 IDataQueryResult getAllCBE(java.lang.String dataset)
          Get the list of all CBEs in database
 IDataQueryResult getCBECountBySeverity(java.lang.String dataset)
          Get the count of CBE of each severity grouped by source component
 java.lang.Class[] getOutputTypes()
           
 java.lang.String[] getSupportedDialects()
           
 java.lang.String[] getSupportedResponses()
           
 IDataQueryResult pageQuery(java.lang.String dialect, java.lang.String response, java.lang.String queryString, java.lang.String dataSource, int max, int start)
           
 IDataQueryResult query(java.lang.String dialect, java.lang.String response, java.lang.String queryString, java.lang.String dataSource)
           
 boolean supportedQuery(java.lang.String dialect, java.lang.String response)
           
 
Methods inherited from class org.eclipse.cosmos.dc.common.api.impl.AbstractQuery
addResponse, addWireTarget, dispatch, getWireMethod, getWireTargets, prepare, setWireMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CBEQuery

public CBEQuery(ContributionManager manager,
                com.ibatis.sqlmap.client.SqlMapClient sqlMapper,
                ProviderRegistry registry,
                org.w3c.dom.Element binding)
Method Detail

acceptWireTarget

public boolean acceptWireTarget(IWireTarget target)
                         throws java.lang.Exception
Specified by:
acceptWireTarget in class AbstractQuery
Throws:
java.lang.Exception

getSupportedDialects

public java.lang.String[] getSupportedDialects()
Specified by:
getSupportedDialects in interface IDataQueryService

getSupportedResponses

public java.lang.String[] getSupportedResponses()
Specified by:
getSupportedResponses in interface IDataQueryService

pageQuery

public IDataQueryResult pageQuery(java.lang.String dialect,
                                  java.lang.String response,
                                  java.lang.String queryString,
                                  java.lang.String dataSource,
                                  int max,
                                  int start)
                           throws java.lang.Exception
Specified by:
pageQuery in interface IDataQueryService
Throws:
java.lang.Exception

query

public IDataQueryResult query(java.lang.String dialect,
                              java.lang.String response,
                              java.lang.String queryString,
                              java.lang.String dataSource)
                       throws java.lang.Exception
Specified by:
query in interface IDataQueryService
Throws:
java.lang.Exception

supportedQuery

public boolean supportedQuery(java.lang.String dialect,
                              java.lang.String response)
Specified by:
supportedQuery in interface IDataQueryService

getOutputTypes

public java.lang.Class[] getOutputTypes()
Specified by:
getOutputTypes in interface IWireSource

getAllCBE

public IDataQueryResult getAllCBE(java.lang.String dataset)
                           throws java.lang.Exception
Description copied from interface: CBEQueryCapability
Get the list of all CBEs in database

Specified by:
getAllCBE in interface CBEQueryCapability
Returns:
Throws:
java.lang.Exception

getCBECountBySeverity

public IDataQueryResult getCBECountBySeverity(java.lang.String dataset)
                                       throws java.lang.Exception
Description copied from interface: CBEQueryCapability
Get the count of CBE of each severity grouped by source component

Specified by:
getCBECountBySeverity in interface CBEQueryCapability
Returns:
IDataQueryResult
Throws:
java.lang.Exception

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