Package rife.database.queries
Class Insert
java.lang.Object
rife.database.queries.Insert
Object representation of a SQL "INSERT" 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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Insert
protected 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
clear()
protected void
protected void
clone()
fieldCustom
(String field, String expression) fieldParameter
(String field) fieldParameter
(String field, String alias) fieldParameterCustom
(String field, String expression) fieldParameterCustom
(String field, String alias, String expression) 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.Capabilities
getHint()
getInto()
getSql()
protected boolean
void
setExcludeUnsupportedCapabilities
(boolean flag) protected void
setLimitParameter
(String limitParameter) protected void
setOffsetParameter
(String offsetParameter) toString()
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface rife.database.queries.Query
setExcludeUnsupportedCapabilities
-
Field Details
-
datasource_
-
sql_
-
excludeUnsupportedCapabilities_
protected boolean excludeUnsupportedCapabilities_
-
-
Constructor Details
-
Insert
-
-
Method Details
-
clear
public void clear() -
getHint
-
getInto
-
getFields
-
getCapabilities
public rife.database.capabilities.Capabilities getCapabilities()- Specified by:
getCapabilities
in interfaceQuery
-
getSql
- Specified by:
getSql
in interfaceQuery
- Throws:
DbQueryException
-
hint
-
into
-
fieldSubselect
-
_field
-
fieldParameter
-
fieldParameter
-
fieldParameterCustom
-
fieldParameterCustom
-
field
-
field
-
field
-
fieldCustom
-
fields
-
fields
- Throws:
DbQueryException
-
fieldsIncluded
- Throws:
DbQueryException
-
fieldsExcluded
- Throws:
DbQueryException
-
fieldsFiltered
public Insert fieldsFiltered(Object bean, String[] includedFields, String[] excludedFields) throws DbQueryException - Throws:
DbQueryException
-
fieldsParameters
- Throws:
DbQueryException
-
fieldsParametersExcluded
public Insert fieldsParametersExcluded(Class beanClass, String[] excludedFields) throws DbQueryException - Throws:
DbQueryException
-
clone
-
_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
-