public class FreeTextQuery extends AbstractStructureQuery<String[],String[],net.idea.modbcum.q.conditions.StringCondition>
select idchemical,metric from ( (select idchemical,2 as metric from properties join property_values using(idproperty) join property_string using(idvalue_string) join structure using(idstructure) where name like "MA%" and value like "Reaction%" ) union (select idchemical,2 as metric from properties join property_values using(idproperty) join property_string using(idvalue_string) join structure using(idstructure) where value like "MA%" and name like "Reaction%" ) union (select idchemical,1 as metric from properties join property_values using(idproperty) join structure using(idstructure) where name like "MA%") union (select idchemical,1 as metric from property_values join property_string using(idvalue_string) join structure using(idstructure) where value like "MA%") union (select idchemical,1 as metric from properties join property_values using(idproperty) join structure using(idstructure) where name like "Reaction%") union (select idchemical,1 as metric from property_values join property_string using(idvalue_string) join structure using(idstructure) where value like "Reaction%") ) a
AbstractStructureQuery.FIELD_NAMES
Modifier and Type | Field and Description |
---|---|
protected static String |
pairSQL |
protected static String |
singleSQLName |
protected static String |
singleSQLValue |
protected static String |
sql |
chemicalsOnly, group, nanomaterial, order_descendant, where_group
condition, fieldname, id, logger, maxRecords, name, page, selected, value
Constructor and Description |
---|
FreeTextQuery() |
Modifier and Type | Method and Description |
---|---|
IStructureRecord |
getObject(ResultSet rs) |
List<net.idea.modbcum.i.query.QueryParam> |
getParameters() |
String |
getSQL() |
String |
toString() |
calculateMetric, isChemicalsOnly, isNanomaterial, isOrder_descendant, isPreferredStructure, isPrescreen, retrieveMetric, retrieveStrucType, retrieveValue, setChemicalsOnly, setNanomaterial, setOrder_descendant
getCategory, getCondition, getFieldname, getId, getKey, getName, getPage, getPageSize, getValue, isSelected, setCondition, setFieldname, setId, setName, setPage, setPageSize, setSelected, setValue, stringify, supportsPaging, test
protected static final String sql
protected static final String pairSQL
protected static final String singleSQLName
protected static final String singleSQLValue
public List<net.idea.modbcum.i.query.QueryParam> getParameters() throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
public String getSQL() throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitException
public IStructureRecord getObject(ResultSet rs) throws net.idea.modbcum.i.exceptions.AmbitException
getObject
in interface net.idea.modbcum.i.IRetrieval<IStructureRecord>
getObject
in class AbstractStructureQuery<String[],String[],net.idea.modbcum.q.conditions.StringCondition>
net.idea.modbcum.i.exceptions.AmbitException
public String toString()
toString
in class AbstractQuery<String[],String[],net.idea.modbcum.q.conditions.StringCondition,IStructureRecord>
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.