iopc::DbTypeManager Class Reference
[iopclib]

This singleton class manages the DbType instances. More...

#include <dbTypeManager.h>

List of all members.

Static Public Member Functions

static DbTypegetDbType (const Type &t)
 Looks up a DbType instance by the Type it represents.
static DbTypegetDbTypeWithInit (const Type &t)
 Looks up a DbType instance by the Type it represents and initializes it.
static DbTypesMap & getDbTypesMap ()
 Returns a map of DbType instances managed by this singleton.
static void init ()
 Initializes the DbTypeManager.
static DbTypeManagergetInstance ()
 Returns the singleton instance.
static const TypegetType (Connection &conn, const OidType oid)
 Returns an actual type of a persistent object identified by an OID.
static const OidType getNextOid (Connection &conn)
 Generates a new OID.
static const SerialIdType getNextSerialId (Connection &conn)
 Generates a new SerialID.
static const SerialIdType getSerialId (Connection &conn, const OidType oid)
 Returns a serialId timestamp for specified OID.


Detailed Description

This singleton class manages the DbType instances.

Initializes them, allows to look them up by Type associated to them. Provides O/R mapping services which are not Type specific.


Member Function Documentation

static void iopc::DbTypeManager::init (  )  [inline, static]

Initializes the DbTypeManager.

Initializes all registered DbType instances Invoked from Iopc::init()

See also:
Iopc::init()

static const Type& iopc::DbTypeManager::getType ( Connection conn,
const OidType  oid 
) [inline, static]

Returns an actual type of a persistent object identified by an OID.

Parameters:
conn Connection used to send the query to the OID - Classname catalogue
oid OID of the object whose type will be retrieved

static const OidType iopc::DbTypeManager::getNextOid ( Connection conn  )  [inline, static]

Generates a new OID.

Parameters:
conn Connection used to generate new OID

static const SerialIdType iopc::DbTypeManager::getNextSerialId ( Connection conn  )  [inline, static]

Generates a new SerialID.

Parameters:
conn Connection used to generate new SerialID

static const SerialIdType iopc::DbTypeManager::getSerialId ( Connection conn,
const OidType  oid 
) [inline, static]

Returns a serialId timestamp for specified OID.

Parameters:
conn Connection used to send the query to the OID - ClassName catalogue
oid OID for which to find the current timestamp


The documentation for this class was generated from the following files:

Generated on Tue Apr 14 16:46:52 2009 for IOPC 2 by  doxygen 1.5.6