LibreOffice Module connectivity (master) 1
|
#include <Awrapado.hxx>
Public Member Functions | |
WpADOConnection ()=default | |
WpADOConnection (const WpADOConnection &rhs) | |
WpADOConnection & | operator= (const WpADOConnection &rhs) |
WpADOProperties | get_Properties () const |
OUString | GetConnectionString () const |
bool | PutConnectionString (std::u16string_view aCon) const |
sal_Int32 | GetCommandTimeout () const |
void | PutCommandTimeout (sal_Int32 nRet) |
sal_Int32 | GetConnectionTimeout () const |
void | PutConnectionTimeout (sal_Int32 nRet) |
bool | Close () |
bool | Execute (std::u16string_view CommandText, OLEVariant &RecordsAffected, long Options, WpADORecordset **ppiRset) |
bool | BeginTrans () |
bool | CommitTrans () |
bool | RollbackTrans () |
bool | Open (std::u16string_view ConnectionString, std::u16string_view UserID, std::u16string_view Password, long Options) |
bool | GetErrors (ADOErrors **pErrors) |
OUString | GetDefaultDatabase () const |
bool | PutDefaultDatabase (std::u16string_view _bstr) |
IsolationLevelEnum | get_IsolationLevel () const |
bool | put_IsolationLevel (const IsolationLevelEnum &eNum) |
sal_Int32 | get_Attributes () const |
bool | put_Attributes (sal_Int32 nRet) |
CursorLocationEnum | get_CursorLocation () const |
bool | put_CursorLocation (const CursorLocationEnum &eNum) |
ConnectModeEnum | get_Mode () const |
bool | put_Mode (const ConnectModeEnum &eNum) |
OUString | get_Provider () const |
bool | put_Provider (std::u16string_view _bstr) |
sal_Int32 | get_State () const |
bool | OpenSchema (SchemaEnum eNum, OLEVariant const &Restrictions, OLEVariant const &SchemaID, ADORecordset **pprset) |
OUString | get_Version () const |
ADORecordset * | getExportedKeys (const css::uno::Any &catalog, const OUString &schema, std::u16string_view table) |
ADORecordset * | getImportedKeys (const css::uno::Any &catalog, const OUString &schema, std::u16string_view table) |
ADORecordset * | getPrimaryKeys (const css::uno::Any &catalog, const OUString &schema, std::u16string_view table) |
ADORecordset * | getIndexInfo (const css::uno::Any &catalog, const OUString &schema, std::u16string_view table, bool unique, bool approximate) |
ADORecordset * | getTablePrivileges (const css::uno::Any &catalog, const OUString &schemaPattern, std::u16string_view tableNamePattern) |
ADORecordset * | getCrossReference (const css::uno::Any &primaryCatalog, const OUString &primarySchema, std::u16string_view primaryTable, const css::uno::Any &foreignCatalog, const OUString &foreignSchema, std::u16string_view foreignTable) |
ADORecordset * | getProcedures (const css::uno::Any &catalog, const OUString &schemaPattern, std::u16string_view procedureNamePattern) |
ADORecordset * | getProcedureColumns (const css::uno::Any &catalog, const OUString &schemaPattern, std::u16string_view procedureNamePattern, std::u16string_view columnNamePattern) |
ADORecordset * | getTables (const css::uno::Any &catalog, const OUString &schemaPattern, std::u16string_view tableNamePattern, const css::uno::Sequence< OUString > &types) |
ADORecordset * | getColumns (const css::uno::Any &catalog, const OUString &schemaPattern, std::u16string_view tableNamePattern, std::u16string_view columnNamePattern) |
ADORecordset * | getColumnPrivileges (const css::uno::Any &catalog, const OUString &schemaPattern, std::u16string_view table, std::u16string_view columnNamePattern) |
ADORecordset * | getTypeInfo (DataTypeEnum _eType=adEmpty) |
Public Member Functions inherited from connectivity::ado::WpOLEBase< ADOConnection > | |
WpOLEBase (ADOConnection *pInt=nullptr) | |
WpOLEBase (const WpOLEBase< ADOConnection > &aWrapper) | |
WpOLEBase< ADOConnection > & | operator= (const WpOLEBase< ADOConnection > &rhs) |
operator ADOConnection * () const | |
ADOConnection ** | operator& () |
bool | IsValid () const |
void | set (ADOConnection *p) |
void | clear () |
Additional Inherited Members | |
Protected Attributes inherited from connectivity::ado::WpOLEBase< ADOConnection > | |
sal::systools::COMReference< ADOConnection > | pInterface |
Definition at line 49 of file Awrapado.hxx.
|
default |
|
inline |
Definition at line 55 of file Awrapado.hxx.
bool WpADOConnection::BeginTrans | ( | ) |
Definition at line 103 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
Referenced by connectivity::ado::OConnection::setAutoCommit().
bool WpADOConnection::Close | ( | ) |
Definition at line 89 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
Referenced by connectivity::ado::OConnection::disposing().
bool WpADOConnection::CommitTrans | ( | ) |
Definition at line 110 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
Referenced by connectivity::ado::OConnection::commit().
bool WpADOConnection::Execute | ( | std::u16string_view | CommandText, |
OLEVariant & | RecordsAffected, | ||
long | Options, | ||
WpADORecordset ** | ppiRset | ||
) |
Definition at line 95 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
sal_Int32 WpADOConnection::get_Attributes | ( | ) | const |
Definition at line 168 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
CursorLocationEnum WpADOConnection::get_CursorLocation | ( | ) | const |
Definition at line 182 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
IsolationLevelEnum WpADOConnection::get_IsolationLevel | ( | ) | const |
Definition at line 154 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
Referenced by connectivity::ado::ODatabaseMetaData::getDefaultTransactionIsolation(), and connectivity::ado::OConnection::getTransactionIsolation().
ConnectModeEnum WpADOConnection::get_Mode | ( | ) | const |
Definition at line 196 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
Referenced by connectivity::ado::OConnection::isReadOnly().
WpADOProperties WpADOConnection::get_Properties | ( | ) | const |
Definition at line 37 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
Referenced by connectivity::ado::ODatabaseMetaData::getBoolProperty(), connectivity::ado::ODatabaseMetaData::getInt32Property(), connectivity::ado::ODatabaseMetaData::getStringProperty(), and connectivity::ado::OConnection::nativeSQL().
OUString WpADOConnection::get_Provider | ( | ) | const |
Definition at line 210 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
sal_Int32 WpADOConnection::get_State | ( | ) | const |
Definition at line 224 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
Referenced by connectivity::ado::OConnection::isClosed().
OUString WpADOConnection::get_Version | ( | ) | const |
Definition at line 238 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
ADORecordset * WpADOConnection::getColumnPrivileges | ( | const css::uno::Any & | catalog, |
const OUString & | schemaPattern, | ||
std::u16string_view | table, | ||
std::u16string_view | columnNamePattern | ||
) |
Definition at line 1907 of file Awrapado.cxx.
References nPos, OpenSchema(), connectivity::ado::OLEVariant::setArray(), connectivity::ado::OLEVariant::setNoArg(), connectivity::ado::OLEVariant::setString(), table, and VT_VARIANT.
ADORecordset * WpADOConnection::getColumns | ( | const css::uno::Any & | catalog, |
const OUString & | schemaPattern, | ||
std::u16string_view | tableNamePattern, | ||
std::u16string_view | columnNamePattern | ||
) |
Definition at line 1863 of file Awrapado.cxx.
References nPos, OpenSchema(), connectivity::ado::OLEVariant::setArray(), connectivity::ado::OLEVariant::setNoArg(), connectivity::ado::OLEVariant::setString(), o3tl::starts_with(), u, and VT_VARIANT.
sal_Int32 WpADOConnection::GetCommandTimeout | ( | ) | const |
Definition at line 61 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
OUString WpADOConnection::GetConnectionString | ( | ) | const |
Definition at line 44 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
Referenced by connectivity::ado::ODatabaseMetaData::getURL().
sal_Int32 WpADOConnection::GetConnectionTimeout | ( | ) | const |
Definition at line 75 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
ADORecordset * WpADOConnection::getCrossReference | ( | const css::uno::Any & | primaryCatalog, |
const OUString & | primarySchema, | ||
std::u16string_view | primaryTable, | ||
const css::uno::Any & | foreignCatalog, | ||
const OUString & | foreignSchema, | ||
std::u16string_view | foreignTable | ||
) |
Definition at line 1663 of file Awrapado.cxx.
References nPos, OpenSchema(), connectivity::ado::OLEVariant::setArray(), connectivity::ado::OLEVariant::setNoArg(), connectivity::ado::OLEVariant::setString(), and VT_VARIANT.
OUString WpADOConnection::GetDefaultDatabase | ( | ) | const |
Definition at line 138 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
Referenced by connectivity::ado::OConnection::getCatalog().
bool WpADOConnection::GetErrors | ( | ADOErrors ** | pErrors | ) |
Definition at line 132 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
ADORecordset * WpADOConnection::getExportedKeys | ( | const css::uno::Any & | catalog, |
const OUString & | schema, | ||
std::u16string_view | table | ||
) |
Definition at line 1458 of file Awrapado.cxx.
References nPos, OpenSchema(), connectivity::ado::OLEVariant::setArray(), connectivity::ado::OLEVariant::setNoArg(), connectivity::ado::OLEVariant::setString(), table, and VT_VARIANT.
ADORecordset * WpADOConnection::getImportedKeys | ( | const css::uno::Any & | catalog, |
const OUString & | schema, | ||
std::u16string_view | table | ||
) |
Definition at line 1498 of file Awrapado.cxx.
References nPos, OpenSchema(), connectivity::ado::OLEVariant::setArray(), connectivity::ado::OLEVariant::setNoArg(), connectivity::ado::OLEVariant::setString(), table, and VT_VARIANT.
ADORecordset * WpADOConnection::getIndexInfo | ( | const css::uno::Any & | catalog, |
const OUString & | schema, | ||
std::u16string_view | table, | ||
bool | unique, | ||
bool | approximate | ||
) |
Definition at line 1578 of file Awrapado.cxx.
References nPos, OpenSchema(), connectivity::ado::OLEVariant::setArray(), connectivity::ado::OLEVariant::setNoArg(), connectivity::ado::OLEVariant::setString(), table, and VT_VARIANT.
ADORecordset * WpADOConnection::getPrimaryKeys | ( | const css::uno::Any & | catalog, |
const OUString & | schema, | ||
std::u16string_view | table | ||
) |
Definition at line 1540 of file Awrapado.cxx.
References nPos, OpenSchema(), connectivity::ado::OLEVariant::setArray(), connectivity::ado::OLEVariant::setNoArg(), connectivity::ado::OLEVariant::setString(), table, and VT_VARIANT.
ADORecordset * WpADOConnection::getProcedureColumns | ( | const css::uno::Any & | catalog, |
const OUString & | schemaPattern, | ||
std::u16string_view | procedureNamePattern, | ||
std::u16string_view | columnNamePattern | ||
) |
Definition at line 1755 of file Awrapado.cxx.
References nPos, OpenSchema(), connectivity::ado::OLEVariant::setArray(), connectivity::ado::OLEVariant::setNoArg(), connectivity::ado::OLEVariant::setString(), o3tl::starts_with(), u, and VT_VARIANT.
ADORecordset * WpADOConnection::getProcedures | ( | const css::uno::Any & | catalog, |
const OUString & | schemaPattern, | ||
std::u16string_view | procedureNamePattern | ||
) |
Definition at line 1716 of file Awrapado.cxx.
References nPos, OpenSchema(), connectivity::ado::OLEVariant::setArray(), connectivity::ado::OLEVariant::setNoArg(), connectivity::ado::OLEVariant::setString(), o3tl::starts_with(), u, and VT_VARIANT.
ADORecordset * WpADOConnection::getTablePrivileges | ( | const css::uno::Any & | catalog, |
const OUString & | schemaPattern, | ||
std::u16string_view | tableNamePattern | ||
) |
Definition at line 1621 of file Awrapado.cxx.
References nPos, OpenSchema(), connectivity::ado::OLEVariant::setArray(), connectivity::ado::OLEVariant::setNoArg(), connectivity::ado::OLEVariant::setString(), o3tl::starts_with(), u, and VT_VARIANT.
ADORecordset * WpADOConnection::getTables | ( | const css::uno::Any & | catalog, |
const OUString & | schemaPattern, | ||
std::u16string_view | tableNamePattern, | ||
const css::uno::Sequence< OUString > & | types | ||
) |
Definition at line 1800 of file Awrapado.cxx.
References aTypes, hr, i, LONG, nPos, OpenSchema(), sCatalog, connectivity::ado::OLEVariant::setArray(), connectivity::ado::OLEVariant::setNoArg(), connectivity::ado::OLEVariant::setString(), o3tl::starts_with(), u, and VT_VARIANT.
ADORecordset * WpADOConnection::getTypeInfo | ( | DataTypeEnum | _eType = adEmpty | ) |
Definition at line 1950 of file Awrapado.cxx.
References nPos, OpenSchema(), connectivity::ado::OLEVariant::setArray(), connectivity::ado::OLEVariant::setNoArg(), and VT_VARIANT.
Referenced by connectivity::ado::OConnection::buildTypeInfo(), and connectivity::ado::ODatabaseMetaData::impl_getTypeInfo_throw().
bool WpADOConnection::Open | ( | std::u16string_view | ConnectionString, |
std::u16string_view | UserID, | ||
std::u16string_view | Password, | ||
long | Options | ||
) |
Definition at line 122 of file Awrapado.cxx.
References Password, and connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
bool WpADOConnection::OpenSchema | ( | SchemaEnum | eNum, |
OLEVariant const & | Restrictions, | ||
OLEVariant const & | SchemaID, | ||
ADORecordset ** | pprset | ||
) |
Definition at line 232 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
Referenced by connectivity::ado::ODatabaseMetaData::fillLiterals(), connectivity::ado::ODatabaseMetaData::getCatalogs(), getColumnPrivileges(), getColumns(), getCrossReference(), getExportedKeys(), getImportedKeys(), getIndexInfo(), getPrimaryKeys(), getProcedureColumns(), getProcedures(), connectivity::ado::ODatabaseMetaData::getSchemas(), connectivity::ado::ODatabaseMetaData::getSQLKeywords(), getTablePrivileges(), getTables(), and getTypeInfo().
|
inline |
Definition at line 57 of file Awrapado.hxx.
References connectivity::ado::WpOLEBase< T >::operator=().
bool WpADOConnection::put_Attributes | ( | sal_Int32 | nRet | ) |
Definition at line 176 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
bool WpADOConnection::put_CursorLocation | ( | const CursorLocationEnum & | eNum | ) |
Definition at line 190 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
bool WpADOConnection::put_IsolationLevel | ( | const IsolationLevelEnum & | eNum | ) |
Definition at line 162 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
Referenced by connectivity::ado::OConnection::setTransactionIsolation().
bool WpADOConnection::put_Mode | ( | const ConnectModeEnum & | eNum | ) |
Definition at line 204 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
Referenced by connectivity::ado::OConnection::setReadOnly().
bool WpADOConnection::put_Provider | ( | std::u16string_view | _bstr | ) |
Definition at line 217 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
void WpADOConnection::PutCommandTimeout | ( | sal_Int32 | nRet | ) |
Definition at line 69 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
bool WpADOConnection::PutConnectionString | ( | std::u16string_view | aCon | ) | const |
Definition at line 52 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
void WpADOConnection::PutConnectionTimeout | ( | sal_Int32 | nRet | ) |
Definition at line 83 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
bool WpADOConnection::PutDefaultDatabase | ( | std::u16string_view | _bstr | ) |
Definition at line 145 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
Referenced by connectivity::ado::OConnection::setCatalog().
bool WpADOConnection::RollbackTrans | ( | ) |
Definition at line 116 of file Awrapado.cxx.
References connectivity::ado::WpOLEBase< ADOConnection >::pInterface.
Referenced by connectivity::ado::OConnection::rollback(), and connectivity::ado::OConnection::setAutoCommit().