Objective-C++ Preprocessor  5.0 with ARC & GC
C++ classes to enhance syntax and manage reference counting.
Classes | Instance Methods | Protected Attributes | List of all members
OOAdaptor Class Reference
Inheritance diagram for OOAdaptor:

Classes

struct  _str_link
 

Instance Methods

(id) - initPath:database:
 
(BOOL) - prepare:
 
(BOOL) - bindCols:values:startingAt:bindNulls:
 
(OOArray< id >) - bindResultsIntoInstancesOfClass:metaData:
 
(sqlite_int64) - lastInsertRowID
 
(int) - bindValue:asParameter: [implementation]
 
(OOValueDictionary- valuesForNextRow [implementation]
 
(void) - dealloc [implementation]
 

Protected Attributes

sqlite3 * db
 
sqlite3_stmt * stmt
 
struct OOAdaptor::_str_link * strs
 
OO_UNSAFE OODatabaseowner
 

Detailed Description

An internal class representing the interface to a particular database, in this case sqlite3.

Definition at line 170 of file objsql.mm.

Method Documentation

- (BOOL) bindCols: (cOOStringArray columns
values: (cOOValueDictionary values
startingAt: (int)  pno
bindNulls: (BOOL)  bindNulls 

Bind parameters from a prepared SQL statement. The "objCType" method is used to determine the type to bind.

Definition at line 792 of file objsql.mm.

- (OOArray< id >) bindResultsIntoInstancesOfClass: (Class)  recordClass
metaData: (OOMetaData *)  metaData 

Create instances of the recordClass to store results from a database select or if the record class is not present return a list of dictionary objects with the raw results.

Definition at line 852 of file objsql.mm.

- (int) bindValue: (id)  value
asParameter: (int)  pno 
implementation

Definition at line 750 of file objsql.mm.

- (void) dealloc
implementation

Definition at line 893 of file objsql.mm.

- (OOAdaptor *) initPath: (cOOString path
database: (OODatabase *)  database 

Connect to/create sqlite3 database

Definition at line 728 of file objsql.mm.

- (sqlite_int64) lastInsertRowID

Definition at line 889 of file objsql.mm.

- (BOOL) prepare: (cOOString sql

Prepare a sql statement after which values can be bound and results returned.

Definition at line 744 of file objsql.mm.

- (OOValueDictionary) valuesForNextRow
implementation

Return a dictionary containing the values for a row returned by the database from a select. These values need to be decoded using a classes metadata to set the ivar values later.

Definition at line 806 of file objsql.mm.

Member Data Documentation

- (sqlite3*) db
protected

Definition at line 171 of file objsql.mm.

- (OO_UNSAFE OODatabase*) owner
protected

Definition at line 176 of file objsql.mm.

- (sqlite3_stmt*) stmt
protected

Definition at line 172 of file objsql.mm.

- (struct _str_link *) OOAdaptor:
protected

The documentation for this class was generated from the following file: