OSB_DB::PersResourceGw Class Reference

List of all members.

Detailed Description

Support database operations of OSB_LIB::PersResource.

This primarly means to maintain PERS_ITEM.RESOURCE_ID.

Definition at line 70 of file resourceitem-gw.h.

Private Member Functions

Friends


Member Function Documentation

void OSB_DB::PersResourceGw::checkOverlap ( const Session session,
const OSB_LIB::PersResource::Oid prId,
const OSB_LIB::DateTime from,
const OSB_LIB::DateTime to 
) [private]

Check for overlapping assignment periods.

Parameters:
session Database session to use.
prId Id of the pers. resource to check.
from Begin of the period to check.
to End of the period to check.
Exceptions:
OsbException if the assignment period of pr to a pers. item overlaps with other assignments.

bool OSB_DB::PersResourceGw::fetch ( const Session session,
const OSB_LIB::PersResource pr,
OSB_LIB::Id< OSB_LIB::Resource > &  rid 
) [private]

Load a personalized resource item.

This function loads the personalized resource based on a specific id which is in PersResource.

Parameters:
session Database session to use.
pr Personalized resource to read.
rid Gets the id of the assigned resource.
Returns:
True if the personalized resource is found, else false.

bool OSB_DB::PersResourceGw::link ( const Session session,
const OSB_LIB::PersResource pr 
) [private]

Create link resource to pers. item.

Links the resource to the pers. item that currently has the resource assigned.

Parameters:
session Database session to use.
pr Personlized resource to insert.
Returns:
True if success.


Friends And Related Function Documentation

friend class OSB_LIB::PersResource [friend]

Allow PersResource to call its supporting methods.

PersResource needs to call the methods designed to support its I/O operations:

Definition at line 81 of file resourceitem-gw.h.


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