OSB_DB::OtlId Class Reference

Inheritance diagram for OSB_DB::OtlId:

Inheritance graph
[legend]
Collaboration diagram for OSB_DB::OtlId:

Collaboration graph
[legend]
List of all members.

Detailed Description

Interface class between database INTEGER types and type safe object identifiers OSB_LIB::Id<T>.

OtlId extends otl_value<long> with a conversion from an OSB object identifier, which converts an unset id to a NULL value. This makes it easy to use a nullable id in a database transaction.

Definition at line 169 of file otl.h.

Public Member Functions

Constructors to retain otl_value<T> functionality.

Static Public Member Functions


Constructor & Destructor Documentation

OSB_DB::OtlId::OtlId (  )  [inline]

Default constructor.

Definition at line 174 of file otl.h.

OSB_DB::OtlId::OtlId ( const otl_null &  rhs  )  [inline]

Conversion from otl_null.

Definition at line 176 of file otl.h.

template<typename T>
OSB_DB::OtlId::OtlId ( const OSB_LIB::Id< T > &  rhs  )  [inline, explicit]

Conversion from type safe OSB object identifiers. The 'not set' identifier value is mapped to NULL.

Definition at line 183 of file otl.h.

References OSB_LIB::Id< T >::notSet().


Member Function Documentation

long OSB_DB::OtlId::id (  )  const [inline]

For use in the constructor of an OSB object identifier. A NULL value is translated to OSB_LIB::ID_NOT_SET.

Definition at line 192 of file otl.h.

References nvl().

static long OSB_DB::OtlId::nvl (  )  [inline, static]

The value for id() for a NULL value in the database.

Definition at line 199 of file otl.h.

References OSB_LIB::ID_NOT_SET.

Referenced by id().


The documentation for this class was generated from the following file:
Generated on Sat Sep 2 14:08:59 2006 for OSB Library by  doxygen 1.4.7