Public Member Functions | |
PROUDSRV_API | CAdoConnection (ADODB::_Connection *conn) |
PROUDSRV_API void | OpenEx (const String &connectionString, const PNTCHAR *AppName) |
void | Open (const String &connectionString) |
PROUDSRV_API void | OpenEx (const String &connectionString, const PNTCHAR *AppName, DbmsType Type) |
void | Open (const String &connectionString, DbmsType Type) |
PROUDSRV_API void | Close () |
PROUDSRV_API void | Close_NoThrow () |
PROUDSRV_API bool | IsOpened () |
PROUDSRV_API long | Execute (const String &lpszSQL) |
PROUDSRV_API long | Execute (CAdoRecordset &outputRecords, const String &lpszSQL) |
void | BeginTrans () |
void | RollbackTrans () |
void | CommitTrans () |
Additional Inherited Members | |
PROUDSRV_API void | ExecuteBegin () |
PROUDSRV_API void | ExecuteEnd (const String &command) |
DMBS link object of ADO Wrapper API
|
inline |
DB transaction begins
PROUDSRV_API void Proud::CAdoConnection::Close | ( | ) |
ADODB will be closed.
PROUDSRV_API void Proud::CAdoConnection::Close_NoThrow | ( | ) |
ADODB will be closed.
|
inline |
DB transaction commit
PROUDSRV_API long Proud::CAdoConnection::Execute | ( | const String & | lpszSQL | ) |
Executes SQL syntax. Can use as printf().
lpszSQL | SQL syntax |
PROUDSRV_API long Proud::CAdoConnection::Execute | ( | CAdoRecordset & | outputRecords, |
const String & | lpszSQL | ||
) |
Executes SQL syntax. The result gets stored at outputRecords.
outRecordset | Recordset of results to get. |
lpszSQL | SQL syntax |
PROUDSRV_API bool Proud::CAdoConnection::IsOpened | ( | ) |
Is ADO object connected to DB server?
|
inline |
This method connects to DB. Refer to OpenEx guideline for more details.
connectionString | DB Connection String |
|
inline |
This method connects to DB. Refer to OpenEx guideline for more details.
connectionString | DB Connection String |
PROUDSRV_API void Proud::CAdoConnection::OpenEx | ( | const String & | connectionString, |
const PNTCHAR * | AppName | ||
) |
This method connects to DB. It has a function that expanse ADODB.Connection.
connectionString | DBMS link string
|
AppName | Name being displayed on SQL Server Enterprise Manager. This method helps detecting dead-lock when adding a name that points to a specific routine to the name of connection. If you don't insert this method, this will be ignores. |
PROUDSRV_API void Proud::CAdoConnection::OpenEx | ( | const String & | connectionString, |
const PNTCHAR * | AppName, | ||
DbmsType | Type | ||
) |
TODO:translate needed. This method connects to DB. It has a function that expans ADODB.Connection.
connectionString | DBMS link string
|
AppName | Name being displayed on SQL Server Enterprise Manager. This method helps detecting dead-lock when adding a name that points to a specific routine to the name of connection. It ignores if you don't insert this method. |
Type | This inserts enum value of DbmsType such as for Sql,MySql and etc.(MsSql internally uses sqloledb Provider.) |
|
inline |
DB transaction rollback