Objective-C++ Preprocessor  5.0 with ARC & GC
C++ classes to enhance syntax and manage reference counting.
Instance Methods | Class Methods | List of all members
OORecord Class Reference

#import <objsql.h>

Inheritance diagram for OORecord:
OOMetaData

Instance Methods

(id) - OO_RETURNS
 
(id) - OO_RETURNS
 
(void) - update
 
(void) - indate
 
(void) - upsert
 
(int) - commit
 
(int) - rollback
 
(OOArray< id >) - select
 
(void) - bindToView:delegate:
 
(void) - updateFromView:
 
(id) - insert [implementation]
 
(id) - delete [implementation]
 
(void) - setNilValueForKey: [implementation]
 
(NSString *) - description [implementation]
 

Class Methods

(id) + OO_AUTORETURNS
 
(id) + insertWithParent:
 
(OOArray< id >) + select
 
(OOArray< id >) + select:
 
(OOArray< id >) + selectRecordsRelatedTo:
 
(id) + OO_AUTORETURNS
 
(int) + importFrom:delimiter:
 
(BOOL) + exportTo:delimiter:
 

Detailed Description

Superclass which can be used for all record classes to simplify interface to sqlite database. Any class can be a record class but subclasses of this class can use methods such as insert, update etc and be automatically registered using [registerSubclassesOf:[OORecord class]].

Definition at line 79 of file objsql.h.

Method Documentation

- (void) bindToView: (OOView *)  view
delegate: (id)  delegate 

populate a view with the string values taken from the ivars of the record

Definition at line 139 of file objsql.mm.

- (int) commit

Definition at line 89 of file objsql.mm.

- (id) delete
implementation

Definition at line 83 of file objsql.mm.

- (NSString *) description
implementation

Default description is dictionary containing values of all ivars

Definition at line 155 of file objsql.mm.

+ (BOOL) exportTo: (OOFile &)  file
delimiter: (cOOString delim 

Export a flat file with all rows in the table associated with the record subclass.

Definition at line 131 of file objsql.mm.

+ (int) importFrom: (OOFile &)  file
delimiter: (cOOString delim 

import a flat file with column values separated by the delimiter specified into the table associated with this class.

Definition at line 121 of file objsql.mm.

- (void) indate

Definition at line 86 of file objsql.mm.

- (id) insert
implementation

Definition at line 82 of file objsql.mm.

+ (id) insertWithParent: (id)  OO_AUTORETURNS

Definition at line 78 of file objsql.mm.

+ (id) OO_AUTORETURNS

Definition at line 68 of file objsql.mm.

+ (id) OO_AUTORETURNS
- (id) OO_RETURNS
- (id) OO_RETURNS
- (int) rollback

Definition at line 90 of file objsql.mm.

+ (OOArray< id >) select

Definition at line 100 of file objsql.mm.

- (OOArray<id>) select
+ (OOArray< id >) select: (cOOString sql

Definition at line 104 of file objsql.mm.

+ (OOArray< id >) selectRecordsRelatedTo: (id)  record

Reimplemented in OOMetaData.

Definition at line 108 of file objsql.mm.

- (void) setNilValueForKey: (NSString *)  key
implementation

Definition at line 93 of file objsql.mm.

- (void) update

Definition at line 85 of file objsql.mm.

- (void) updateFromView: (OOView *)  view

When the delegate method os sent use this method to update the record's values

Definition at line 147 of file objsql.mm.

- (void) upsert

Definition at line 87 of file objsql.mm.


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