#include <dbTypeManager.h>
Static Public Member Functions | |
static DbType & | getDbType (const Type &t) |
Looks up a DbType instance by the Type it represents. | |
static DbType & | getDbTypeWithInit (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 DbTypeManager & | getInstance () |
Returns the singleton instance. | |
static const Type & | getType (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. |
Initializes them, allows to look them up by Type associated to them. Provides O/R mapping services which are not Type specific.
static void iopc::DbTypeManager::init | ( | ) | [inline, static] |
Initializes the DbTypeManager.
Initializes all registered DbType instances Invoked from 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.
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] |
static const SerialIdType iopc::DbTypeManager::getNextSerialId | ( | Connection & | conn | ) | [inline, static] |
static const SerialIdType iopc::DbTypeManager::getSerialId | ( | Connection & | conn, | |
const OidType | oid | |||
) | [inline, static] |
Returns a serialId timestamp for specified OID.
conn | Connection used to send the query to the OID - ClassName catalogue | |
oid | OID for which to find the current timestamp |