Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
d_Ref_Any Class Reference
#include <d_Ref_Any.h>
Inheritance diagram for d_Ref_Any:
List of all members.
Detailed Description
Expresses relationships to objects.
This class represents a generic reference to a persistent object. Use d_Ref class for reference of knew type.
It can be used as attribute of a class for 1 to 1 relationship between objects of the same or different class.
If it's used as template-argument of a class container in a class attribute can express 1 to N relationships.
LOCATION: d_Ref_Any.h
USAGE: d_Ref_Any <property-name>;
Where: <PROPERTY-NAME>: NAME OF PROPERTY
EXAMPLES: class Invoice : public d_Object { * Relationship 1-1 to customer or supplier d_Ref_Any customer_or_supplier;
* Relationship 1-N to product d_Set< d_Ref_Any > products; };
* Reference to Invoice object d_Ref_Any<Invoice> myInvoice;
SEE ALSO: d_Ref, d_Object
ODMG: Compliant
Constructor & Destructor Documentation
|
|
Default constructor.
Creates a null reference.
ODMG : Compliant |
| d_Ref_Any::d_Ref_Any |
( |
d_Object * |
iObject |
) |
|
|
|
|
Creates a reference to object.
ODMG : Compliant |
| d_Ref_Any::d_Ref_Any |
( |
const d_Ref_Any & |
iSource |
) |
|
|
|
|
Copy constructor.
Copy the reference of .
ODMG : Compliant |
| d_Ref_Any::~d_Ref_Any |
( |
|
) |
|
|
|
|
Destructor.
ODMG : Compliant |
| d_Ref_Any::d_Ref_Any |
( |
const oObjectId & |
iSource |
) |
|
|
Member Function Documentation
| bool d_Ref_Any::check_for_oid |
( |
|
) |
|
|
| void d_Ref_Any::clear |
( |
|
) |
|
|
|
|
Clears the reference setting to null.
ODMG : Compliant |
| void d_Ref_Any::clear_object |
( |
|
) |
[inline] |
|
| void d_Ref_Any::delete_object |
( |
|
) |
|
|
|
|
Deletes permanently the object referred from memory and storage.
ODMG : Compliant |
| const char * d_Ref_Any::dump |
( |
|
) |
|
|
| void d_Ref_Any::free_object |
( |
|
) |
|
|
| d_Object * d_Ref_Any::getObject |
( |
|
) |
const [inline] |
|
| oObjectId & d_Ref_Any::getOid |
( |
|
) |
[inline] |
|
| bool d_Ref_Any::is_loaded |
( |
|
) |
const [inline] |
|
| d_Boolean d_Ref_Any::is_null |
( |
|
) |
const [inline] |
|
|
|
Returns true is the reference has a null value otherwise false.
SEE ALSO: operator !() ODMG : Compliant |
| bool d_Ref_Any::is_valid |
( |
|
) |
const [inline] |
|
|
|
Returns true is the reference is valid otherwise false.
ODMG : Extension |
| d_Boolean d_Ref_Any::operator! |
( |
|
) |
const [inline] |
|
|
|
Returns true is the reference has a null value otherwise false.
SEE ALSO: is_null() ODMG : Compliant |
| d_Ref_Any & d_Ref_Any::operator= |
( |
d_Object * |
iSource |
) |
|
|
|
|
Get a reference for the object .
ODMG : Compliant |
| d_Ref_Any & d_Ref_Any::operator= |
( |
const d_Ref_Any & |
iSource |
) |
|
|
|
|
Get a copy of the object .
ODMG : Compliant |
| d_Boolean d_Ref_Any::operator== |
( |
const d_Ref_Any & |
iSource |
) |
const [inline] |
|
|
|
Check if two ref are equals (check the oid)
ODMG : Extension |
| d_Object * d_Ref_Any::ptr_check |
( |
bool & |
oLoad |
) |
[protected] |
|
| void d_Ref_Any::ptr_load |
( |
|
) |
[protected] |
|
| void d_Ref_Any::refresh |
( |
|
) |
|
|
| void d_Ref_Any::setOid |
( |
oUInt1 |
iDatabase, |
|
|
oUInt2 |
iClass, |
|
|
oUInt4 |
iRecord |
|
) |
|
|
| void d_Ref_Any::setValid |
( |
bool |
iValid |
) |
[inline] |
|
| void d_Ref_Any::unload |
( |
|
) |
|
|
Member Data Documentation
oObjectId d_Ref_Any::oid [protected]
|
|
bool d_Ref_Any::valid [protected]
|
|
The documentation for this class was generated from the following files:
Generated on Fri Nov 29 17:12:15 2002 for Orient ODBMS Just Edition v. 2.0e by
1.3-rc1