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

#include <QTableConnectionData.hxx>

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

Public Member Functions

 OQueryTableConnectionData ()
 
 OQueryTableConnectionData (const OQueryTableConnectionData &rConnData)
 
 OQueryTableConnectionData (const TTableWindowData::value_type &_pReferencingTable, const TTableWindowData::value_type &_pReferencedTable)
 
virtual ~OQueryTableConnectionData () 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 connection. More...
 
OUString const & GetAliasName (EConnectionSide nWhich) const
 
sal_Int32 GetFieldIndex (EConnectionSide nWhich) const
 
void SetFieldIndex (EConnectionSide nWhich, sal_Int32 nVal)
 
void InitFromDrag (const OTableFieldDescRef &rDragLeft, const OTableFieldDescRef &rDragRight)
 
EJoinType GetJoinType () const
 
void SetJoinType (const EJoinType &eJT)
 
void setNatural (bool _bNatural)
 
bool isNatural () const
 
- 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

OQueryTableConnectionDataoperator= (const OQueryTableConnectionData &rConnData)
 

Private Attributes

sal_Int32 m_nFromEntryIndex
 
sal_Int32 m_nDestEntryIndex
 
EJoinType m_eJoinType
 
bool m_bNatural
 

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 27 of file QTableConnectionData.hxx.

Constructor & Destructor Documentation

◆ OQueryTableConnectionData() [1/3]

OQueryTableConnectionData::OQueryTableConnectionData ( )

Definition at line 27 of file QTableConnectionData.cxx.

◆ OQueryTableConnectionData() [2/3]

OQueryTableConnectionData::OQueryTableConnectionData ( const OQueryTableConnectionData rConnData)

Definition at line 35 of file QTableConnectionData.cxx.

◆ OQueryTableConnectionData() [3/3]

OQueryTableConnectionData::OQueryTableConnectionData ( const TTableWindowData::value_type &  _pReferencingTable,
const TTableWindowData::value_type &  _pReferencedTable 
)

Definition at line 44 of file QTableConnectionData.cxx.

◆ ~OQueryTableConnectionData()

OQueryTableConnectionData::~OQueryTableConnectionData ( )
overridevirtual

Definition at line 54 of file QTableConnectionData.cxx.

Member Function Documentation

◆ CopyFrom()

void OQueryTableConnectionData::CopyFrom ( const OTableConnectionData rSource)
overridevirtual

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

Reimplemented from dbaui::OTableConnectionData.

Definition at line 58 of file QTableConnectionData.cxx.

◆ GetAliasName()

OUString const & OQueryTableConnectionData::GetAliasName ( EConnectionSide  nWhich) const

◆ GetFieldIndex()

sal_Int32 dbaui::OQueryTableConnectionData::GetFieldIndex ( EConnectionSide  nWhich) const
inline

◆ GetJoinType()

EJoinType dbaui::OQueryTableConnectionData::GetJoinType ( ) const
inline

◆ InitFromDrag()

void OQueryTableConnectionData::InitFromDrag ( const OTableFieldDescRef rDragLeft,
const OTableFieldDescRef rDragRight 
)

◆ isNatural()

bool dbaui::OQueryTableConnectionData::isNatural ( ) const
inline

◆ NewInstance()

std::shared_ptr< OTableConnectionData > OQueryTableConnectionData::NewInstance ( ) const
overridevirtual

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 102 of file QTableConnectionData.cxx.

◆ operator=()

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

◆ SetFieldIndex()

void dbaui::OQueryTableConnectionData::SetFieldIndex ( EConnectionSide  nWhich,
sal_Int32  nVal 
)
inline

Definition at line 54 of file QTableConnectionData.hxx.

References dbaui::JTCS_TO, m_nDestEntryIndex, and m_nFromEntryIndex.

Referenced by InitFromDrag().

◆ SetJoinType()

void dbaui::OQueryTableConnectionData::SetJoinType ( const EJoinType eJT)
inline

Definition at line 59 of file QTableConnectionData.hxx.

References m_eJoinType.

◆ setNatural()

void dbaui::OQueryTableConnectionData::setNatural ( bool  _bNatural)
inline

Definition at line 61 of file QTableConnectionData.hxx.

References m_bNatural.

◆ Update()

bool OQueryTableConnectionData::Update ( )
overridevirtual

Update create a new connection.

Returns
true if successful

Reimplemented from dbaui::OTableConnectionData.

Definition at line 107 of file QTableConnectionData.cxx.

Member Data Documentation

◆ m_bNatural

bool dbaui::OQueryTableConnectionData::m_bNatural
private

Definition at line 32 of file QTableConnectionData.hxx.

Referenced by isNatural(), operator=(), and setNatural().

◆ m_eJoinType

EJoinType dbaui::OQueryTableConnectionData::m_eJoinType
private

Definition at line 31 of file QTableConnectionData.hxx.

Referenced by GetJoinType(), operator=(), and SetJoinType().

◆ m_nDestEntryIndex

sal_Int32 dbaui::OQueryTableConnectionData::m_nDestEntryIndex
private

Definition at line 30 of file QTableConnectionData.hxx.

Referenced by GetFieldIndex(), operator=(), and SetFieldIndex().

◆ m_nFromEntryIndex

sal_Int32 dbaui::OQueryTableConnectionData::m_nFromEntryIndex
private

Definition at line 29 of file QTableConnectionData.hxx.

Referenced by GetFieldIndex(), operator=(), and SetFieldIndex().


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