RTSQLRow


Conforms To:
NSObject
Declared In:
RTSQLRow.h


Protocol Description

Protocol for a row of data in a result set


Method Types

- resultSet
- columnCount
- valueAtIndex:
- stringValueAtIndex:
- valueForColumnNamed:
- stringValueForColumnNamed:
- valuesAsArray
- insertedRow
- setValueForInsert:atIndex:

Instance Methods

columnCount

- (SInt32)columnCount

Returns column count for this row.


insertedRow

- (BOOL)insertedRow

Returns YES if this row has been inserted by a data source and does not exist in the database.


resultSet

- (id <RTSQLResultSet>)resultSet

ResultSet this row is part of


setValueForInsert:atIndex:

- (void)setValueForInsert:(void*)value atIndex:(SInt32)index

This method will raise an exception unless -insertedRow is YES. The value should be in the data type [[col dataType] nativeDataType]


stringValueAtIndex:

- (NSString*)stringValueAtIndex:(SInt32)index

Returns value at specified column. Returns nil for null values, values as string.


stringValueForColumnNamed:

- (NSString*)stringValueForColumnNamed:(NSString*)colName

Returns string value based on the column name


valueAtIndex:

- (void*)valueAtIndex:(SInt32)index

Returns value at specified column. Returns nil for null values, values as native data type.


valueForColumnNamed:

- (void*)valueForColumnNamed:(NSString*)colName

Returns value based on the column name


valuesAsArray

- (NSArray*)valuesAsArray

Returns array of values with [NSNull null] for null values.


Copyright ©2006 by Runtime Labs, Inc.. All Rights Reserved.