objective-c-sql-query-builder
Public Member Functions | Static Public Member Functions | Protected Attributes
ZIMSqlPreparedStatement Class Reference

#import <ZIMSqlPreparedStatement.h>

Inheritance diagram for ZIMSqlPreparedStatement:
<ZIMSqlStatement>

List of all members.

Public Member Functions

(id) - initWithSqlStatement:
(void) - setIdentifier:atIndex:
(void) - setValue:atIndex:
(NSString *) - statement

Static Public Member Functions

(NSString *) + preparedStatement:withValues:

Protected Attributes

NSMutableArray * _tokens
NSMutableArray * _indicies

Detailed Description

Discussion:
This class represents a prepared SQL statement.
Updated:
2011-08-13

Member Function Documentation

- (instancetype) initWithSqlStatement: (NSString *)  sql
Signature:
initWithSqlStatement:
Discussion:
This method initialize the class with the specified SQL statement.
Parameters:
sqlThe SQL statement to be prepared.
Returns:
An instance of this class.
Updated:
2011-10-19
+ (NSString *) preparedStatement: (NSString *)  sql
withValues: (id)  values
,   ... 
Signature:
preparedStatement:withValues:
Discussion:
This method will return the SQL statement.
Parameters:
sqlThe SQL statement to be prepared.
valuesThe values (i.e. objects) to be set.
Returns:
The SQL statement that was prepared.
Updated:
2011-10-19
- (void) setIdentifier: (id)  identifier
atIndex: (NSUInteger)  index 
Signature:
setIdentifier:atIndex:
Discussion:
This method will set an identifier for the parameter with the specified index in the SQL statement.
Parameters:
identifierThe identifier to be set.
indexThe parameter's index.
Updated:
2012-03-23
- (void) setValue: (id)  value
atIndex: (NSUInteger)  index 
Signature:
setValue:atIndex:
Discussion:
This method will set an value for the parameter with the specified index in the SQL statement.
Parameters:
valueThe value to be set.
indexThe parameter's index.
Updated:
2012-03-18
- (NSString *) statement
Signature:
statement
Discussion:
This method will return the SQL statement.
Returns:
The SQL statement that was prepared.
Updated:
2011-10-19

Reimplemented from <ZIMSqlStatement>.


Member Data Documentation

- (NSMutableArray*) _indicies [protected]
- (NSMutableArray*) _tokens [protected]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Properties Defines