Definition at line 68 of file connectionpt.h.
typedef Id<ConnectionPt> OSB_LIB::CpParent::ParentId |
OSB_LIB::CpParent::CpParent | ( | const ParentId & | parentId, | |
const DateTime & | ts = DateTime() | |||
) | [explicit] |
Constructor with parent id and optional release timestamp.
bool OSB_LIB::CpParent::freeze | ( | OsbErrors & | errors | ) |
Change status from 'editable' to 'standby'.
errors | Container for error messages if any. |
const ParentId& OSB_LIB::CpParent::parentId | ( | ) | const |
Return object id of this parent connection point.
bool OSB_LIB::CpParent::release | ( | OsbErrors & | errors | ) |
Change status from 'standby' to 'released'.
errors | Container for error messages if any. |
const DateTime& OSB_LIB::CpParent::releaseTs | ( | ) | const |
Return release date.
bool OSB_LIB::CpParent::revoke | ( | const ConnectionPt & | cp, | |
OsbErrors & | errors | |||
) |
Change status from 'release' to 'standby'.
cp | Connection point that owns this parent. | |
errors | Container for error messages if any. |
long OSB_LIB::CpParent::seq | ( | ) | const |
Return the sequence number of the parent relationship.
void OSB_LIB::CpParent::setReleaseTs | ( | const DateTime & | ts | ) |
Set release date.
ts | Release timestamp to set. |
OsbException | if the object has been released. |
const CfgStatus& OSB_LIB::CpParent::status | ( | ) | const |
Return object status.
bool OSB_LIB::CpParent::unfreeze | ( | OsbErrors & | errors | ) |
Change status from 'standby' to 'editable'.
errors | Container for error messages if any. |
friend class ConnectionPt [friend] |
Allow connection point to directly change the parent relationship to standby when revoking a connection point.
Definition at line 79 of file connectionpt.h.
friend class OSB_DB::ConnectionPtGw [friend] |
Allow create function at the gateway to assign unique id to newly created parent relationship.
Definition at line 73 of file connectionpt.h.
ParentId OSB_LIB::CpParent::parentId_ [private] |
DateTime OSB_LIB::CpParent::releaseTs_ [private] |
long OSB_LIB::CpParent::seq_ [private] |
CfgStatus OSB_LIB::CpParent::status_ [private] |