DatabaseKit  0.5
DBTable Class Reference

#import <DBTable.h>

Inheritance diagram for DBTable:
Collaboration diagram for DBTable:

Instance Methods

(id) - objectForKeyedSubscript:
 
(void) - setObject:forKeyedSubscript:
 
(DBSelectQuery *) - select:
 
(DBSelectQuery *) - select
 
(DBInsertQuery *) - insert:
 
(DBInsertQuery *) - insertUsingSelect:
 
(DBInsertQuery *) - insertUsingSelect:intoColumns:
 
(DBUpdateQuery *) - update:
 
(DBDeleteQuery *) - delete
 
(DBSelectQuery *) - where:
 
(DBSelectQuery *) - order:by:
 
(DBSelectQuery *) - orderBy:
 
(DBSelectQuery *) - limit:
 
(DBAlterTableQuery *) - alter
 
(DBDropTableQuery *) - drop
 
(NSUInteger) - count
 
(DBType) - typeOfColumn:
 

Class Methods

(DBTable *) + withDatabase:name:
 

Properties

NSString * name
 
DBdatabase
 
NSSet * columns
 
Class modelClass
 

Detailed Description

Definition at line 7 of file DBTable.h.

Method Documentation

- (DBAlterTableQuery *) alter

Definition at line 117 of file DBTable.m.

References <DBTableQuery>::withTable:.

- (NSUInteger) count

Definition at line 126 of file DBTable.m.

References <DBTableQuery>::withTable:.

- (DBDeleteQuery *) delete

Definition at line 92 of file DBTable.m.

References <DBTableQuery>::withTable:.

- (DBDropTableQuery *) drop

Definition at line 121 of file DBTable.m.

References <DBTableQuery>::withTable:.

- (DBInsertQuery *) insert: (NSDictionary *)  columns
- (DBInsertQuery *) insertUsingSelect: (DBSelectQuery *)  sourceQuery
- (DBInsertQuery *) insertUsingSelect: (DBSelectQuery *)  sourceQuery
intoColumns: (NSArray *)  columns 

Definition at line 80 of file DBTable.m.

References <DBTableQuery>::withTable:.

- (DBQuery *) limit: (NSUInteger)  limit

Definition at line 112 of file DBTable.m.

References <DBTableQuery>::withTable:.

- (id) objectForKeyedSubscript: (id)  cond

Definition at line 41 of file DBTable.m.

References <DBTableQuery>::withTable:.

- (DBQuery *) order: (DBOrder)  order
by: (id)  columns 

Definition at line 104 of file DBTable.m.

References <DBTableQuery>::withTable:.

- (DBQuery *) orderBy: (id)  columns

Definition at line 108 of file DBTable.m.

References <DBTableQuery>::withTable:.

- (DBSelectQuery *) select

Definition at line 71 of file DBTable.m.

References <DBTableQuery>::withTable:.

- (DBSelectQuery *) select: (NSArray *)  columns

Definition at line 67 of file DBTable.m.

References <DBTableQuery>::withTable:.

- (void) setObject: (id)  obj
forKeyedSubscript: (id)  cond 

Definition at line 46 of file DBTable.m.

References <DBTableQuery>::withTable:.

- (DBType) typeOfColumn: (NSString *)  column

Definition at line 58 of file DBTable.m.

- (DBUpdateQuery *) update: (NSDictionary *)  columns
- (DBSelectQuery *) where: (id)  conds
,   ... 

Definition at line 96 of file DBTable.m.

References <DBTableQuery>::withTable:.

+ (DBTable *) withDatabase: (DB *)  database
name: (NSString *)  name 

Definition at line 24 of file DBTable.m.

References database, DBClassesInheritingFrom(), and name.

Referenced by DB::objectForKeyedSubscript:.

Property Documentation

- (NSSet *) columns
readatomicassign

Definition at line 10 of file DBTable.h.

- (DB*) database
readatomicassign

Definition at line 9 of file DBTable.h.

Referenced by withDatabase:name:.

- (Class) modelClass
readatomicassign

Definition at line 11 of file DBTable.h.

- (NSString*) name
readatomicassign

Definition at line 8 of file DBTable.h.

Referenced by withDatabase:name:.


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