LibreOffice Module connectivity (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
connectivity::mysqlc::OResultSetMetaData Class Referencefinal

#include <mysqlc_resultsetmetadata.hxx>

Inheritance diagram for connectivity::mysqlc::OResultSetMetaData:
[legend]
Collaboration diagram for connectivity::mysqlc::OResultSetMetaData:
[legend]

Public Member Functions

 OResultSetMetaData (OConnection &rConn, MYSQL_RES *pResult)
 
sal_Int32 SAL_CALL getColumnCount () override
 
sal_Bool SAL_CALL isAutoIncrement (sal_Int32 column) override
 
sal_Bool SAL_CALL isCaseSensitive (sal_Int32 column) override
 
sal_Bool SAL_CALL isSearchable (sal_Int32 column) override
 
sal_Bool SAL_CALL isCurrency (sal_Int32 column) override
 
sal_Int32 SAL_CALL isNullable (sal_Int32 column) override
 
sal_Bool SAL_CALL isSigned (sal_Int32 column) override
 
sal_Int32 SAL_CALL getColumnDisplaySize (sal_Int32 column) override
 
OUString SAL_CALL getColumnLabel (sal_Int32 column) override
 
OUString SAL_CALL getColumnName (sal_Int32 column) override
 
OUString SAL_CALL getSchemaName (sal_Int32 column) override
 
sal_Int32 SAL_CALL getPrecision (sal_Int32 column) override
 
sal_Int32 SAL_CALL getScale (sal_Int32 column) override
 
OUString SAL_CALL getTableName (sal_Int32 column) override
 
OUString SAL_CALL getCatalogName (sal_Int32 column) override
 
sal_Int32 SAL_CALL getColumnType (sal_Int32 column) override
 
OUString SAL_CALL getColumnTypeName (sal_Int32 column) override
 
sal_Bool SAL_CALL isReadOnly (sal_Int32 column) override
 
sal_Bool SAL_CALL isWritable (sal_Int32 column) override
 
sal_Bool SAL_CALL isDefinitelyWritable (sal_Int32 column) override
 
OUString SAL_CALL getColumnServiceName (sal_Int32 column) override
 
- Public Member Functions inherited from cppu::WeakImplHelper1< class Ifc1 >
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Private Member Functions

void checkColumnIndex (sal_Int32 columnIndex)
 
virtual ~OResultSetMetaData () override=default
 

Private Attributes

OConnectionm_rConnection
 
std::vector< MySqlFieldInfom_fields
 

Additional Inherited Members

- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 52 of file mysqlc_resultsetmetadata.hxx.

Constructor & Destructor Documentation

◆ ~OResultSetMetaData()

virtual connectivity::mysqlc::OResultSetMetaData::~OResultSetMetaData ( )
overrideprivatevirtualdefault

◆ OResultSetMetaData()

OResultSetMetaData::OResultSetMetaData ( OConnection rConn,
MYSQL_RES *  pResult 
)

Member Function Documentation

◆ checkColumnIndex()

void OResultSetMetaData::checkColumnIndex ( sal_Int32  columnIndex)
private

◆ getCatalogName()

OUString SAL_CALL OResultSetMetaData::getCatalogName ( sal_Int32  column)
override

Definition at line 117 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex(), and m_fields.

◆ getColumnCount()

sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount ( )
override

Definition at line 78 of file mysqlc_resultsetmetadata.cxx.

References m_fields.

◆ getColumnDisplaySize()

sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize ( sal_Int32  column)
override

Definition at line 66 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex(), and m_fields.

◆ getColumnLabel()

OUString SAL_CALL OResultSetMetaData::getColumnLabel ( sal_Int32  column)
override

Definition at line 130 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex(), and getColumnName().

◆ getColumnName()

OUString SAL_CALL OResultSetMetaData::getColumnName ( sal_Int32  column)
override

Definition at line 105 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex(), and m_fields.

Referenced by getColumnLabel().

◆ getColumnServiceName()

OUString SAL_CALL OResultSetMetaData::getColumnServiceName ( sal_Int32  column)
override

Definition at line 136 of file mysqlc_resultsetmetadata.cxx.

◆ getColumnType()

sal_Int32 SAL_CALL OResultSetMetaData::getColumnType ( sal_Int32  column)
override

Definition at line 72 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex(), and m_fields.

◆ getColumnTypeName()

OUString SAL_CALL OResultSetMetaData::getColumnTypeName ( sal_Int32  column)
override

◆ getPrecision()

sal_Int32 SAL_CALL OResultSetMetaData::getPrecision ( sal_Int32  column)
override

Definition at line 158 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex(), and m_fields.

◆ getScale()

sal_Int32 SAL_CALL OResultSetMetaData::getScale ( sal_Int32  column)
override

Definition at line 164 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex(), and m_fields.

◆ getSchemaName()

OUString SAL_CALL OResultSetMetaData::getSchemaName ( sal_Int32  column)
override

Definition at line 99 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex(), and m_fields.

◆ getTableName()

OUString SAL_CALL OResultSetMetaData::getTableName ( sal_Int32  column)
override

Definition at line 111 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex(), and m_fields.

◆ isAutoIncrement()

sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement ( sal_Int32  column)
override

Definition at line 146 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex(), and m_fields.

◆ isCaseSensitive()

sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive ( sal_Int32  column)
override

◆ isCurrency()

sal_Bool SAL_CALL OResultSetMetaData::isCurrency ( sal_Int32  column)
override

Definition at line 141 of file mysqlc_resultsetmetadata.cxx.

◆ isDefinitelyWritable()

sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable ( sal_Int32  column)
override

Definition at line 188 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex(), and isReadOnly().

◆ isNullable()

sal_Int32 SAL_CALL OResultSetMetaData::isNullable ( sal_Int32  column)
override

Definition at line 170 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex(), and m_fields.

◆ isReadOnly()

sal_Bool SAL_CALL OResultSetMetaData::isReadOnly ( sal_Int32  column)
override

Definition at line 182 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex(), and m_fields.

Referenced by isDefinitelyWritable(), and isWritable().

◆ isSearchable()

sal_Bool SAL_CALL OResultSetMetaData::isSearchable ( sal_Int32  column)
override

Definition at line 176 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex().

◆ isSigned()

sal_Bool SAL_CALL OResultSetMetaData::isSigned ( sal_Int32  column)
override

Definition at line 152 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex(), and m_fields.

◆ isWritable()

sal_Bool SAL_CALL OResultSetMetaData::isWritable ( sal_Int32  column)
override

Definition at line 194 of file mysqlc_resultsetmetadata.cxx.

References checkColumnIndex(), and isReadOnly().

Member Data Documentation

◆ m_fields

std::vector<MySqlFieldInfo> connectivity::mysqlc::OResultSetMetaData::m_fields
private

◆ m_rConnection

OConnection& connectivity::mysqlc::OResultSetMetaData::m_rConnection
private

Definition at line 55 of file mysqlc_resultsetmetadata.hxx.

Referenced by isCaseSensitive(), and OResultSetMetaData().


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