|
LibreOffice Module dbaccess (master) 1
|
#include <RTableConnectionData.hxx>
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< OTableConnectionData > | NewInstance () 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< OTableConnectionData > | NewInstance () 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 OConnectionLineDataVec & | GetConnLineDataList () const |
| OConnectionLineDataVec & | GetConnLineDataList () |
| 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 |
| ORelationTableConnectionData & | operator= (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 () |
| OTableConnectionData & | operator= (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 |
Definition at line 32 of file RTableConnectionData.hxx.
| ORelationTableConnectionData::ORelationTableConnectionData | ( | ) |
Definition at line 43 of file RTableConnectionData.cxx.
References Undefined.
| ORelationTableConnectionData::ORelationTableConnectionData | ( | const ORelationTableConnectionData & | rConnData | ) |
Definition at line 64 of file RTableConnectionData.cxx.
| ORelationTableConnectionData::ORelationTableConnectionData | ( | const TTableWindowData::value_type & | _pReferencingTable, |
| const TTableWindowData::value_type & | _pReferencedTable, | ||
| const OUString & | rConnName = OUString() |
||
| ) |
Definition at line 50 of file RTableConnectionData.cxx.
References dbaui::OTableConnectionData::m_aConnName, SetCardinality(), and Undefined.
|
overridevirtual |
Definition at line 70 of file RTableConnectionData.cxx.
| void ORelationTableConnectionData::ChangeOrientation | ( | ) |
Definition at line 103 of file RTableConnectionData.cxx.
References dbaui::OTableConnectionData::m_pReferencedTable, dbaui::OTableConnectionData::m_pReferencingTable, and dbaui::OTableConnectionData::m_vConnLineData.
Referenced by IsConnectionPossible().
|
private |
Definition at line 139 of file RTableConnectionData.cxx.
References dbtools::getPrimaryKeyColumns_throw(), and dbaui::OTableConnectionData::m_vConnLineData.
Referenced by IsDestPrimKey(), and IsSourcePrimKey().
|
overridevirtual |
initialise from a source (more comfortable than a virtual assignment operator)
Reimplemented from dbaui::OTableConnectionData.
Definition at line 178 of file RTableConnectionData.cxx.
| void ORelationTableConnectionData::DropRelation | ( | ) |
Definition at line 74 of file RTableConnectionData.cxx.
References dbaui::OTableConnectionData::getReferencingTable(), i, dbaui::OTableConnectionData::m_aConnName, m_aMutex, nCount, PROPERTY_NAME(), and sName.
Referenced by dbaui::ORelationTableView::RemoveConnection(), and Update().
|
inline |
Definition at line 71 of file RTableConnectionData.hxx.
References m_nCardinality.
Referenced by operator=().
|
inline |
Definition at line 70 of file RTableConnectionData.hxx.
References m_nDeleteRules.
Referenced by dbaui::ORelationDialog::Init(), operator=(), and Update().
|
inline |
Definition at line 69 of file RTableConnectionData.hxx.
References m_nUpdateRules.
Referenced by dbaui::ORelationDialog::Init(), operator=(), and Update().
| void ORelationTableConnectionData::IsConnectionPossible | ( | ) |
Definition at line 169 of file RTableConnectionData.cxx.
References ChangeOrientation(), IsDestPrimKey(), IsSourcePrimKey(), and m_aMutex.
Referenced by Update().
|
inlineprivate |
Definition at line 45 of file RTableConnectionData.hxx.
References checkPrimaryKey(), dbaui::OTableConnectionData::getReferencedTable(), and dbaui::JTCS_TO.
Referenced by IsConnectionPossible(), and SetCardinality().
|
inlineprivate |
Definition at line 44 of file RTableConnectionData.hxx.
References checkPrimaryKey(), dbaui::OTableConnectionData::getReferencingTable(), and dbaui::JTCS_FROM.
Referenced by IsConnectionPossible(), and SetCardinality().
|
inlineoverridevirtual |
deliver a new instance of my own type
derived classes have to deliver an instance of their own type
Reimplemented from dbaui::OTableConnectionData.
Definition at line 57 of file RTableConnectionData.hxx.
|
private |
Definition at line 184 of file RTableConnectionData.cxx.
References GetCardinality(), GetDeleteRules(), GetUpdateRules(), m_nCardinality, m_nDeleteRules, m_nUpdateRules, and dbaui::OTableConnectionData::operator=().
| void ORelationTableConnectionData::SetCardinality | ( | ) |
Definition at line 118 of file RTableConnectionData.cxx.
References IsDestPrimKey(), IsSourcePrimKey(), m_aMutex, m_nCardinality, dbaui::ManyOne, dbaui::OneMany, dbaui::OneOne, and dbaui::Undefined.
Referenced by ORelationTableConnectionData(), and Update().
|
inline |
Definition at line 67 of file RTableConnectionData.hxx.
References m_nDeleteRules.
|
inline |
Definition at line 66 of file RTableConnectionData.hxx.
References m_nUpdateRules.
|
overridevirtual |
Update create a new relation.
Reimplemented from dbaui::OTableConnectionData.
Definition at line 227 of file RTableConnectionData.cxx.
References Any, DBA_RES, DropRelation(), Exception, GetDeleteRules(), dbaui::OTableConnectionData::getReferencedTable(), dbaui::OTableConnectionData::getReferencingTable(), GetUpdateRules(), i, IsConnectionPossible(), dbaui::OTableConnectionData::m_aConnName, m_aMutex, dbaui::OTableConnectionData::m_vConnLineData, PROPERTY_DELETERULE(), PROPERTY_NAME(), PROPERTY_REFERENCEDTABLE(), PROPERTY_RELATEDCOLUMN(), PROPERTY_TYPE(), PROPERTY_UPDATERULE(), SetCardinality(), sName, and xColumn.
|
friend |
Definition at line 199 of file RTableConnectionData.cxx.
|
private |
Definition at line 36 of file RTableConnectionData.hxx.
Referenced by DropRelation(), IsConnectionPossible(), SetCardinality(), and Update().
|
private |
Definition at line 41 of file RTableConnectionData.hxx.
Referenced by GetCardinality(), operator=(), and SetCardinality().
|
private |
Definition at line 40 of file RTableConnectionData.hxx.
Referenced by GetDeleteRules(), operator=(), and SetDeleteRules().
|
private |
Definition at line 39 of file RTableConnectionData.hxx.
Referenced by GetUpdateRules(), operator=(), and SetUpdateRules().