LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
dbaui::ORelationTableConnectionData Class Referencefinal

#include <RTableConnectionData.hxx>

Inheritance diagram for dbaui::ORelationTableConnectionData:
[legend]
Collaboration diagram for dbaui::ORelationTableConnectionData:
[legend]

Public Member Functions

 ORelationTableConnectionData ()
 
 ORelationTableConnectionData (const ORelationTableConnectionData &rConnData)
 
 ORelationTableConnectionData (const TTableWindowData::value_type &_pReferencingTable, const TTableWindowData::value_type &_pReferencedTable, const OUString &rConnName=OUString())
 
virtual ~ORelationTableConnectionData () override
 
virtual void CopyFrom (const OTableConnectionData &rSource) override
 initialise from a source (more comfortable than a virtual assignment operator) More...
 
virtual std::shared_ptr< OTableConnectionDataNewInstance () const override
 deliver a new instance of my own type More...
 
virtual bool Update () override
 Update create a new relation. More...
 
void SetCardinality ()
 
void SetUpdateRules (sal_Int32 nAttr)
 
void SetDeleteRules (sal_Int32 nAttr)
 
sal_Int32 GetUpdateRules () const
 
sal_Int32 GetDeleteRules () const
 
Cardinality GetCardinality () const
 
void IsConnectionPossible ()
 
void ChangeOrientation ()
 
void DropRelation ()
 
- Public Member Functions inherited from dbaui::OTableConnectionData
 OTableConnectionData ()
 
 OTableConnectionData (TTableWindowData::value_type _aReferencingTable, TTableWindowData::value_type _aReferencedTable)
 
 OTableConnectionData (const OTableConnectionData &rConnData)
 
virtual ~OTableConnectionData ()
 
virtual void CopyFrom (const OTableConnectionData &rSource)
 initialise from a source (more comfortable than a virtual assignment operator) More...
 
virtual std::shared_ptr< OTableConnectionDataNewInstance () const
 deliver a new instance of my own type More...
 
void SetConnLine (sal_uInt16 nIndex, const OUString &rSourceFieldName, const OUString &rDestFieldName)
 
bool AppendConnLine (const OUString &rSourceFieldName, const OUString &rDestFieldName)
 
void ResetConnLines ()
 Deletes list of ConnLines. More...
 
OConnectionLineDataVec::size_type normalizeLines ()
 moves the empty lines to the back removes duplicated empty lines More...
 
const OConnectionLineDataVecGetConnLineDataList () const
 
OConnectionLineDataVecGetConnLineDataList ()
 
const TTableWindowData::value_type & getReferencingTable () const
 
const TTableWindowData::value_type & getReferencedTable () const
 
void setReferencingTable (const TTableWindowData::value_type &_pTable)
 
void setReferencedTable (const TTableWindowData::value_type &_pTable)
 
virtual bool Update ()
 Update create a new connection. More...
 

Private Member Functions

bool checkPrimaryKey (const css::uno::Reference< css::beans::XPropertySet > &i_xTable, EConnectionSide _eEConnectionSide) const
 
bool IsSourcePrimKey () const
 
bool IsDestPrimKey () const
 
ORelationTableConnectionDataoperator= (const ORelationTableConnectionData &rConnData)
 

Private Attributes

::osl::Mutex m_aMutex
 
sal_Int32 m_nUpdateRules
 
sal_Int32 m_nDeleteRules
 
Cardinality m_nCardinality
 

Friends

bool operator== (const ORelationTableConnectionData &lhs, const ORelationTableConnectionData &rhs)
 

Additional Inherited Members

- Protected Member Functions inherited from dbaui::OTableConnectionData
void Init ()
 
OTableConnectionDataoperator= (const OTableConnectionData &rConnData)
 
- Protected Attributes inherited from dbaui::OTableConnectionData
TTableWindowData::value_type m_pReferencingTable
 
TTableWindowData::value_type m_pReferencedTable
 
OUString m_aConnName
 
OConnectionLineDataVec m_vConnLineData
 

Detailed Description

Definition at line 32 of file RTableConnectionData.hxx.

Constructor & Destructor Documentation

◆ ORelationTableConnectionData() [1/3]

ORelationTableConnectionData::ORelationTableConnectionData ( )

Definition at line 43 of file RTableConnectionData.cxx.

References Undefined.

◆ ORelationTableConnectionData() [2/3]

ORelationTableConnectionData::ORelationTableConnectionData ( const ORelationTableConnectionData rConnData)

Definition at line 64 of file RTableConnectionData.cxx.

◆ ORelationTableConnectionData() [3/3]

ORelationTableConnectionData::ORelationTableConnectionData ( const TTableWindowData::value_type &  _pReferencingTable,
const TTableWindowData::value_type &  _pReferencedTable,
const OUString &  rConnName = OUString() 
)

◆ ~ORelationTableConnectionData()

ORelationTableConnectionData::~ORelationTableConnectionData ( )
overridevirtual

Definition at line 70 of file RTableConnectionData.cxx.

Member Function Documentation

◆ ChangeOrientation()

void ORelationTableConnectionData::ChangeOrientation ( )

◆ checkPrimaryKey()

bool ORelationTableConnectionData::checkPrimaryKey ( const css::uno::Reference< css::beans::XPropertySet > &  i_xTable,
EConnectionSide  _eEConnectionSide 
) const
private

◆ CopyFrom()

void ORelationTableConnectionData::CopyFrom ( const OTableConnectionData rSource)
overridevirtual

initialise from a source (more comfortable than a virtual assignment operator)

Reimplemented from dbaui::OTableConnectionData.

Definition at line 178 of file RTableConnectionData.cxx.

◆ DropRelation()

void ORelationTableConnectionData::DropRelation ( )

◆ GetCardinality()

Cardinality dbaui::ORelationTableConnectionData::GetCardinality ( ) const
inline

Definition at line 71 of file RTableConnectionData.hxx.

References m_nCardinality.

Referenced by operator=().

◆ GetDeleteRules()

sal_Int32 dbaui::ORelationTableConnectionData::GetDeleteRules ( ) const
inline

Definition at line 70 of file RTableConnectionData.hxx.

References m_nDeleteRules.

Referenced by dbaui::ORelationDialog::Init(), operator=(), and Update().

◆ GetUpdateRules()

sal_Int32 dbaui::ORelationTableConnectionData::GetUpdateRules ( ) const
inline

Definition at line 69 of file RTableConnectionData.hxx.

References m_nUpdateRules.

Referenced by dbaui::ORelationDialog::Init(), operator=(), and Update().

◆ IsConnectionPossible()

void ORelationTableConnectionData::IsConnectionPossible ( )

Definition at line 169 of file RTableConnectionData.cxx.

References ChangeOrientation(), IsDestPrimKey(), IsSourcePrimKey(), and m_aMutex.

Referenced by Update().

◆ IsDestPrimKey()

bool dbaui::ORelationTableConnectionData::IsDestPrimKey ( ) const
inlineprivate

◆ IsSourcePrimKey()

bool dbaui::ORelationTableConnectionData::IsSourcePrimKey ( ) const
inlineprivate

◆ NewInstance()

virtual std::shared_ptr< OTableConnectionData > dbaui::ORelationTableConnectionData::NewInstance ( ) const
inlineoverridevirtual

deliver a new instance of my own type

derived classes have to deliver an instance of their own type

Note
does NOT have to be initialised

Reimplemented from dbaui::OTableConnectionData.

Definition at line 57 of file RTableConnectionData.hxx.

◆ operator=()

ORelationTableConnectionData & ORelationTableConnectionData::operator= ( const ORelationTableConnectionData rConnData)
private

◆ SetCardinality()

void ORelationTableConnectionData::SetCardinality ( )

◆ SetDeleteRules()

void dbaui::ORelationTableConnectionData::SetDeleteRules ( sal_Int32  nAttr)
inline

Definition at line 67 of file RTableConnectionData.hxx.

References m_nDeleteRules.

◆ SetUpdateRules()

void dbaui::ORelationTableConnectionData::SetUpdateRules ( sal_Int32  nAttr)
inline

Definition at line 66 of file RTableConnectionData.hxx.

References m_nUpdateRules.

◆ Update()

bool ORelationTableConnectionData::Update ( )
overridevirtual

Friends And Related Function Documentation

◆ operator==

bool operator== ( const ORelationTableConnectionData lhs,
const ORelationTableConnectionData rhs 
)
friend

Definition at line 199 of file RTableConnectionData.cxx.

Member Data Documentation

◆ m_aMutex

::osl::Mutex dbaui::ORelationTableConnectionData::m_aMutex
private

◆ m_nCardinality

Cardinality dbaui::ORelationTableConnectionData::m_nCardinality
private

Definition at line 41 of file RTableConnectionData.hxx.

Referenced by GetCardinality(), operator=(), and SetCardinality().

◆ m_nDeleteRules

sal_Int32 dbaui::ORelationTableConnectionData::m_nDeleteRules
private

Definition at line 40 of file RTableConnectionData.hxx.

Referenced by GetDeleteRules(), operator=(), and SetDeleteRules().

◆ m_nUpdateRules

sal_Int32 dbaui::ORelationTableConnectionData::m_nUpdateRules
private

Definition at line 39 of file RTableConnectionData.hxx.

Referenced by GetUpdateRules(), operator=(), and SetUpdateRules().


The documentation for this class was generated from the following files: