#import <ZIMOrmModel.h>
List of all members.
Detailed Description
- Discussion:
- This class acts as the base model.
- Updated:
- 2011-10-19
Member Function Documentation
- (id) belongsTo: |
|
(Class) |
model |
foreignKey: |
|
(NSArray *) |
foreignKey |
|
|
| |
- Signature:
- belongsTo:foreignKey:
- Discussion:
- This method uses the values stored in the foreign key columns of the current instance (i.e "self") to find a record in another table by comparing them against that foreign table's primary key columns.
- Parameters:
-
model | The model type to be loaded. |
foreignKey | An array of columns in the current instance that define the foreign key to be used. The order of the columns matters (i.e. columns must be placed in the same order as model's primary key). |
- Returns:
- Returns a model of the specified class.
- Updated:
- 2011-10-19
+ (NSDictionary *) columns |
|
|
|
- Signature:
- dataSource
- Discussion:
- This method will return the name of the data source (DSN).
- Returns:
- The file name of the database to be used.
- Updated:
- 2012-03-10
- Signature:
- delete
- Discussion:
- This method deletes the record matching the primary key.
- Updated:
- 2011-10-23
- (NSString *) hashCode |
|
|
[implementation] |
- (NSArray *) hasMany: |
|
(Class) |
model |
foreignKey: |
|
(NSArray *) |
foreignKey |
|
|
| |
- Signature:
- hasMany:foreignKey:
- Discussion:
- This method uses the values stored in the primary key columns of the current instance (i.e "self") to find a set of records in another table by comparing them against that table's foreign key columns.
- Parameters:
-
model | The model type to be loaded. |
foreignKey | An array of columns in the specified model that define the foreign key to be used. The order of the columns matters (i.e. columns must be placed in the same order as self's primary key). |
- Returns:
- Returns an array of models of the specified class.
- Updated:
- 2011-05-03
- (NSArray *) hasMany: |
|
(Class) |
model |
foreignKey: |
|
(NSArray *) |
foreignKey |
options: |
|
(NSDictionary *) |
options |
|
|
| |
- Signature:
- hasMany:foreignKey:options:
- Discussion:
- This method uses the values stored in the primary key columns of the current instance (i.e "self") to find a set of records in another table by comparing them against that table's foreign key columns.
- Parameters:
-
model | The model type to be loaded. |
foreignKey | An array of columns in the specified model that define the foreign key to be used. The order of the columns matters (i.e. columns must be placed in the same order as self's primary key). |
options | A dictionary options that will constraint the result set. |
- Returns:
- Returns an array of models of the specified class.
- Updated:
- 2011-10-23
- See also:
- http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html
- (id) hasOne: |
|
(Class) |
model |
foreignKey: |
|
(NSArray *) |
foreignKey |
|
|
| |
- Signature:
- hasOne:foreignKey:
- Discussion:
- This method uses the values stored in the primary key columns of the current instance (i.e "self") to find a record in another table by comparing them against that table's foreign key columns.
- Parameters:
-
model | The model type to be loaded. |
foreignKey | An array of columns in the specified model that define the foreign key to be used. The order of the columns matters (i.e. columns must be placed in the same order as self's primary key). |
- Returns:
- Returns a model of the specified class.
- Updated:
- 2011-05-04
- Signature:
- init
- Discussion:
- This method initializes the class.
- Returns:
- An instance of this class.
- Updated:
- 2011-07-31
- (instancetype) initWithDelegate: |
|
(id) |
delegate |
|
- Signature:
- initWithDelegate:
- Discussion:
- This method initializes the class with the specified delegate.
- Parameters:
-
- Returns:
- An instance of this class.
- Updated:
- 2011-07-31
+ (BOOL) isAutoIncremented |
|
|
|
- Signature:
- isAutoIncremented
- Discussion:
- This method returns whether the table's primary key auto-increments.
- Returns:
- Returns whether the table's primary key auto-increments.
- Updated:
- 2011-04-14
+ (BOOL) isModel: |
|
(Class) |
model |
|
- Signature:
- isSaveable
- Discussion:
- This method returns whether the model can be saved to the database.
- Returns:
- Returns whether the model can be saved to the database.
- Updated:
- 2011-04-14
- Signature:
- load
- Discussion:
- This method will load/reload the record matching the primary key.
- Updated:
- 2011-10-23
- Signature:
- primaryKey
- Discussion:
- This method will return the table's primary key.
- Returns:
- The table's primary key.
- Updated:
- 2011-04-18
- Signature:
- save
- Discussion:
- This method either creates or updates the record matching the primary key.
- Updated:
- 2011-10-23
- Signature:
- table
- Discussion:
- This method will return the table name associated with this class.
- Returns:
- The table name associated with this class.
- Updated:
- 2011-04-03
Member Data Documentation
- (id __unsafe_unretained) _delegate [protected] |
Property Documentation
- (id) delegate [read, write, retain] |
The documentation for this class was generated from the following files: