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

#include <OResultSetMetaData.hxx>

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

Public Member Functions

 OResultSetMetaData (OConnection *_pConnection, SQLHANDLE _pStmt)
 
 OResultSetMetaData (OConnection *_pConnection, SQLHANDLE _pStmt, std::vector< sal_Int32 > &&_vMapping)
 
virtual ~OResultSetMetaData () override
 
oslGenericFunction getOdbcFunction (ODBC3SQLFunctionId _nIndex) const
 
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
 

Static Public Member Functions

static SQLLEN getNumColAttrib (OConnection const *_pConnection, SQLHANDLE _aStatementHandle, const css::uno::Reference< css::uno::XInterface > &_xInterface, sal_Int32 _column, sal_Int32 ident)
 
static SQLSMALLINT getColumnODBCType (OConnection const *_pConnection, SQLHANDLE _aStatementHandle, const css::uno::Reference< css::uno::XInterface > &_xInterface, sal_Int32 column)
 

Private Member Functions

OUString getCharColAttrib (sal_Int32 column, sal_Int32 ident)
 
sal_Int32 getNumColAttrib (sal_Int32 column, sal_Int32 ident)
 

Private Attributes

std::vector< sal_Int32 > m_vMapping
 
std::map< sal_Int32, sal_Int32 > m_aColumnTypes
 
SQLHANDLE m_aStatementHandle
 
OConnectionm_pConnection
 
sal_Int32 m_nColCount
 
bool m_bUseODBC2Types
 

Detailed Description

Definition at line 36 of file OResultSetMetaData.hxx.

Constructor & Destructor Documentation

◆ OResultSetMetaData() [1/2]

connectivity::odbc::OResultSetMetaData::OResultSetMetaData ( OConnection _pConnection,
SQLHANDLE  _pStmt 
)
inline

Definition at line 55 of file OResultSetMetaData.hxx.

◆ OResultSetMetaData() [2/2]

connectivity::odbc::OResultSetMetaData::OResultSetMetaData ( OConnection _pConnection,
SQLHANDLE  _pStmt,
std::vector< sal_Int32 > &&  _vMapping 
)
inline

Definition at line 61 of file OResultSetMetaData.hxx.

References size.

◆ ~OResultSetMetaData()

OResultSetMetaData::~OResultSetMetaData ( )
overridevirtual

Definition at line 29 of file OResultSetMetaData.cxx.

Member Function Documentation

◆ getCatalogName()

OUString SAL_CALL OResultSetMetaData::getCatalogName ( sal_Int32  column)
overridevirtual

Definition at line 193 of file OResultSetMetaData.cxx.

References getCharColAttrib().

◆ getCharColAttrib()

OUString OResultSetMetaData::getCharColAttrib ( sal_Int32  column,
sal_Int32  ident 
)
private

◆ getColumnCount()

sal_Int32 SAL_CALL OResultSetMetaData::getColumnCount ( )
overridevirtual

◆ getColumnDisplaySize()

sal_Int32 SAL_CALL OResultSetMetaData::getColumnDisplaySize ( sal_Int32  column)
overridevirtual

Definition at line 104 of file OResultSetMetaData.cxx.

References getNumColAttrib().

◆ getColumnLabel()

OUString SAL_CALL OResultSetMetaData::getColumnLabel ( sal_Int32  column)
overridevirtual

Definition at line 203 of file OResultSetMetaData.cxx.

References getCharColAttrib().

◆ getColumnName()

OUString SAL_CALL OResultSetMetaData::getColumnName ( sal_Int32  column)
overridevirtual

Definition at line 183 of file OResultSetMetaData.cxx.

References getCharColAttrib().

◆ getColumnODBCType()

SQLSMALLINT OResultSetMetaData::getColumnODBCType ( OConnection const *  _pConnection,
SQLHANDLE  _aStatementHandle,
const css::uno::Reference< css::uno::XInterface > &  _xInterface,
sal_Int32  column 
)
static
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 109 of file OResultSetMetaData.cxx.

References getNumColAttrib(), and nType.

Referenced by connectivity::odbc::ODatabaseMetaDataResultSet::impl_getColumnType_nothrow(), and connectivity::odbc::OResultSet::impl_getColumnType_nothrow().

◆ getColumnServiceName()

OUString SAL_CALL OResultSetMetaData::getColumnServiceName ( sal_Int32  column)
overridevirtual

Definition at line 208 of file OResultSetMetaData.cxx.

◆ getColumnType()

sal_Int32 SAL_CALL OResultSetMetaData::getColumnType ( sal_Int32  column)
overridevirtual

◆ getColumnTypeName()

OUString SAL_CALL OResultSetMetaData::getColumnTypeName ( sal_Int32  column)
overridevirtual

Definition at line 198 of file OResultSetMetaData.cxx.

References getCharColAttrib().

◆ getNumColAttrib() [1/2]

SQLLEN OResultSetMetaData::getNumColAttrib ( OConnection const *  _pConnection,
SQLHANDLE  _aStatementHandle,
const css::uno::Reference< css::uno::XInterface > &  _xInterface,
sal_Int32  _column,
sal_Int32  ident 
)
static
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 78 of file OResultSetMetaData.cxx.

References ColAttribute, connectivity::odbc::OConnection::getOdbcFunction(), nValue, and connectivity::odbc::OTools::ThrowException().

◆ getNumColAttrib() [2/2]

sal_Int32 OResultSetMetaData::getNumColAttrib ( sal_Int32  column,
sal_Int32  ident 
)
private

◆ getOdbcFunction()

oslGenericFunction connectivity::odbc::OResultSetMetaData::getOdbcFunction ( ODBC3SQLFunctionId  _nIndex) const
inline

◆ getPrecision()

sal_Int32 SAL_CALL OResultSetMetaData::getPrecision ( sal_Int32  column)
overridevirtual

Definition at line 231 of file OResultSetMetaData.cxx.

References getNumColAttrib(), m_bUseODBC2Types, and nType.

◆ getScale()

sal_Int32 SAL_CALL OResultSetMetaData::getScale ( sal_Int32  column)
overridevirtual

Definition at line 246 of file OResultSetMetaData.cxx.

References getNumColAttrib(), m_bUseODBC2Types, and nType.

◆ getSchemaName()

OUString SAL_CALL OResultSetMetaData::getSchemaName ( sal_Int32  column)
overridevirtual

Definition at line 177 of file OResultSetMetaData.cxx.

References getCharColAttrib().

◆ getTableName()

OUString SAL_CALL OResultSetMetaData::getTableName ( sal_Int32  column)
overridevirtual

Definition at line 188 of file OResultSetMetaData.cxx.

References getCharColAttrib().

◆ isAutoIncrement()

sal_Bool SAL_CALL OResultSetMetaData::isAutoIncrement ( sal_Int32  column)
overridevirtual

Definition at line 220 of file OResultSetMetaData.cxx.

References getNumColAttrib().

◆ isCaseSensitive()

sal_Bool SAL_CALL OResultSetMetaData::isCaseSensitive ( sal_Int32  column)
overridevirtual

Definition at line 171 of file OResultSetMetaData.cxx.

References getNumColAttrib().

◆ isCurrency()

sal_Bool SAL_CALL OResultSetMetaData::isCurrency ( sal_Int32  column)
overridevirtual

Definition at line 214 of file OResultSetMetaData.cxx.

References getNumColAttrib().

◆ isDefinitelyWritable()

sal_Bool SAL_CALL OResultSetMetaData::isDefinitelyWritable ( sal_Int32  column)
overridevirtual

Definition at line 280 of file OResultSetMetaData.cxx.

References getNumColAttrib().

◆ isNullable()

sal_Int32 SAL_CALL OResultSetMetaData::isNullable ( sal_Int32  column)
overridevirtual

Definition at line 262 of file OResultSetMetaData.cxx.

References getNumColAttrib().

◆ isReadOnly()

sal_Bool SAL_CALL OResultSetMetaData::isReadOnly ( sal_Int32  column)
overridevirtual

Definition at line 274 of file OResultSetMetaData.cxx.

References getNumColAttrib().

◆ isSearchable()

sal_Bool SAL_CALL OResultSetMetaData::isSearchable ( sal_Int32  column)
overridevirtual

Definition at line 268 of file OResultSetMetaData.cxx.

References getNumColAttrib().

◆ isSigned()

sal_Bool SAL_CALL OResultSetMetaData::isSigned ( sal_Int32  column)
overridevirtual

Definition at line 226 of file OResultSetMetaData.cxx.

References getNumColAttrib().

◆ isWritable()

sal_Bool SAL_CALL OResultSetMetaData::isWritable ( sal_Int32  column)
overridevirtual

Definition at line 285 of file OResultSetMetaData.cxx.

References getNumColAttrib().

Member Data Documentation

◆ m_aColumnTypes

std::map<sal_Int32,sal_Int32> connectivity::odbc::OResultSetMetaData::m_aColumnTypes
private

Definition at line 40 of file OResultSetMetaData.hxx.

Referenced by getColumnType().

◆ m_aStatementHandle

SQLHANDLE connectivity::odbc::OResultSetMetaData::m_aStatementHandle
private

Definition at line 42 of file OResultSetMetaData.hxx.

Referenced by getCharColAttrib(), getColumnCount(), and getNumColAttrib().

◆ m_bUseODBC2Types

bool connectivity::odbc::OResultSetMetaData::m_bUseODBC2Types
private

Definition at line 45 of file OResultSetMetaData.hxx.

Referenced by getColumnType(), getPrecision(), and getScale().

◆ m_nColCount

sal_Int32 connectivity::odbc::OResultSetMetaData::m_nColCount
private

Definition at line 44 of file OResultSetMetaData.hxx.

Referenced by getColumnCount().

◆ m_pConnection

OConnection* connectivity::odbc::OResultSetMetaData::m_pConnection
private

Definition at line 43 of file OResultSetMetaData.hxx.

Referenced by getCharColAttrib(), getColumnCount(), and getNumColAttrib().

◆ m_vMapping

std::vector<sal_Int32> connectivity::odbc::OResultSetMetaData::m_vMapping
private

Definition at line 39 of file OResultSetMetaData.hxx.

Referenced by getCharColAttrib(), and getNumColAttrib().


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