LibreOffice Module connectivity (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
pq_sdbc_driver::ResultSetMetaData Class Reference

#include <pq_resultsetmetadata.hxx>

Inheritance diagram for pq_sdbc_driver::ResultSetMetaData:
[legend]
Collaboration diagram for pq_sdbc_driver::ResultSetMetaData:
[legend]

Public Member Functions

 ResultSetMetaData (::rtl::Reference< comphelper::RefCountedMutex > reMutex, css::uno::Reference< css::sdbc::XResultSet > origin, ResultSet *pResultSet, ConnectionSettings **pSettings, PGresult const *pResult, OUString schemaName, OUString tableName)
 
virtual sal_Int32 SAL_CALL getColumnCount () override
 
virtual sal_Bool SAL_CALL isAutoIncrement (sal_Int32 column) override
 
virtual sal_Bool SAL_CALL isCaseSensitive (sal_Int32 column) override
 
virtual sal_Bool SAL_CALL isSearchable (sal_Int32 column) override
 
virtual sal_Bool SAL_CALL isCurrency (sal_Int32 column) override
 
virtual sal_Int32 SAL_CALL isNullable (sal_Int32 column) override
 
virtual sal_Bool SAL_CALL isSigned (sal_Int32 column) override
 
virtual sal_Int32 SAL_CALL getColumnDisplaySize (sal_Int32 column) override
 
virtual OUString SAL_CALL getColumnLabel (sal_Int32 column) override
 
virtual OUString SAL_CALL getColumnName (sal_Int32 column) override
 
virtual OUString SAL_CALL getSchemaName (sal_Int32 column) override
 
virtual sal_Int32 SAL_CALL getPrecision (sal_Int32 column) override
 
virtual sal_Int32 SAL_CALL getScale (sal_Int32 column) override
 
virtual OUString SAL_CALL getTableName (sal_Int32 column) override
 
virtual OUString SAL_CALL getCatalogName (sal_Int32 column) override
 
virtual sal_Int32 SAL_CALL getColumnType (sal_Int32 column) override
 
virtual OUString SAL_CALL getColumnTypeName (sal_Int32 column) override
 
virtual sal_Bool SAL_CALL isReadOnly (sal_Int32 column) override
 
virtual sal_Bool SAL_CALL isWritable (sal_Int32 column) override
 
virtual sal_Bool SAL_CALL isDefinitelyWritable (sal_Int32 column) override
 
virtual OUString SAL_CALL getColumnServiceName (sal_Int32 column) override
 

Private Member Functions

void checkColumnIndex (sal_Int32 columnIndex)
 
void checkTable ()
 
void checkForTypes ()
 
css::uno::Reference< css::beans::XPropertySetgetColumnByIndex (int index)
 
sal_Int32 getIntColumnProperty (const OUString &name, int index, int def)
 
bool getBoolColumnProperty (const OUString &name, int index, bool def)
 

Private Attributes

::rtl::Reference< comphelper::RefCountedMutexm_xMutex
 
ConnectionSettings ** m_ppSettings
 
css::uno::Reference< css::sdbc::XResultSet > m_origin
 
css::uno::Reference< css::beans::XPropertySetm_table
 
OUString m_tableName
 
OUString m_schemaName
 
std::vector< ColDescm_colDesc
 
ResultSetm_pResultSet
 
bool m_checkedForTable
 
bool m_checkedForTypes
 
sal_Int32 m_colCount
 

Detailed Description

Definition at line 63 of file pq_resultsetmetadata.hxx.

Constructor & Destructor Documentation

◆ ResultSetMetaData()

pq_sdbc_driver::ResultSetMetaData::ResultSetMetaData ( ::rtl::Reference< comphelper::RefCountedMutex reMutex,
css::uno::Reference< css::sdbc::XResultSet >  origin,
ResultSet pResultSet,
ConnectionSettings **  pSettings,
PGresult const *  pResult,
OUString  schemaName,
OUString  tableName 
)

Member Function Documentation

◆ checkColumnIndex()

void pq_sdbc_driver::ResultSetMetaData::checkColumnIndex ( sal_Int32  columnIndex)
private
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 428 of file pq_resultsetmetadata.cxx.

References Any, and m_colCount.

Referenced by getBoolColumnProperty(), getColumnDisplaySize(), getColumnName(), getColumnTypeName(), getIntColumnProperty(), getPrecision(), and getScale().

◆ checkForTypes()

void pq_sdbc_driver::ResultSetMetaData::checkForTypes ( )
private

◆ checkTable()

void pq_sdbc_driver::ResultSetMetaData::checkTable ( )
private

◆ getBoolColumnProperty()

bool pq_sdbc_driver::ResultSetMetaData::getBoolColumnProperty ( const OUString &  name,
int  index,
bool  def 
)
private

Definition at line 241 of file pq_resultsetmetadata.cxx.

References checkColumnIndex(), getColumnByIndex(), index, m_xMutex, name, and set().

Referenced by isAutoIncrement(), and isCurrency().

◆ getCatalogName()

OUString pq_sdbc_driver::ResultSetMetaData::getCatalogName ( sal_Int32  column)
overridevirtual

Definition at line 365 of file pq_resultsetmetadata.cxx.

◆ getColumnByIndex()

Reference< css::beans::XPropertySet > pq_sdbc_driver::ResultSetMetaData::getColumnByIndex ( int  index)
private

◆ getColumnCount()

sal_Int32 pq_sdbc_driver::ResultSetMetaData::getColumnCount ( )
overridevirtual

Definition at line 282 of file pq_resultsetmetadata.cxx.

References m_colCount.

◆ getColumnDisplaySize()

sal_Int32 pq_sdbc_driver::ResultSetMetaData::getColumnDisplaySize ( sal_Int32  column)
overridevirtual

Definition at line 320 of file pq_resultsetmetadata.cxx.

References checkColumnIndex(), m_colDesc, and m_xMutex.

◆ getColumnLabel()

OUString pq_sdbc_driver::ResultSetMetaData::getColumnLabel ( sal_Int32  column)
overridevirtual

Definition at line 327 of file pq_resultsetmetadata.cxx.

References getColumnName().

◆ getColumnName()

OUString pq_sdbc_driver::ResultSetMetaData::getColumnName ( sal_Int32  column)
overridevirtual

Definition at line 332 of file pq_resultsetmetadata.cxx.

References checkColumnIndex(), m_colDesc, and m_xMutex.

Referenced by getColumnByIndex(), and getColumnLabel().

◆ getColumnServiceName()

OUString pq_sdbc_driver::ResultSetMetaData::getColumnServiceName ( sal_Int32  column)
overridevirtual

Definition at line 423 of file pq_resultsetmetadata.cxx.

◆ getColumnType()

sal_Int32 pq_sdbc_driver::ResultSetMetaData::getColumnType ( sal_Int32  column)
overridevirtual

◆ getColumnTypeName()

OUString pq_sdbc_driver::ResultSetMetaData::getColumnTypeName ( sal_Int32  column)
overridevirtual

◆ getIntColumnProperty()

sal_Int32 pq_sdbc_driver::ResultSetMetaData::getIntColumnProperty ( const OUString &  name,
int  index,
int  def 
)
private

Definition at line 221 of file pq_resultsetmetadata.cxx.

References checkColumnIndex(), getColumnByIndex(), index, m_xMutex, name, and set().

Referenced by getColumnType(), and isNullable().

◆ getPrecision()

sal_Int32 pq_sdbc_driver::ResultSetMetaData::getPrecision ( sal_Int32  column)
overridevirtual

Definition at line 345 of file pq_resultsetmetadata.cxx.

References checkColumnIndex(), m_colDesc, and m_xMutex.

◆ getScale()

sal_Int32 pq_sdbc_driver::ResultSetMetaData::getScale ( sal_Int32  column)
overridevirtual

Definition at line 352 of file pq_resultsetmetadata.cxx.

References checkColumnIndex(), m_colDesc, and m_xMutex.

◆ getSchemaName()

OUString pq_sdbc_driver::ResultSetMetaData::getSchemaName ( sal_Int32  column)
overridevirtual

Definition at line 340 of file pq_resultsetmetadata.cxx.

References m_schemaName.

Referenced by checkTable().

◆ getTableName()

OUString pq_sdbc_driver::ResultSetMetaData::getTableName ( sal_Int32  column)
overridevirtual

Definition at line 359 of file pq_resultsetmetadata.cxx.

References m_tableName.

Referenced by checkTable().

◆ isAutoIncrement()

sal_Bool pq_sdbc_driver::ResultSetMetaData::isAutoIncrement ( sal_Int32  column)
overridevirtual

◆ isCaseSensitive()

sal_Bool pq_sdbc_driver::ResultSetMetaData::isCaseSensitive ( sal_Int32  column)
overridevirtual

Definition at line 294 of file pq_resultsetmetadata.cxx.

◆ isCurrency()

sal_Bool pq_sdbc_driver::ResultSetMetaData::isCurrency ( sal_Int32  column)
overridevirtual

◆ isDefinitelyWritable()

sal_Bool pq_sdbc_driver::ResultSetMetaData::isDefinitelyWritable ( sal_Int32  column)
overridevirtual

Definition at line 419 of file pq_resultsetmetadata.cxx.

References isWritable().

◆ isNullable()

sal_Int32 pq_sdbc_driver::ResultSetMetaData::isNullable ( sal_Int32  column)
overridevirtual

◆ isReadOnly()

sal_Bool pq_sdbc_driver::ResultSetMetaData::isReadOnly ( sal_Int32  column)
overridevirtual

Definition at line 409 of file pq_resultsetmetadata.cxx.

Referenced by isWritable().

◆ isSearchable()

sal_Bool pq_sdbc_driver::ResultSetMetaData::isSearchable ( sal_Int32  column)
overridevirtual

Definition at line 299 of file pq_resultsetmetadata.cxx.

◆ isSigned()

sal_Bool pq_sdbc_driver::ResultSetMetaData::isSigned ( sal_Int32  column)
overridevirtual

Definition at line 315 of file pq_resultsetmetadata.cxx.

◆ isWritable()

sal_Bool pq_sdbc_driver::ResultSetMetaData::isWritable ( sal_Int32  column)
overridevirtual

Definition at line 414 of file pq_resultsetmetadata.cxx.

References isReadOnly().

Referenced by isDefinitelyWritable().

Member Data Documentation

◆ m_checkedForTable

bool pq_sdbc_driver::ResultSetMetaData::m_checkedForTable
private

Definition at line 75 of file pq_resultsetmetadata.hxx.

Referenced by checkTable().

◆ m_checkedForTypes

bool pq_sdbc_driver::ResultSetMetaData::m_checkedForTypes
private

Definition at line 76 of file pq_resultsetmetadata.hxx.

Referenced by checkForTypes().

◆ m_colCount

sal_Int32 pq_sdbc_driver::ResultSetMetaData::m_colCount
private

◆ m_colDesc

std::vector< ColDesc > pq_sdbc_driver::ResultSetMetaData::m_colDesc
private

◆ m_origin

css::uno::Reference< css::sdbc::XResultSet > pq_sdbc_driver::ResultSetMetaData::m_origin
private

Definition at line 68 of file pq_resultsetmetadata.hxx.

Referenced by checkForTypes(), and checkTable().

◆ m_ppSettings

ConnectionSettings** pq_sdbc_driver::ResultSetMetaData::m_ppSettings
private

Definition at line 67 of file pq_resultsetmetadata.hxx.

◆ m_pResultSet

ResultSet* pq_sdbc_driver::ResultSetMetaData::m_pResultSet
private

Definition at line 73 of file pq_resultsetmetadata.hxx.

Referenced by getColumnType().

◆ m_schemaName

OUString pq_sdbc_driver::ResultSetMetaData::m_schemaName
private

Definition at line 71 of file pq_resultsetmetadata.hxx.

Referenced by getSchemaName().

◆ m_table

css::uno::Reference< css::beans::XPropertySet > pq_sdbc_driver::ResultSetMetaData::m_table
private

Definition at line 69 of file pq_resultsetmetadata.hxx.

Referenced by checkTable(), and getColumnByIndex().

◆ m_tableName

OUString pq_sdbc_driver::ResultSetMetaData::m_tableName
private

Definition at line 70 of file pq_resultsetmetadata.hxx.

Referenced by checkTable(), and getTableName().

◆ m_xMutex

::rtl::Reference< comphelper::RefCountedMutex > pq_sdbc_driver::ResultSetMetaData::m_xMutex
private

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