OSB_DB::OtlId2 Class Reference

Collaboration diagram for OSB_DB::OtlId2:

Collaboration graph
[legend]
List of all members.

Detailed Description

Utility class to handle nullable object identifiers OSB_LIB::Id2<T>.

Use this class for database operations whenever one of the values of a OSB_LIB::Id2<T> may not be set.

Definition at line 212 of file otl.h.

Public Member Functions

Input to SQL:
Output from SQL:

Static Public Member Functions

Public Attributes


Constructor & Destructor Documentation

template<typename T>
OSB_DB::OtlId2::OtlId2 ( const OSB_LIB::Id2< T > &  id  )  [inline, explicit]

Construct from an object id.

Definition at line 218 of file otl.h.

References id1_, id2_, and OSB_LIB::ID_NOT_SET.

OSB_DB::OtlId2::OtlId2 (  )  [inline]

Default constructor.

Definition at line 229 of file otl.h.

References id1_, and id2_.


Member Function Documentation

long OSB_DB::OtlId2::id1 (  )  const [inline]

Get 1st identifier.

NULL from database is mapped to OSB_LIB::ID_NOT_SET.

Definition at line 240 of file otl.h.

References id1_, and nvl().

long OSB_DB::OtlId2::id2 (  )  const [inline]

Get 2nd identifier.

NULL from database is mapped to OSB_LIB::ID_NOT_SET.

Definition at line 249 of file otl.h.

References id2_, and nvl().

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

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

Definition at line 257 of file otl.h.

References OSB_LIB::ID_NOT_SET.

Referenced by id1(), and id2().


Member Data Documentation

otl_value<long> OSB_DB::OtlId2::id1_

1st part of the id as otl_value.

Use this data member to input/output from/to OTL streams.

Definition at line 267 of file otl.h.

Referenced by id1(), and OtlId2().

otl_value<long> OSB_DB::OtlId2::id2_

2nd part of the id as otl_value.

Use this data member to input/output from/to OTL streams.

Definition at line 273 of file otl.h.

Referenced by id2(), and OtlId2().


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