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
FieldsModifier and TypeFieldDescriptionprotected Datasourceprotected booleanprotected Stringprotected 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 voidaddFieldParameter(String field) protected voidaddWhereParameter(String field) voidaddWhereParameters(List<String> parameters) voidaddWhereParameters(List<String> parameters) voidclear()protected voidprotected voidclone()getWhere()protected booleanvoidsetExcludeUnsupportedCapabilities(boolean flag) protected voidsetLimitParameter(String limitParameter) protected voidsetOffsetParameter(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, waitMethods 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:
getParametersin 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:
setExcludeUnsupportedCapabilitiesin interfaceQuery
-
clearGenerated
protected void clearGenerated() -
toString
-