Q - public abstract class QueryCombined<T> extends Object implements net.idea.modbcum.i.IQueryRetrieval<T>
IQueryObject, combined with logical "and or logical "or".| Modifier and Type | Class and Description |
|---|---|
static class |
QueryCombined.COMBINE |
| Modifier and Type | Field and Description |
|---|---|
protected QueryCombined.COMBINE |
combine_queries |
protected Integer |
id |
protected static String |
join |
protected ArrayList<net.idea.modbcum.i.IQueryRetrieval<T>> |
queries |
protected net.idea.modbcum.i.IQueryObject<T> |
scope |
protected static String |
union |
| Constructor and Description |
|---|
QueryCombined() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(net.idea.modbcum.i.IQueryRetrieval<T> query) |
double |
calculateMetric(T object) |
net.idea.modbcum.i.IQueryRetrieval<T> |
get(int index) |
String |
getCategory() |
QueryCombined.COMBINE |
getCombine_queries() |
Integer |
getId() |
String |
getKey() |
protected String |
getMainSQL() |
T |
getObject(ResultSet rs) |
List<net.idea.modbcum.i.query.QueryParam> |
getParameters()
SQL Parameters
|
List<net.idea.modbcum.i.IQueryRetrieval<T>> |
getQueries() |
net.idea.modbcum.i.IQueryObject<T> |
getScope() |
protected abstract String |
getScopeSQL() |
protected String |
getSQL_and()
SQLs of simple queries, join-ed
|
protected String |
getSQL_or()
SQLs of simple queries, union-ed.
|
String |
getSQL() |
protected String |
groupBy() |
boolean |
isCombine_as_and() |
boolean |
isPrescreen() |
protected void |
join(net.idea.modbcum.i.IQueryObject<T> q,
String qname,
StringBuffer b) |
protected abstract String |
joinOn() |
void |
setCombine_as_and(boolean combine_as_and) |
void |
setCombine_queries(QueryCombined.COMBINE combine_queries) |
void |
setId(Integer id) |
void |
setScope(net.idea.modbcum.i.IQueryObject<T> scope) |
int |
size() |
boolean |
supportsPaging() |
String |
toString() |
protected Integer id
protected static final String union
protected static final String join
protected net.idea.modbcum.i.IQueryObject<T> scope
protected QueryCombined.COMBINE combine_queries
public QueryCombined.COMBINE getCombine_queries()
public void setCombine_queries(QueryCombined.COMBINE combine_queries)
public void setId(Integer id)
setId in interface net.idea.modbcum.i.IQueryObject<T>public String getSQL() throws net.idea.modbcum.i.exceptions.AmbitException
getSQL in interface net.idea.modbcum.i.IQueryObject<T>net.idea.modbcum.i.exceptions.AmbitExceptionprotected String getSQL_or() throws net.idea.modbcum.i.exceptions.AmbitException
select ?,idstructure,1 from structure where idstructure <= ? union select ?,idstructure,1 from structure where idstructure between ? and ?
net.idea.modbcum.i.exceptions.AmbitExceptionprotected abstract String joinOn()
protected String groupBy()
protected String getMainSQL()
protected String getSQL_and() throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitExceptionprotected abstract String getScopeSQL()
protected void join(net.idea.modbcum.i.IQueryObject<T> q, String qname, StringBuffer b) throws net.idea.modbcum.i.exceptions.AmbitException
net.idea.modbcum.i.exceptions.AmbitExceptionpublic List<net.idea.modbcum.i.query.QueryParam> getParameters() throws net.idea.modbcum.i.exceptions.AmbitException
getParameters in interface net.idea.modbcum.i.IQueryObject<T>net.idea.modbcum.i.exceptions.AmbitExceptionpublic boolean isCombine_as_and()
public void setCombine_as_and(boolean combine_as_and)
public net.idea.modbcum.i.IQueryObject<T> getScope()
public void setScope(net.idea.modbcum.i.IQueryObject<T> scope)
public void add(net.idea.modbcum.i.IQueryRetrieval<T> query)
public net.idea.modbcum.i.IQueryRetrieval<T> get(int index)
public int size()
public T getObject(ResultSet rs) throws net.idea.modbcum.i.exceptions.AmbitException
getObject in interface net.idea.modbcum.i.IRetrieval<T>net.idea.modbcum.i.exceptions.AmbitExceptionpublic boolean isPrescreen()
isPrescreen in interface net.idea.modbcum.i.IQueryRetrieval<T>public double calculateMetric(T object)
calculateMetric in interface net.idea.modbcum.i.IQueryRetrieval<T>public String getCategory()
getCategory in interface net.idea.modbcum.i.IQueryObject<T>public boolean supportsPaging()
supportsPaging in interface net.idea.modbcum.i.IQueryObject<T>Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.