Package rife.database.queries
Class AbstractWhereQuery<QueryType extends AbstractWhereQuery>
java.lang.Object
rife.database.queries.AbstractWhereQuery<QueryType>
- Direct Known Subclasses:
AbstractWhereGroup
,Delete
,Select
,Update
-
Field Summary
Modifier and TypeFieldDescriptionprotected Datasource
protected boolean
protected String
protected StringBuilder
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
_fieldSubselect
(Select query) protected void
_tableSubselect
(Select query) protected void
_unionSubselect
(Select query) protected void
_whereSubselect
(Select query) protected void
addFieldParameter
(String field) protected void
addWhereParameter
(String field) void
addWhereParameters
(List<String> parameters) void
addWhereParameters
(List<String> parameters) void
clear()
protected void
protected void
clone()
getWhere()
protected boolean
void
setExcludeUnsupportedCapabilities
(boolean flag) protected void
setLimitParameter
(String limitParameter) protected void
setOffsetParameter
(String offsetParameter) toString()
whereExcluded
(Object bean, String[] excludedFields) whereFiltered
(Object bean, String[] includedFields, String[] excludedFields) whereIncluded
(Object bean, String[] includedFields) whereParameter
(String field, String operator) whereParameter
(String field, String alias, String operator) whereParameterAnd
(String field, String operator) whereParameterAnd
(String field, String alias, String operator) whereParameterOr
(String field, String operator) whereParameterOr
(String field, String alias, String operator) whereParameters
(Class beanClass) whereParametersExcluded
(Class beanClass, String[] excludedFields) whereSubselect
(Select query) Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface rife.database.queries.Query
getCapabilities, getSql, setExcludeUnsupportedCapabilities
-
Field Details
-
where_
-
datasource_
-
sql_
-
excludeUnsupportedCapabilities_
protected boolean excludeUnsupportedCapabilities_
-
-
Method Details
-
clear
public void clear() -
getWhere
-
whereSubselect
-
where
-
startWhere
-
whereAnd
-
startWhereAnd
-
whereOr
-
startWhereOr
-
where
-
where
-
where
-
whereAnd
-
whereAnd
-
whereAnd
-
whereOr
-
whereOr
-
whereOr
-
whereParameter
-
whereParameter
-
whereParameterAnd
-
whereParameterAnd
-
whereParameterOr
-
whereParameterOr
-
where
- Throws:
DbQueryException
-
whereIncluded
- Throws:
DbQueryException
-
whereExcluded
- Throws:
DbQueryException
-
whereFiltered
public QueryType whereFiltered(Object bean, String[] includedFields, String[] excludedFields) throws DbQueryException - Throws:
DbQueryException
-
whereParameters
- Throws:
DbQueryException
-
whereParametersExcluded
public QueryType whereParametersExcluded(Class beanClass, String[] excludedFields) throws DbQueryException - Throws:
DbQueryException
-
clone
-
addWhereParameters
-
_fieldSubselect
-
_tableSubselect
-
_whereSubselect
-
_unionSubselect
-
getParameters
- Specified by:
getParameters
in interfaceQuery
-
addFieldParameter
-
clearWhereParameters
protected void clearWhereParameters() -
addWhereParameter
-
getWhereParameters
-
addWhereParameters
-
setLimitParameter
-
getLimitParameter
-
setOffsetParameter
-
getOffsetParameter
-
isLimitBeforeOffset
protected boolean isLimitBeforeOffset() -
getDatasource
-
setExcludeUnsupportedCapabilities
public void setExcludeUnsupportedCapabilities(boolean flag) - Specified by:
setExcludeUnsupportedCapabilities
in interfaceQuery
-
clearGenerated
protected void clearGenerated() -
toString
-