Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

d_Ref_NoTx< T > Class Template Reference

#include <d_Ref_NoTx.h>

Inheritance diagram for d_Ref_NoTx< T >:

d_Ref_Any List of all members.

Public Methods

 d_Ref_NoTx ()
 d_Ref_NoTx (const T *iObject)
 d_Ref_NoTx (const d_Ref_NoTx< T > &iRef)
 d_Ref_NoTx (const d_Ref< T > &iRef)
 d_Ref_NoTx (const d_Ref_Any &iRef)
d_Ref_NoTx< T > & operator= (const T *iSource)
T * operator-> ()
T & operator * ()
T * ptr ()

Detailed Description

template<class T>
class d_Ref_NoTx< T >

Expresses relationships to objects.

This class works such as d_Ref but manages no transactional objects.

LOCATION: d_Ref_NoTx.h

Usage: d_Ref_NoTx< <linked-class> > <property-name>;

WHERE:

<linked-class>: Name of class to link. Can be only a persistent class (inherited from d_Object)

<property-name>: name of property

EXAMPLES:

* Reference to Invoice object d_Ref_NoTx<Invoice> myInvoice;

SEE ALSO: d_Ref, d_Object

ODMG: Extension


Constructor & Destructor Documentation

template<class T>
d_Ref_NoTx< T >::d_Ref_NoTx  
 

Default constructor.

Creates a null reference.

template<class T>
d_Ref_NoTx< T >::d_Ref_NoTx const T *    iObject
 

Creates a reference to object.

template<class T>
d_Ref_NoTx< T >::d_Ref_NoTx const d_Ref_NoTx< T > &    iRef
 

Copy constructor.

Copy the reference of .

template<class T>
d_Ref_NoTx< T >::d_Ref_NoTx const d_Ref< T > &    iRef
 

Creates a reference by the d_Ref object .

template<class T>
d_Ref_NoTx< T >::d_Ref_NoTx const d_Ref_Any   iRef
 

Creates a reference by the d_Ref_Any object .


Member Function Documentation

template<class T>
T& d_Ref_NoTx< T >::operator *  
 

Returns the persistent object in memory.

If the object is not present in memory Orient ODBMS loads the object from storage to memory trasparently.

If the reference is null then an exception d_Error_RefNull or d_Error_RefInvalid is raised.

SEE ALSO: operator ->(), ptr()

template<class T>
T* d_Ref_NoTx< T >::operator->  
 

Returns the persistent object in memory.

If the object is not present in memory Orient ODBMS loads the object from database to memory trasparently.

If the reference is null then an exception d_Error_RefNull or d_Error_RefInvalid is raised.

This operator permits to handle d_Ref<> as common C++ pointer.

SEE ALSO: operator *(), ptr()

template<class T>
d_Ref_NoTx<T>& d_Ref_NoTx< T >::operator= const T *    iSource
 

Set the reference to object.

template<class T>
T* d_Ref_NoTx< T >::ptr  
 

Returns the persistent object in memory.

If the object is not present in memory Orient ODBMS loads the object from storage to memory trasparently.

If the reference is null then an exception d_Error_RefInvalid is raised.

SEE ALSO: operator ->(), operator *()


The documentation for this class was generated from the following file:
Generated on Fri Nov 29 17:12:15 2002 for Orient ODBMS Just Edition v. 2.0e by doxygen1.3-rc1