[ whitefrost.com | Account Manager 4 Product Page ]

Core.Database.DatabaseEngine Class Reference

Summary description for Class1. More...

List of all members.

Public Member Functions

 DatabaseEngine (ApplicationContext in_context, bool in_local_only)
 DatabaseEngine ()
bool Initialize (Core.Data.DbFactory.CONNECTION_TYPE type)
bool SetSchema (String path)
bool GetTableExists (String table_name)
bool DropTable (String table_name)
bool CreateTable (String table_name, String schema_name)
bool CreateTable (String table_name, String schema_name, bool overwrite)
void Destroy ()
bool GetColumnExists (String table_name, String column_name)
String[] GetColumns (String table_name)
bool AddColumn (String table_name, String column_name, String column_type_expr)

Static Public Member Functions

static DatabaseEngine GetInstance ()
static bool GetTableExists (IDbConnection connection, String table_name, Core.Data.DbFactory.CONNECTION_TYPE connection_pool_type)
static String[] GetTables (IDbConnection connection, String table_name_expression, Core.Data.DbFactory.CONNECTION_TYPE connection_pool_type)
static bool DropTable (IDbConnection connection, String table_name, Core.Data.DbFactory.CONNECTION_TYPE connection_type)
static bool CreateTable (IDbConnection connection, String table_name, String[] schema, bool overwrite, Core.Data.DbFactory.CONNECTION_TYPE connection_type)
static String FixLineFeeds (String in_string)
static String GetFormattedDate (DateTime in_time, Core.Data.DbFactory.CONNECTION_TYPE type)

Static Public Attributes

static String TEMPORARY_TABLE_PREFIX = "TUT"
static DatabaseEngine Singleton = null

Properties

bool LocalOnly [get]
String SqlConnectionString [get]
DatabaseSchema Schema [get, set]
ConnectionPool ConnectionPool [get]
String ServerName [get, set]
String UserName [get, set]
String Password [get, set]
String DatabaseName [get, set]
int ReadyState [get]

Private Member Functions

void ClassInit ()

Private Attributes

Core.ApplicationContext application_context = null
ConnectionPool connection_pool = null
int ready_state = 0
String server_name = null
String database_name = null
String user_name = null
String password = null
DatabaseSchema schema = null
Core.Data.DbFactory.CONNECTION_TYPE connection_pool_type = Core.Data.DbFactory.CONNECTION_TYPE.UNKNOWN
bool local_only = false


Detailed Description

Summary description for Class1.


Constructor & Destructor Documentation

Core.Database.DatabaseEngine.DatabaseEngine ( ApplicationContext  in_context,
bool  in_local_only 
)

Core.Database.DatabaseEngine.DatabaseEngine (  ) 


Member Function Documentation

static DatabaseEngine Core.Database.DatabaseEngine.GetInstance (  )  [static]

void Core.Database.DatabaseEngine.ClassInit (  )  [private]

bool Core.Database.DatabaseEngine.Initialize ( Core.Data.DbFactory.CONNECTION_TYPE  type  ) 

test_connection.Close();

test_connection.Close();

bool Core.Database.DatabaseEngine.SetSchema ( String  path  ) 

bool Core.Database.DatabaseEngine.GetTableExists ( String  table_name  ) 

static bool Core.Database.DatabaseEngine.GetTableExists ( IDbConnection  connection,
String  table_name,
Core.Data.DbFactory.CONNECTION_TYPE  connection_pool_type 
) [static]

static String [] Core.Database.DatabaseEngine.GetTables ( IDbConnection  connection,
String  table_name_expression,
Core.Data.DbFactory.CONNECTION_TYPE  connection_pool_type 
) [static]

bool Core.Database.DatabaseEngine.DropTable ( String  table_name  ) 

static bool Core.Database.DatabaseEngine.DropTable ( IDbConnection  connection,
String  table_name,
Core.Data.DbFactory.CONNECTION_TYPE  connection_type 
) [static]

bool Core.Database.DatabaseEngine.CreateTable ( String  table_name,
String  schema_name 
)

bool Core.Database.DatabaseEngine.CreateTable ( String  table_name,
String  schema_name,
bool  overwrite 
)

static bool Core.Database.DatabaseEngine.CreateTable ( IDbConnection  connection,
String  table_name,
String[]  schema,
bool  overwrite,
Core.Data.DbFactory.CONNECTION_TYPE  connection_type 
) [static]

static String Core.Database.DatabaseEngine.FixLineFeeds ( String  in_string  )  [static]

static String Core.Database.DatabaseEngine.GetFormattedDate ( DateTime  in_time,
Core.Data.DbFactory.CONNECTION_TYPE  type 
) [static]

void Core.Database.DatabaseEngine.Destroy (  ) 

bool Core.Database.DatabaseEngine.GetColumnExists ( String  table_name,
String  column_name 
)

String [] Core.Database.DatabaseEngine.GetColumns ( String  table_name  ) 

bool Core.Database.DatabaseEngine.AddColumn ( String  table_name,
String  column_name,
String  column_type_expr 
)


Member Data Documentation

String Core.Database.DatabaseEngine.user_name = null [private]

String Core.Database.DatabaseEngine.password = null [private]

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


Property Documentation

bool Core.Database.DatabaseEngine.LocalOnly [get]

String Core.Database.DatabaseEngine.SqlConnectionString [get]

DatabaseSchema Core.Database.DatabaseEngine.Schema [get, set]

ConnectionPool Core.Database.DatabaseEngine.ConnectionPool [get]

String Core.Database.DatabaseEngine.ServerName [get, set]

String Core.Database.DatabaseEngine.UserName [get, set]

String Core.Database.DatabaseEngine.Password [get, set]

String Core.Database.DatabaseEngine.DatabaseName [get, set]

int Core.Database.DatabaseEngine.ReadyState [get]


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