Local database connection for execution of SQL queries. More...

Public Member Functions | |||
| SqlLocalConnection (Database db) | |||
Constructor of the database connection.
| |||
| SqlLocalConnection (Connection con) | |||
Constructor of Sql connection using existed connections
| |||
| SqlResultSet | ExecuteQuery (String query, params Object[] args) | ||
Execute SQL query.
| |||
| int | ExecuteStatement (String stmt, params Object[] args) | ||
Execute SQL update statement
| |||
| override void | StartTransaction (Database.TransactionType type, Database.TransactionPriority pri, Database.IsolationLevel level) | ||
| Start a transaction with the specified priority and isolation level. (Nested transactions are supported.) More... | |||
| override bool | CommitTransaction () | ||
| Commit a transaction. More... | |||
| override void | RollbackTransaction () | ||
| Rollback a transaction. Note that any nested transactions are aborted. More... | |||
| override void | Disconnect () | ||
| Close this connection. More... | |||
| override void | Dispose () | ||
| Close this connection. The same as Disconnect. More... | |||
| void | DetachResultSet (SqlResultSet result) | ||
| Internal method called by SqlResultSet. Should not be explicitly called by application. More... | |||
| IntPtr | GetEngine () | ||
Public Member Functions inherited from eXtremeDB.Connection | |||
| Connection (Database db) | |||
| Constructor of the database connection. More... | |||
| Connection (Connection con) | |||
| Copy constructor of the database connection. More... | |||
| Connection (Database db, byte[] context) | |||
| Constructor of the database connection with context. More... | |||
| void | StartTransaction (Database.TransactionType type) | ||
| Start a transaction with the default priority and isolation level. (Nested transactions are supported.) More... | |||
| void | SetCommitPolicy (Database.CommitPolicy policy) | ||
| Set the transaction commit policy for this connection. More... | |||
| void | DiskFlush () | ||
| Flush to the disk all changes made by committed transactions. This method can be used to flush changes when the MCO_COMMIT_BUFFERED transaction policy is used. More... | |||
Properties | |
| IDatabaseWrapper | Wrapper [get] |
Properties inherited from eXtremeDB.ISqlConnection | |
| IDatabaseWrapper | Wrapper [get] |
Local database connection for execution of SQL queries.
| eXtremeDB.SqlLocalConnection.SqlLocalConnection | ( | Database | db | ) |
Constructor of the database connection.
| db | opened database |
| eXtremeDB.SqlLocalConnection.SqlLocalConnection | ( | Connection | con | ) |
Constructor of Sql connection using existed connections
| con | existed database connection |
|
virtual |
Commit a transaction.
Reimplemented from eXtremeDB.Connection.
| void eXtremeDB.SqlLocalConnection.DetachResultSet | ( | SqlResultSet | result | ) |
Internal method called by SqlResultSet. Should not be explicitly called by application.
Implements eXtremeDB.ISqlConnection.
|
virtual |
Close this connection.
Reimplemented from eXtremeDB.Connection.
|
virtual |
Close this connection. The same as Disconnect.
Reimplemented from eXtremeDB.Connection.
| SqlResultSet eXtremeDB.SqlLocalConnection.ExecuteQuery | ( | String | query, |
| params Object[] | args | ||
| ) |
Execute SQL query.
| query | SQL query with '?' used as parameter placeholder. |
Implements eXtremeDB.ISqlConnection.
| int eXtremeDB.SqlLocalConnection.ExecuteStatement | ( | String | stmt, |
| params Object[] | args | ||
| ) |
Execute SQL update statement
| stmt | SQL DML statement with '?' used as parameter placeholder. |
Implements eXtremeDB.ISqlConnection.
| IntPtr eXtremeDB.SqlLocalConnection.GetEngine | ( | ) |
|
virtual |
Rollback a transaction. Note that any nested transactions are aborted.
Reimplemented from eXtremeDB.Connection.
|
virtual |
Start a transaction with the specified priority and isolation level. (Nested transactions are supported.)
Reimplemented from eXtremeDB.Connection.
|
get |