[ whitefrost.com | Account Manager 4 Product Page ]

Core.Database.ConnectionPool Class Reference

Summary description for ConnectionPool. More...

List of all members.

Public Member Functions

 ConnectionPool (DatabaseEngine in_engine, Core.ApplicationContext in_context, Core.Data.DbFactory.CONNECTION_TYPE type)
bool InitializePool ()
SqlCommand GetCommand ()
void CloseConnection (SqlConnection connection)
void CloseConnection (IDbConnection connection)
void CloseConnectionHead (ConnectionHead conn_head)
ConnectionHead GetConnectionHead (IDbConnection connection)
ConnectionHead GetConnectionHead ()
IDbConnection GetConnection ()
SqlCommand GetCommand (String command_string)
int MarshallNonQuery (SqlCommand sql_command)
ConnectionHead GetBlockingHead ()
ConnectionHead GetBlockingHead (int max_wait)
void RecyclePool ()
void Destroy ()

Properties

bool LocalOnly [get]
Core.Data.DbFactory.CONNECTION_TYPE ConnectionPoolType [get]
int ReadyState [get]
String SqlConnectionString [get]
int ConnectionAge [get, set]

Private Member Functions

bool AddConnection (int index, String connection_id)

Private Attributes

Core.ComponentRuntime runtime = null
DatabaseEngine engine = null
int pool_size = 5
ArrayList connection_ids = null
Core.ApplicationContext application_context = null
int connection_age = 30
int ready_state = 4
Core.Data.DbFactory.CONNECTION_TYPE connection_pool_type = Core.Data.DbFactory.CONNECTION_TYPE.UNKNOWN
bool local_only = false


Detailed Description

Summary description for ConnectionPool.


Constructor & Destructor Documentation

Core.Database.ConnectionPool.ConnectionPool ( DatabaseEngine  in_engine,
Core.ApplicationContext  in_context,
Core.Data.DbFactory.CONNECTION_TYPE  type 
)


Member Function Documentation

bool Core.Database.ConnectionPool.InitializePool (  ) 

bool Core.Database.ConnectionPool.AddConnection ( int  index,
String  connection_id 
) [private]

SqlCommand Core.Database.ConnectionPool.GetCommand (  ) 

void Core.Database.ConnectionPool.CloseConnection ( SqlConnection  connection  ) 

void Core.Database.ConnectionPool.CloseConnection ( IDbConnection  connection  ) 

connection.Close();

void Core.Database.ConnectionPool.CloseConnectionHead ( ConnectionHead  conn_head  ) 

ConnectionHead Core.Database.ConnectionPool.GetConnectionHead ( IDbConnection  connection  ) 

ConnectionHead Core.Database.ConnectionPool.GetConnectionHead (  ) 

IDbConnection Core.Database.ConnectionPool.GetConnection (  ) 

SqlCommand Core.Database.ConnectionPool.GetCommand ( String  command_string  ) 

int Core.Database.ConnectionPool.MarshallNonQuery ( SqlCommand  sql_command  ) 

ConnectionHead Core.Database.ConnectionPool.GetBlockingHead (  ) 

ConnectionHead Core.Database.ConnectionPool.GetBlockingHead ( int  max_wait  ) 

void Core.Database.ConnectionPool.RecyclePool (  ) 

void Core.Database.ConnectionPool.Destroy (  ) 


Member Data Documentation

ArrayList Core.Database.ConnectionPool.connection_ids = null [private]

Core.Data.DbFactory.CONNECTION_TYPE Core.Database.ConnectionPool.connection_pool_type = Core.Data.DbFactory.CONNECTION_TYPE.UNKNOWN [private]


Property Documentation

bool Core.Database.ConnectionPool.LocalOnly [get]

Core.Data.DbFactory.CONNECTION_TYPE Core.Database.ConnectionPool.ConnectionPoolType [get]

int Core.Database.ConnectionPool.ReadyState [get]

String Core.Database.ConnectionPool.SqlConnectionString [get]

int Core.Database.ConnectionPool.ConnectionAge [get, set]


The documentation for this class was generated from the following file:
Stephen W. Cote, 2009, whitefrost.com