Znav |
---|
next | Freeze-DatabaseException |
---|
prev | Freeze-CatalogData |
---|
|
Freeze::Connection
Overview
local interface Connection
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.
Used By
Operation Index
beginTransaction — Create a new transaction.
currentTransaction — Returns the transaction associated with this connection.
removeMapIndex — Remove an old unused Freeze Map index @throws IndexNotFoundException Raised if this index does not exist
close — Closes this connection.
getCommunicator — Returns the communicator associated with this connection.
getName — The name of the connected system (for example, the Berkeley DB environment).
Operations
Anchor |
---|
| beginTransaction |
---|
| beginTransaction |
---|
|
beginTransaction()
Create a new transaction. Only one transaction at a time can be associated with a connection.
Return Value
The new transaction.
Exceptions
Freeze::TransactionAlreadyInProgressException — Raised if a transaction is already associated with this connection.
Anchor |
---|
| currentTransaction |
---|
| currentTransaction |
---|
|
currentTransaction()
Returns the transaction associated with this connection.
Return Value
The current transaction if there is one, null otherwise.
void
Anchor |
---|
| removeMapIndex |
---|
| removeMapIndex |
---|
|
removeMapIndex(string mapName, string indexName)
Remove an old unused Freeze Map index
Exceptions
Freeze::IndexNotFoundException — Raised if this index does not exist
void
close()
Closes this connection. If there is an associated transaction, it is rolled back.
Anchor |
---|
| getCommunicator |
---|
| getCommunicator |
---|
|
getCommunicator()
Returns the communicator associated with this connection.
string
getName()
The name of the connected system (for example, the Berkeley DB environment).
Znav |
---|
next | Freeze-DatabaseException |
---|
prev | Freeze-CatalogData |
---|
|