objective-c-sql-query-builder
Public Member Functions | Static Public Member Functions | Protected Attributes
ZIMDbConnectionPool Class Reference

#import <ZIMDbConnectionPool.h>

List of all members.

Public Member Functions

(ZIMDbConnection *) - connection:
(void) - closeAll
(void) - destoryAll
(void) - dealloc
(id) - init [implementation]

Static Public Member Functions

(ZIMDbConnectionPool *) + sharedInstance

Protected Attributes

NSMutableDictionary * _connections

Detailed Description

Discussion:
This class represents an SQLite database connection pool.
Updated:
2011-07-16
See also:
http://sourcemaking.com/design_patterns/object_pool
http://www.webdevelopersjournal.com/columns/connection_pool.html

Member Function Documentation

- (void) closeAll
Signature:
closeAll
Discussion:
This method will close all open database connections in the pool.
Updated:
2011-07-16
- (ZIMDbConnection *) connection: (NSString *)  dataSource
Signature:
connection:
Discussion:
This method will return a connection for the specified data source.
Parameters:
dataSourceThe file name of the database's PLIST to be used.
Returns:
An open connection for the specified data source.
Updated:
2011-10-19
- (void) dealloc
Signature:
dealloc
Discussion:
This method will free up any remaining open connections.
Updated:
2012-03-21
- (void) destoryAll
Signature:
destroyAll
Discussion:
This method will destroy all cached database connections in the pool.
Updated:
2011-07-16
- (instancetype) init [implementation]
+ (ZIMDbConnectionPool *) sharedInstance
Signature:
sharedInstance
Discussion:
This method will return a singleton instance of this class.
Returns:
A singleton instance of this class.
Updated:
2011-07-16

Member Data Documentation

- (NSMutableDictionary*) _connections [protected]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Properties Defines