org.eclipse.cosmos.dc.sample.components.query
Class CBEQuery
java.lang.Object
org.eclipse.cosmos.dc.common.api.impl.AbstractQuery
org.eclipse.cosmos.dc.sample.components.query.CBEQuery
- All Implemented Interfaces:
- IDataQueryService, IWireSource, IWireTerminal, CBEQueryCapability
public class CBEQuery
- extends AbstractQuery
- implements CBEQueryCapability
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CBEQuery
public CBEQuery(ContributionManager manager,
com.ibatis.sqlmap.client.SqlMapClient sqlMapper,
ProviderRegistry registry,
org.w3c.dom.Element binding)
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