public class XTabChartGenerator extends ChartGenerator<ISourceDataset>
select group_concat(distinct b),a-mod(a,10), count(*)
from (
select a,b from
(
select value_num as a,idchemical from query_results
join property_values using(idstructure) join properties using(idproperty)
where name = "LLNA EC3 %" and idquery=2
group by idchemical,value_num
) as X
join
(
select value as b,idchemical from query_results
join property_values using(idstructure) join property_string using(idvalue_string) join properties using(idproperty)
where name = "Michael Acceptors" and idquery=2
group by idchemical,value_num
) as Y
using(idchemical)
) as p
group by b,a-mod(a,10)
select concat(
'select a-mod(a,10)','\n'
, group_concat(distinct
concat(
', sum(','\n'
, ' if(b=\"',value,'\"\n'
, ' , 1','\n'
, ' , null','\n'
, ' )\n'
, ' )'
, ' "',value,'"\n'
)
order by value
separator ''
)
,',sum(if(b is null, 1, null)) NA '
,'from (','\n'
,' select a,b from','\n'
,' (','\n'
,' select value_num as a,idchemical from query_results','\n'
,' join property_values using(idstructure) join properties using(idproperty)','\n'
,' where name = "LLNA EC3 %" and idquery=2','\n'
,' group by idchemical,value_num','\n'
,' ) as X','\n'
,' left join','\n'
,' (','\n'
,' select value as b,idchemical from query_results','\n'
,' join property_values using(idstructure) join property_string using(idvalue_string) join properties using(idproperty)','\n'
,' where name = "toxTree.tree.cramer.CramerRules" and idquery=2','\n'
,' group by idchemical,value_num','\n'
,' ) as Y','\n'
,' using(idchemical)','\n'
,') as p','\n'
,'group by a-mod(a,10)','\n'
) statement
from query_results join property_values using(idstructure) left join property_string using(idvalue_string) join properties using(idproperty)
where name = "toxTree.tree.cramer.CramerRules" and idquery=2| Modifier and Type | Field and Description |
|---|---|
protected double |
binWidth |
protected Property |
propertyX |
protected Property |
propertyY |
protected static String |
sql |
| Constructor and Description |
|---|
XTabChartGenerator() |
| Modifier and Type | Method and Description |
|---|---|
double |
getBinWidth() |
Property |
getPropertyX() |
Property |
getPropertyY() |
void |
open() |
BufferedImage |
process(ISourceDataset target) |
void |
setBinWidth(double binWidth) |
void |
setPropertyX(Property propertyX) |
void |
setPropertyY(Property propertyY) |
getHeight, getParam, getWidth, hasLegend, isLogX, isLogY, isThumbnail, setHeight, setLegend, setLogX, setLogY, setParam, setThumbnail, setWidthclose, getConnection, isCloseConnection, isEnabled, setCloseConnection, setConnectionaddPropertyChangeListener, addPropertyChangeListener, getID, removePropertyChangeListener, removePropertyChangeListener, setEnabled, toStringprotected Property propertyX
protected Property propertyY
protected double binWidth
protected static final String sql
public Property getPropertyX()
public void setPropertyX(Property propertyX)
public Property getPropertyY()
public void setPropertyY(Property propertyY)
public double getBinWidth()
public void setBinWidth(double binWidth)
public BufferedImage process(ISourceDataset target) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitExceptionpublic void open()
throws net.idea.modbcum.i.exceptions.DbAmbitException
open in interface net.idea.modbcum.i.processors.IProcessor<ISourceDataset,BufferedImage>open in class net.idea.modbcum.p.DefaultAmbitProcessor<ISourceDataset,BufferedImage>net.idea.modbcum.i.exceptions.DbAmbitExceptionCopyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.