#import <ZIMSqlSelectStatement.h>
List of all members.
Detailed Description
- Discussion:
- This class represents an SQL select statement.
- Updated:
- 2012-03-18
- See also:
- http://www.sqlite.org/lang_select.html
Member Function Documentation
- (void) column: |
|
(id) |
column |
|
- Signature:
- column:
- Discussion:
- This method will add a column to the SQL statement.
- Parameters:
-
column | The column to be selected. |
- Updated:
- 2012-03-24
- (void) column: |
|
(id) |
column |
alias: |
|
(NSString *) |
alias |
|
|
| |
- Signature:
- column:alias:
- Discussion:
- This method will add a column to the SQL statement.
- Parameters:
-
column | The column to be selected. |
alias | The alias to be used. |
- Updated:
- 2012-03-24
- Signature:
- combine:operator:
- Discussion:
- This method will combine a select statement using the specified operator.
- Parameters:
-
statement | The select statement that will be appended. |
operator | The operator to be used. Must use UNION, UNION ALL, INTERSECT, or EXCEPT. |
- Updated:
- 2012-03-18
- (void) distinct: |
|
(BOOL) |
distinct |
|
- Signature:
- distinct:
- Discussion:
- This method will add the "DISTINCT" keyword to the SQL statement.
- Parameters:
-
distinct | This will determine whether the "DISTINCT" keyword should added. |
- Updated:
- 2011-03-17
- (void) from: |
|
(id) |
table |
|
- Signature:
- from:
- Discussion:
- This method will add a from clause to the SQL statement.
- Parameters:
-
table | The table to used in the clause. |
- Updated:
- 2012-03-24
- (void) from: |
|
(id) |
table |
alias: |
|
(NSString *) |
alias |
|
|
| |
- Signature:
- from:alias:
- Discussion:
- This method will add a from clause to the SQL statement.
- Parameters:
-
table | The table to used in the clause. |
alias | The alias to be used. |
- Updated:
- 2012-03-24
- Signature:
- groupBy:
- Discussion:
- This method will add a group by clause to the SQL statement.
- Parameters:
-
column | The column to be grouped. |
- Updated:
- 2011-04-01
- (void) groupByHaving: |
|
(id) |
column1 |
operator: |
|
(NSString *) |
operator |
column: |
|
(id) |
column2 |
|
|
| |
- Signature:
- groupByHaving:operator:column:
- Discussion:
- This method will add a having clause to the SQL statement.
- Parameters:
-
column1 | The column to be tested. |
operator | The operator to be used. |
column2 | The column to be compared. |
- Updated:
- 2012-03-24
- (void) groupByHaving: |
|
(id) |
column1 |
operator: |
|
(NSString *) |
operator |
column: |
|
(id) |
column2 |
connector: |
|
(NSString *) |
connector |
|
|
| |
- Signature:
- groupByHaving:operator:column:connector:
- Discussion:
- This method will add a having clause to the SQL statement.
- Parameters:
-
column1 | The column to be tested. |
operator | The operator to be used. |
column2 | The column to be compared. |
connector | The connector to be used. |
- Updated:
- 2012-03-24
- (void) groupByHaving: |
|
(id) |
column |
operator: |
|
(NSString *) |
operator |
value: |
|
(id) |
value |
|
|
| |
- Signature:
- groupByHaving:operator:value:
- Discussion:
- This method will add a having clause to the SQL statement.
- Parameters:
-
column | The column to be tested. |
operator | The operator to be used. |
value | The value to be compared. |
- Updated:
- 2012-03-24
- (void) groupByHaving: |
|
(id) |
column |
operator: |
|
(NSString *) |
operator |
value: |
|
(id) |
value |
connector: |
|
(NSString *) |
connector |
|
|
| |
- Signature:
- groupByHaving:operator:value:connector:
- Discussion:
- This method will add a having clause to the SQL statement.
- Parameters:
-
column | The column to be tested. |
operator | The operator to be used. |
value | The value to be compared. |
connector | The connector to be used. |
- Updated:
- 2012-03-24
- (void) groupByHavingBlock: |
|
(NSString *) |
brace |
|
- Signature:
- groupByHavingBlock:
- Discussion:
- This method will start or end a block.
- Parameters:
-
brace | The brace to be used; it is either an opening or closing brace. |
- Updated:
- 2011-03-18
- (void) groupByHavingBlock: |
|
(NSString *) |
brace |
connector: |
|
(NSString *) |
connector |
|
|
| |
- Signature:
- groupByHavingBlock:connector:
- Discussion:
- This method will start or end a block.
- Parameters:
-
brace | The brace to be used; it is either an opening or closing brace. |
connector | The connector to be used. |
- Updated:
- 2011-03-18
- (instancetype) init |
|
|
[implementation] |
- (void) join: |
|
(id) |
table |
|
- Signature:
- join:
- Discussion:
- This method will add a join clause to the SQL statement.
- Parameters:
-
table | The table to used in the clause. |
- Updated:
- 2012-03-24
- (void) join: |
|
(id) |
table |
alias: |
|
(NSString *) |
alias |
|
|
| |
- Signature:
- join:alias:
- Discussion:
- This method will add a join clause to the SQL statement.
- Parameters:
-
table | The table to used in the clause. |
alias | The alias to be used. |
- Updated:
- 2012-03-24
- Signature:
- join:alias:type:
- Discussion:
- This method will add a join clause to the SQL statement.
- Parameters:
-
table | The table to used in the clause. |
alias | The alias to be used. |
type | The type of join clause. |
- Updated:
- 2012-03-24
- (void) join: |
|
(id) |
table |
type: |
|
(NSString *) |
type |
|
|
| |
- Signature:
- join:type:
- Discussion:
- This method will add a join clause to the SQL statement.
- Parameters:
-
table | The table to used in the clause. |
type | The type of join clause. |
- Updated:
- 2012-03-24
- (void) joinOn: |
|
(id) |
column1 |
operator: |
|
(NSString *) |
operator |
column: |
|
(id) |
column2 |
|
|
| |
- Signature:
- joinOn:operator:column:
- Discussion:
- This method will add a join condition to the last defined join clause.
- Parameters:
-
column1 | The column to be tested. |
operator | The operator to be used. |
column2 | The column to be tested on. |
- Updated:
- 2012-03-24
- (void) joinOn: |
|
(id) |
column1 |
operator: |
|
(NSString *) |
operator |
column: |
|
(id) |
column2 |
connector: |
|
(NSString *) |
connector |
|
|
| |
- Signature:
- joinOn:operator:column:connector:
- Discussion:
- This method will add a join condition to the last defined join clause.
- Parameters:
-
column1 | The column to be tested. |
operator | The operator to be used. |
column2 | The column to be tested on. |
connector | The connector to be used. |
- Updated:
- 2012-03-24
- (void) joinOn: |
|
(id) |
column |
operator: |
|
(NSString *) |
operator |
value: |
|
(id) |
value |
|
|
| |
- Signature:
- joinOn:operator:value:
- Discussion:
- This method will add a join condition to the last defined join clause.
- Parameters:
-
column | The column to be tested. |
operator | The operator to be used. |
value | The value to be compared. |
- Updated:
- 2012-03-24
- (void) joinOn: |
|
(id) |
column |
operator: |
|
(NSString *) |
operator |
value: |
|
(id) |
value |
connector: |
|
(NSString *) |
connector |
|
|
| |
- Signature:
- joinOn:operator:value:connector:
- Discussion:
- This method will add a join condition to the last defined join clause.
- Parameters:
-
column | The column to be tested. |
operator | The operator to be used. |
value | The value to be compared. |
connector | The connector to be used. |
- Updated:
- 2012-03-24
- Signature:
- joinUsing:
- Discussion:
- This method will add a join condition to the last defined join clause.
- Parameters:
-
column | The column to be tested. |
- Updated:
- 2011-07-15
- (void) limit: |
|
(NSUInteger) |
limit |
|
- Signature:
- limit:
- Discussion:
- This method will add a limit clause to the SQL statement.
- Parameters:
-
limit | The number of records to be returned. |
- Updated:
- 2012-03-18
- (void) limit: |
|
(NSUInteger) |
limit |
offset: |
|
(NSUInteger) |
offset |
|
|
| |
- Signature:
- limit:offset:
- Discussion:
- This method will add a limit clause and an offset clause to the SQL statement.
- Parameters:
-
limit | The number of records to be returned. |
offset | The starting point to start evaluating. |
- Updated:
- 2012-03-18
- (void) offset: |
|
(NSUInteger) |
offset |
|
- Signature:
- offset:
- Discussion:
- This method will add an offset clause to the SQL statement.
- Parameters:
-
offset | The starting point to start evaluating. |
- Updated:
- 2012-03-18
- Signature:
- orderBy:
- Discussion:
- This method will add an order by clause to the SQL statement.
- Parameters:
-
column | The column to be ordered. |
- Updated:
- 2012-03-19
- (void) orderBy: |
|
(NSString *) |
column |
descending: |
|
(BOOL) |
descending |
|
|
| |
- Signature:
- orderBy:descending:
- Discussion:
- This method will add an order by clause to the SQL statement.
- Parameters:
-
column | The column to be ordered. |
descending | This will determine whether the column should be ordered in descending order. |
- Updated:
- 2012-03-19
- (void) orderBy: |
|
(NSString *) |
column |
descending: |
|
(BOOL) |
descending |
nulls: |
|
(NSString *) |
weight |
|
|
| |
- Signature:
- statement
- Discussion:
- This method will return the SQL statement.
- Returns:
- The SQL statement that was constructed.
- Updated:
- 2012-03-18
Reimplemented from <ZIMSqlStatement>.
- (void) where: |
|
(id) |
column1 |
operator: |
|
(NSString *) |
operator |
column: |
|
(id) |
column2 |
|
|
| |
- Signature:
- where:operator:column:
- Discussion:
- This method will add a where clause to the SQL statement.
- Parameters:
-
column1 | The column to be tested. |
operator | The operator to be used. |
column2 | The column to be compared. |
- Updated:
- 2012-03-24
- (void) where: |
|
(id) |
column1 |
operator: |
|
(NSString *) |
operator |
column: |
|
(id) |
column2 |
connector: |
|
(NSString *) |
connector |
|
|
| |
- Signature:
- where:operator:column:connector:
- Discussion:
- This method will add a where clause to the SQL statement.
- Parameters:
-
column1 | The column to be tested. |
operator | The operator to be used. |
column2 | The column to be compared. |
connector | The connector to be used. |
- Updated:
- 2012-03-24
- (void) where: |
|
(id) |
column |
operator: |
|
(NSString *) |
operator |
value: |
|
(id) |
value |
|
|
| |
- Signature:
- where:operator:value:
- Discussion:
- This method will add a where clause to the SQL statement.
- Parameters:
-
column | The column to be tested. |
operator | The operator to be used. |
value | The value to be compared. |
- Updated:
- 2012-03-24
- (void) where: |
|
(id) |
column |
operator: |
|
(NSString *) |
operator |
value: |
|
(id) |
value |
connector: |
|
(NSString *) |
connector |
|
|
| |
- Signature:
- where:operator:value:connector:
- Discussion:
- This method will add a where clause to the SQL statement.
- Parameters:
-
column | The column to be tested. |
operator | The operator to be used. |
value | The value to be compared. |
connector | The connector to be used. |
- Updated:
- 2012-03-24
- Signature:
- whereBlock:
- Discussion:
- This method will start or end a block.
- Parameters:
-
brace | The brace to be used; it is either an opening or closing brace. |
- Updated:
- 2011-03-13
- Signature:
- whereBlock:connector:
- Discussion:
- This method will start or end a block.
- Parameters:
-
brace | The brace to be used; it is either an opening or closing brace. |
connector | The connector to be used. |
- Updated:
- 2011-04-01
Member Data Documentation
- (NSMutableArray*) _column [protected] |
- (NSMutableArray*) _combine [protected] |
- (NSMutableArray*) _groupBy [protected] |
- (NSMutableArray*) _having [protected] |
- (NSMutableArray*) _join [protected] |
- (NSUInteger) _limit [protected] |
- (NSMutableArray*) _orderBy [protected] |
- (NSMutableArray*) _table [protected] |
- (NSMutableArray*) _where [protected] |
The documentation for this class was generated from the following files: