|
Freeze Slice API Reference
|
A connection to a database (database environment with Berkeley DB). More...
defined in <Freeze/Connection.ice>
local interface Connection { ... }
Operations | |
| Transaction | beginTransaction () |
| Create a new transaction. More... | |
| void | close () |
| Closes this connection. More... | |
| Transaction | currentTransaction () |
| Returns the transaction associated with this connection. More... | |
| Ice::Communicator | getCommunicator () |
| Returns the communicator associated with this connection. More... | |
| Ice::EncodingVersion | getEncoding () |
| Returns the encoding version used to encode the data. More... | |
| string | getName () |
| The name of the connected system (for example, the Berkeley DB environment). More... | |
| void | removeMapIndex (string mapName, string indexName) |
| Remove an unused Freeze Map index. More... | |
A connection to a database (database environment with Berkeley DB).
If you want to use a connection concurrently in multiple threads, you need to serialize access to this connection.
| Transaction beginTransaction | ( | ) |
Create a new transaction.
Only one transaction at a time can be associated with a connection.
| TransactionAlreadyInProgressException | Raised if a transaction is already associated with this connection. |
| void close | ( | ) |
Closes this connection.
If there is an associated transaction, it is rolled back.
| Transaction currentTransaction | ( | ) |
Returns the transaction associated with this connection.
| Ice::Communicator getCommunicator | ( | ) |
Returns the communicator associated with this connection.
| Ice::EncodingVersion getEncoding | ( | ) |
Returns the encoding version used to encode the data.
| string getName | ( | ) |
The name of the connected system (for example, the Berkeley DB environment).
| void removeMapIndex | ( | string | mapName, |
| string | indexName | ||
| ) |
Remove an unused Freeze Map index.
| mapName | The name of the Freeze map. |
| indexName | The name of the index. |
| IndexNotFoundException | Raised if this index does not exist. |