Connections

What is a connection?

A connection object is an instance of the class ooConnection. This object represents a logical connection between an Objectivity application and a single Objectivity/DB federated database. The class ooObjy is a factory for connection objects. That is, you call a static method of ooObjy to make a logical connection to a federated database and obtain the corresponding connection object.

An application typically works with a single connection object; multiple connection objects are supported only when all connected federated databases have the exact same schema.

You use a connection object to create and manage the sessions that interact with the connected federated database.

How do I create a connection?

You make a logical connection from your application by calling the static method ooObjy::getConnection(BootFile), specifying the boot file of the federated database. This method creates and returns a connection object, an instance of the class ooConnection.

For examples, visit our How To's section.