Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Znav
nextFreeze-DatabaseException
prevFreeze-CatalogData
Section


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).

Ztop

Operations

Freeze::Transaction
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.

Freeze::Transaction
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
Anchor
close
close
close()

Closes this connection. If there is an associated transaction, it is rolled back.

Ice::Communicator
Anchor
getCommunicator
getCommunicator
getCommunicator()

Returns the communicator associated with this connection.

string
Anchor
getName
getName
getName()

The name of the connected system (for example, the Berkeley DB environment).

Ztop

Znav
nextFreeze-DatabaseException
prevFreeze-CatalogData
Section