ORDAStatementResult Protocol Reference
| Conforms to | ORDAResult |
| Declared in | ORDAStatementResult.h |
Overview
The ORDAStatementResult protocol is the protocol that all statement results must conform to.
Tasks
Properties
-
– changedthe number of inserted, updated, or deleted rows or -1 for select
required method -
– rowsthe number of result rows
required method -
– columnsthe number of result columns
required method -
– lastIDthe ID of the last inserted row, or -1 for select, update, or delete
required method
Data
-
– objectAtIndexedSubscript:Treats the result as an array of dictionaries
required method -
– objectForKeyedSubscript:Treats the result as a dictionary of arrays
required method
Instance Methods
changed
the number of inserted, updated, or deleted rows or -1 for select
- (int)changedReturn Value
the number of inserted, updated, or deleted rows or -1 for select
Declared In
ORDAStatementResult.hcolumns
the number of result columns
- (int)columnsReturn Value
the number of result columns
Declared In
ORDAStatementResult.hlastID
the ID of the last inserted row, or -1 for select, update, or delete
- (long long)lastIDReturn Value
the ID of the last inserted row, or -1 for select, update, or delete
Declared In
ORDAStatementResult.hobjectAtIndexedSubscript:
Treats the result as an array of dictionaries
- (NSDictionary *)objectAtIndexedSubscript:(NSUInteger)idxParameters
- idx
the row index
Return Value
the idx'th row’s data, index by column name
Declared In
ORDAStatementResult.h