32 #include "nsISupports.idl"
46 [scriptable,
uuid(c214b05b-0aa8-4bf9-aa0f-a1b1ff646539)]
94 void addJoin(in
unsigned long aJoinType,
95 in AString aJoinedTableName,
96 in AString aJoinedTableAlias,
97 in AString aJoinedColumnName,
98 in AString aJoinToTableName,
99 in AString aJoinToColumnName);
120 in AString aJoinedTableName,
121 in AString aJoinedTableAlias,
122 in AString aJoinedColumnName,
123 in AString aJoinToTableName,
124 in AString aJoinToColumnName,
125 in
boolean aRequiresFromTableIndexHint,
126 in
boolean aRequiresToTableIndexHint);
141 in AString aJoinedTableAlias,
142 in AString aJoinedColumnName,
143 in AString aJoinToTableName,
144 in AString aJoinToColumnName);
155 in AString aJoinedTableName,
156 in AString aJoinedTableAlias,
183 [scriptable,
uuid(ec1c4745-a744-4335-af6f-5caafacb4249)]
207 in AString aSrcColumnName,
208 in
unsigned long aMatchType,
212 in AString aSrcColumnName,
213 in AString aLeftValue,
214 in AString aRightValue);
217 in AString aSrcColumnName,
218 in AString aLeftValue,
219 in AString aRightValue);
230 in AString aSrcColumnName,
231 in
unsigned long aMatchType,
243 in AString aSrcColumnName,
244 in
unsigned long aMatchType,
245 in
long long aValue);
255 in AString aSrcColumnName,
256 in
unsigned long aMatchType);
267 in AString aLeftColumnName,
268 in
unsigned long aMatchType,
269 in AString aRightTableName,
270 in AString aRightColumnName);
278 in AString aSrcColumnName);
287 in AString aSrcColumnName,
288 in
unsigned long aMatchType);
312 [scriptable,
uuid(b91ae93b-9c1e-427c-a751-5c0c19fcdbc3)]
337 in AString aColumnName);
350 void addOrder(in AString aTableName,
351 in AString aColumnName,
352 in
boolean aAscending);
366 in AString aColumnName);
374 [scriptable,
uuid(8c584d54-2fa1-4965-8345-f1eda5a1e304)]
428 [scriptable,
uuid(68991dbd-83f0-4df9-b3f6-89d0982ed491)]
455 [scriptable,
uuid(73a18b36-2eee-429e-9cda-1f4428c3afb5)]
469 [scriptable,
uuid(442c1d9d-4e8e-4aa1-9124-2f700b625a45)]
479 [scriptable,
uuid(51992f09-7b9a-4a91-b708-b4551c25acf9)]
void addString(in AString aValue)
Adds a string value to the list of IN criteria.
void addJoin(in unsigned long aJoinType, in AString aJoinedTableName, in AString aJoinedTableAlias, in AString aJoinedColumnName, in AString aJoinToTableName, in AString aJoinToColumnName)
Add a join to the query.
attribute boolean distinct
Is the query distinct?
sbISQLBuilderCriterion createMatchCriterionString(in AString aTableName, in AString aSrcColumnName, in unsigned long aMatchType, in AString aValue)
Create a match criterion with an AString datatype.
const unsigned long MATCH_NOTLIKE
attribute boolean limitIsParameter
Is the limit clause a parameter?
void reset()
Clears out query configuration to this instance can be reused.
void addRandomOrder()
Add a random order clause to the query.
void clearColumns()
Clears added columns.
void addSubquery(in sbISQLSelectBuilder aSubquery)
Adds a subquery to the IN list.
sbISQLBuilderCriterion createMatchCriterionParameter(in AString aTableName, in AString aSrcColumnName, in unsigned long aMatchType)
Create a match criterion that tests against a parameter placeholder.
void addGroupBy(in AString aTableName, in AString aColumnName)
Add an group by clause to the query.
void addColumn(in AString aTableName, in AString aColumnName)
Add a column to the output column list.
sbISQLBuilderCriterion createMatchCriterionNotBetweenString(in AString aTableName, in AString aSrcColumnName, in AString aLeftValue, in AString aRightValue)
void addLong(in long aValue)
Adds a long value to the list of IN criteria.
attribute AString baseTableAlias
The query's base table's alias.
const unsigned long MATCH_LESSEQUAL
void addValueLong(in long aValue)
Add a long value to the value list.
Interface for building WHERE expressions.
void addSubqueryJoin(in unsigned long aJoinType, in sbISQLSelectBuilder aJoinedSubquery, in AString aJoinedTableAlias, in AString aJoinedColumnName, in AString aJoinToTableName, in AString aJoinToColumnName)
Add a subquery join join to the query.
Interface for "in" SQL critera.
attribute AString tableName
Table to update.
Interface for building SELECT statements.
void addSubquery(in sbISQLSelectBuilder aSubquery, in AString aAlias)
Add a subquery to the from clause.
sbISQLBuilderCriterion createMatchCriterionBetweenString(in AString aTableName, in AString aSrcColumnName, in AString aLeftValue, in AString aRightValue)
Base interface for SQL building components.
attribute long offset
Value for the offset clause.
sbISQLBuilderCriterion createAndCriterion(in sbISQLBuilderCriterion aLeft, in sbISQLBuilderCriterion aRight)
Create a match criterion that is the logical AND of two critera.
sbISQLBuilderCriterion createMatchCriterionLongLong(in AString aTableName, in AString aSrcColumnName, in unsigned long aMatchType, in long long aValue)
Create a match criterion with a long long (64 bit) datatype.
const unsigned long JOIN_LEFT_OUTER
attribute long limit
Value for the limit clause.
void addAssignmentString(in AString aColumnName, in AString aValue)
Add a string assignment to the set clause.
const unsigned long MATCH_LESS
AString toString()
Return the generated SQL statement for the query.
const unsigned long MATCH_MATCH
const unsigned long JOIN_INNER
const unsigned long MATCH_LIKE
sbISQLBuilderCriterion createMatchCriterionLong(in AString aTableName, in AString aSrcColumnName, in unsigned long aMatchType, in long aValue)
Create a match criterion with a long (32 bit) datatype.
void addValueParameter()
Add a parameter to the value list.
void addColumn(in AString aColumnName)
Add a column to the insert list.
attribute boolean offsetIsParameter
Is the offset clause a parameter?
const unsigned long JOIN_LEFT
const unsigned long MATCH_GREATEREQUAL
Interface for SQL critera. This interface has no public methods as it is used only as a return type f...
attribute sbISQLSelectBuilder select
Select statement to use as the source of data for the insert. This can be used in place of the value ...
void addAssignmentParameter(in AString aColumnName)
Add a parameter assignment to the set clause.
const unsigned long MATCH_NOTEQUALS
sbISQLBuilderCriterion createMatchCriterionTable(in AString aLeftTableName, in AString aLeftColumnName, in unsigned long aMatchType, in AString aRightTableName, in AString aRightColumnName)
Create a match criterion that tests against a table column.
void addValueNull()
Add a null to the value list.
void addValueRaw(in AString aValue)
Add a raw string the value list. Note that this does not do any escaping of the value so please only ...
attribute AString tableName
Table to delete from.
void removeCriterion(in sbISQLBuilderCriterion aCriterion)
Remve a criteria constraint from the query.
Interface for building UPDATE statements.
void clear()
Clear In critera list.
attribute AString baseTableName
The query's base table.
sbISQLBuilderCriterion createMatchCriterionNull(in AString aTableName, in AString aSrcColumnName, in unsigned long aMatchType)
Create a match criterion that tests against the null value.
attribute AString intoTableName
Table to insert into.
const unsigned long MATCH_GREATER
void addValueString(in AString aValue)
Add a string value to the value list.
void addOrder(in AString aTableName, in AString aColumnName, in boolean aAscending)
Add an order clause to the query.
void addJoinWithCriterion(in unsigned long aJoinType, in AString aJoinedTableName, in AString aJoinedTableAlias, in sbISQLBuilderCriterion aCriterion)
Add a join to the query with a critera object specifcying the join constraints.
void addJoinWithIndexHint(in unsigned long aJoinType, in AString aJoinedTableName, in AString aJoinedTableAlias, in AString aJoinedColumnName, in AString aJoinToTableName, in AString aJoinToColumnName, in boolean aRequiresFromTableIndexHint, in boolean aRequiresToTableIndexHint)
Add a join to the query.
sbISQLBuilderCriterion createOrCriterion(in sbISQLBuilderCriterion aLeft, in sbISQLBuilderCriterion aRight)
Create a match criterion that is the logical OR of two critera.
Interface for building INSERT statements.
Interface for building DELETE statements.
const unsigned long MATCH_EQUALS
sbISQLBuilderCriterionIn createMatchCriterionIn(in AString aTableName, in AString aSrcColumnName)
Create a match criterion using the IN() operator.
void addCriterion(in sbISQLBuilderCriterion aCriterion)
Add a criteria constraint to the query.