Package rife.database.queries
Class Update
Object representation of a SQL "UPDATE" query.
 
This object may be used to dynamically construct a SQL statement in a
 database-independent fashion. After it is finished, it may be executed using
 DbQueryManager.executeUpdate().
- Since:
- 1.0
- 
Field SummaryFieldsFields inherited from class rife.database.queries.AbstractWhereQuerywhere_
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected Updateprotected 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()fieldCustom(String field, String expression) fieldParameter(String field) fieldParameter(String field, String alias) fieldsExcluded(Object bean, String[] excludedFields) fieldsFiltered(Object bean, String[] includedFields, String[] excludedFields) fieldsIncluded(Object bean, String[] includedFields) fieldsParameters(Class beanClass) fieldsParametersExcluded(Class beanClass, String[] excludedFields) fieldSubselect(Select query) rife.database.capabilities.CapabilitiesgetHint()getSql()getTable()protected booleanvoidsetExcludeUnsupportedCapabilities(boolean flag) protected voidsetLimitParameter(String limitParameter) protected voidsetOffsetParameter(String offsetParameter) toString()Methods inherited from class rife.database.queries.AbstractWhereQuerygetWhere, startWhere, startWhereAnd, startWhereOr, where, where, where, where, where, whereAnd, whereAnd, whereAnd, whereAnd, whereExcluded, whereFiltered, whereIncluded, whereOr, whereOr, whereOr, whereOr, whereParameter, whereParameter, whereParameterAnd, whereParameterAnd, whereParameterOr, whereParameterOr, whereParameters, whereParametersExcluded, whereSubselectMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface rife.database.queries.QuerysetExcludeUnsupportedCapabilities
- 
Field Details- 
datasource_
- 
sql_
- 
excludeUnsupportedCapabilities_protected boolean excludeUnsupportedCapabilities_
 
- 
- 
Constructor Details- 
Update
 
- 
- 
Method Details- 
clearpublic void clear()- Specified by:
- clearin interface- Query
- Overrides:
- clearin class- AbstractWhereQuery<Update>
 
- 
getHint
- 
getTable
- 
getFields
- 
getCapabilitiespublic rife.database.capabilities.Capabilities getCapabilities()- Specified by:
- getCapabilitiesin interface- Query
 
- 
getSql
- 
hint
- 
table
- 
fieldSubselect
- 
_field
- 
fieldParameter
- 
fieldParameter
- 
field
- 
field
- 
fieldCustom
- 
field
- 
fields
- 
fields- Throws:
- DbQueryException
 
- 
fieldsIncluded- Throws:
- DbQueryException
 
- 
fieldsExcluded- Throws:
- DbQueryException
 
- 
fieldsFilteredpublic Update fieldsFiltered(Object bean, String[] includedFields, String[] excludedFields) throws DbQueryException - Throws:
- DbQueryException
 
- 
fieldsParameters- Throws:
- DbQueryException
 
- 
fieldsParametersExcludedpublic Update fieldsParametersExcluded(Class beanClass, String[] excludedFields) throws DbQueryException - Throws:
- DbQueryException
 
- 
clone- Overrides:
- clonein class- AbstractWhereQuery<Update>
 
- 
addWhereParameters
- 
_fieldSubselect
- 
_tableSubselect
- 
_whereSubselect
- 
_unionSubselect
- 
getParameters- Specified by:
- getParametersin interface- Query
 
- 
addFieldParameter
- 
clearWhereParametersprotected void clearWhereParameters()
- 
addWhereParameter
- 
getWhereParameters
- 
addWhereParameters
- 
setLimitParameter
- 
getLimitParameter
- 
setOffsetParameter
- 
getOffsetParameter
- 
isLimitBeforeOffsetprotected boolean isLimitBeforeOffset()
- 
getDatasource
- 
setExcludeUnsupportedCapabilitiespublic void setExcludeUnsupportedCapabilities(boolean flag) - Specified by:
- setExcludeUnsupportedCapabilitiesin interface- Query
 
- 
clearGeneratedprotected void clearGenerated()
- 
toString
 
-