Definition at line 125 of file recordstream-gw.h.
OSB_LIB::ObjectStatus OSB_DB::RecordStreamGw::checkObjVs | ( | const Session & | session, | |
const OSB_LIB::RecordStreamInfo & | rs | |||
) | [private] |
Check if a record stream was modified since read from the database.
session | Database session to use. | |
rs | Record stream to verify. |
bool OSB_DB::RecordStreamGw::fetch | ( | const Session & | session, | |
OSB_LIB::RecordStreamInfo & | rs | |||
) |
Read the record stream from the database.
This will fetch the record stream info from the database. Before calling this function the object identifier should be set. It also reads the record source informations for this record stream.
session | Database session to use. | |
rs | Record stream info object to be fetched. |
void OSB_DB::RecordStreamGw::fetchFiltered | ( | const Session & | session, | |
OSB_LIB::RecordStreams & | dest, | |||
const OSB_LIB::RecordStreamFilter & | filter | |||
) |
Read matched record streams from the database.
session | Database session to use. | |
dest | List of record streams to populate. | |
filter | Record stream filter to use. |
void OSB_DB::RecordStreamGw::fetchOthers | ( | const Session & | session, | |
OSB_LIB::RecordStreams & | dest | |||
) |
Read parents and children of record streams from the database.
session | Database session to use. | |
dest | List of record streams to populate, it should contain the streams matched by the filter (see fetchFiltered()). |
bool OSB_DB::RecordStreamGw::getNext | ( | const OSB_DB::Session & | session, | |
OSB_LIB::RecordStreamInfo & | dest, | |||
const std::string & | format, | |||
OSB_LIB::ModuleId | processor, | |||
OSB_LIB::RecordStream::Status | status | |||
) |
Read the next record stream based on record source format.
This will read the next record stream from the database based on record source format, module and record stream status. If there is no records it will return as false.
session | Database session to use. | |
dest | Record stream info object to be filled. | |
format | Record source format to use. | |
processor | Module which is going to process the record stream. | |
status | Status for the record stream requested. |
bool OSB_DB::RecordStreamGw::getNext | ( | const OSB_DB::Session & | session, | |
OSB_LIB::RecordStreamInfo & | dest, | |||
OSB_LIB::ModuleId | processor, | |||
const OSB_LIB::RecordSource::Oid & | srcId, | |||
OSB_LIB::RecordStream::Status | status | |||
) |
Read the next record stream based on record source id and the record stream status.
This will read the next record stream from the database based on record source id and record stream status. If there is no records it will return as false.
session | Database session to use. | |
dest | Record stream info object to be filled. | |
processor | Module which is going to process the record stream. | |
srcId | Record source id. | |
status | Status of the record stream requested. |
bool OSB_DB::RecordStreamGw::getNext | ( | const OSB_DB::Session & | session, | |
OSB_LIB::RecordStreamInfo & | dest, | |||
OSB_LIB::ModuleId | processor, | |||
OSB_LIB::RecordStream::Status | status | |||
) |
Read the next record stream based on record source processor module and record stream status.
This will read the next record stream from the database based on the processor module and record stream status. If there is no record stream it will return as false.
session | Database session to use. | |
dest | Record stream info object to be filled. | |
processor | Module which is going to process the record stream. | |
status | Status of the record stream requested. |
bool OSB_DB::RecordStreamGw::insert | ( | const Session & | session, | |
OSB_LIB::RecordStreamInfo & | rs | |||
) | [private] |
Insert the record stream into the database.
session | Database session to use. | |
rs | Record stream to insert. |
DbException | in case of
|
OSB_LIB::ObjectStatus OSB_DB::RecordStreamGw::lock | ( | const Session & | session, | |
OSB_LIB::RecordStreamInfo & | rs | |||
) | [private] |
Lock a record stream in the database.
session | Database session to use. | |
rs | Record stream to lock, it's object version is incremented by 1 if the function returns OSB_LIB::objUnchanged. |
bool OSB_DB::RecordStreamGw::remove | ( | const Session & | session, | |
OSB_LIB::RecordStreamInfo & | rs | |||
) | [private] |
Remove the record stream from the database.
Delete a record stream in the database, unset its object id if successful.
session | Database session to use. | |
rs | Record stream object to delete. |
bool OSB_DB::RecordStreamGw::setProcessing | ( | const Session & | session, | |
const OSB_LIB::RecordStreamInfo::Oid & | rsId | |||
) | [private] |
Mark a record stream as being processed.
session | Database session to use. | |
rsId | Record stream to update. |
bool OSB_DB::RecordStreamGw::setStatus | ( | const Session & | session, | |
const OSB_LIB::RecordStreamInfo & | rs, | |||
OSB_LIB::RecordStream::Status | status | |||
) | [private] |
Set the status for the given record stream info.
session | Database session to use. | |
rs | Record stream to update. | |
status | The new status of the stream. |
bool OSB_DB::RecordStreamGw::update | ( | const Session & | session, | |
OSB_LIB::RecordStreamInfo & | rs | |||
) | [private] |
Update the record stream in the database.
This will update the record stream in the database. Before calling this function all the attributes should be updated in the record stream object. Object identifier is used to identify the object in the database.
session | Database session to use. | |
rs | Record stream object to update. |
friend class OSB_LIB::RecordStreamInfo [friend] |
On reading the record stream info from the database this will fill all the private attributes.
Definition at line 130 of file recordstream-gw.h.