LibreOffice Module connectivity (master) 1
|
#include <pq_resultsetmetadata.hxx>
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::XPropertySet > | getColumnByIndex (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::RefCountedMutex > | m_xMutex |
ConnectionSettings ** | m_ppSettings |
css::uno::Reference< css::sdbc::XResultSet > | m_origin |
css::uno::Reference< css::beans::XPropertySet > | m_table |
OUString | m_tableName |
OUString | m_schemaName |
std::vector< ColDesc > | m_colDesc |
ResultSet * | m_pResultSet |
bool | m_checkedForTable |
bool | m_checkedForTypes |
sal_Int32 | m_colCount |
Definition at line 63 of file pq_resultsetmetadata.hxx.
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 | ||
) |
Definition at line 116 of file pq_resultsetmetadata.cxx.
References col, pq_sdbc_driver::ConnectionSettings::encoding, pq_sdbc_driver::extractPrecisionAndScale(), m_colCount, m_colDesc, name, precision, scale, and size.
|
private |
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().
|
private |
Definition at line 155 of file pq_resultsetmetadata.cxx.
References pq_sdbc_driver::extractConnectionFromStatement(), i, m_checkedForTypes, m_colCount, m_colDesc, m_origin, type, typeName, and pq_sdbc_driver::typeNameToDataType().
Referenced by getColumnType(), and getColumnTypeName().
|
private |
Definition at line 194 of file pq_resultsetmetadata.cxx.
References pq_sdbc_driver::extractConnectionFromStatement(), getSchemaName(), getTableName(), m_checkedForTable, m_origin, m_table, m_tableName, and name.
Referenced by getColumnByIndex().
|
private |
Definition at line 241 of file pq_resultsetmetadata.cxx.
References checkColumnIndex(), getColumnByIndex(), index, m_xMutex, name, and set().
Referenced by isAutoIncrement(), and isCurrency().
|
overridevirtual |
Definition at line 365 of file pq_resultsetmetadata.cxx.
|
private |
Definition at line 261 of file pq_resultsetmetadata.cxx.
References checkTable(), columnName, getColumnName(), index, and m_table.
Referenced by getBoolColumnProperty(), getColumnTypeName(), and getIntColumnProperty().
|
overridevirtual |
Definition at line 282 of file pq_resultsetmetadata.cxx.
References m_colCount.
|
overridevirtual |
Definition at line 320 of file pq_resultsetmetadata.cxx.
References checkColumnIndex(), m_colDesc, and m_xMutex.
|
overridevirtual |
Definition at line 327 of file pq_resultsetmetadata.cxx.
References getColumnName().
|
overridevirtual |
Definition at line 332 of file pq_resultsetmetadata.cxx.
References checkColumnIndex(), m_colDesc, and m_xMutex.
Referenced by getColumnByIndex(), and getColumnLabel().
|
overridevirtual |
Definition at line 423 of file pq_resultsetmetadata.cxx.
|
overridevirtual |
Definition at line 370 of file pq_resultsetmetadata.cxx.
References checkForTypes(), getIntColumnProperty(), pq_sdbc_driver::getStatics(), pq_sdbc_driver::ResultSet::guessDataType(), m_colDesc, m_pResultSet, type, and TYPE.
|
overridevirtual |
Definition at line 383 of file pq_resultsetmetadata.cxx.
References checkColumnIndex(), checkForTypes(), getColumnByIndex(), pq_sdbc_driver::getStatics(), m_colDesc, m_xMutex, and set().
|
private |
Definition at line 221 of file pq_resultsetmetadata.cxx.
References checkColumnIndex(), getColumnByIndex(), index, m_xMutex, name, and set().
Referenced by getColumnType(), and isNullable().
|
overridevirtual |
Definition at line 345 of file pq_resultsetmetadata.cxx.
References checkColumnIndex(), m_colDesc, and m_xMutex.
|
overridevirtual |
Definition at line 352 of file pq_resultsetmetadata.cxx.
References checkColumnIndex(), m_colDesc, and m_xMutex.
|
overridevirtual |
Definition at line 340 of file pq_resultsetmetadata.cxx.
References m_schemaName.
Referenced by checkTable().
|
overridevirtual |
Definition at line 359 of file pq_resultsetmetadata.cxx.
References m_tableName.
Referenced by checkTable().
|
overridevirtual |
Definition at line 287 of file pq_resultsetmetadata.cxx.
References getBoolColumnProperty(), and pq_sdbc_driver::getStatics().
|
overridevirtual |
Definition at line 294 of file pq_resultsetmetadata.cxx.
|
overridevirtual |
Definition at line 304 of file pq_resultsetmetadata.cxx.
References getBoolColumnProperty(), and pq_sdbc_driver::getStatics().
|
overridevirtual |
Definition at line 419 of file pq_resultsetmetadata.cxx.
References isWritable().
|
overridevirtual |
Definition at line 309 of file pq_resultsetmetadata.cxx.
References getIntColumnProperty(), and pq_sdbc_driver::getStatics().
|
overridevirtual |
Definition at line 409 of file pq_resultsetmetadata.cxx.
Referenced by isWritable().
|
overridevirtual |
Definition at line 299 of file pq_resultsetmetadata.cxx.
|
overridevirtual |
Definition at line 315 of file pq_resultsetmetadata.cxx.
|
overridevirtual |
Definition at line 414 of file pq_resultsetmetadata.cxx.
References isReadOnly().
Referenced by isDefinitelyWritable().
|
private |
Definition at line 75 of file pq_resultsetmetadata.hxx.
Referenced by checkTable().
|
private |
Definition at line 76 of file pq_resultsetmetadata.hxx.
Referenced by checkForTypes().
|
private |
Definition at line 78 of file pq_resultsetmetadata.hxx.
Referenced by checkColumnIndex(), checkForTypes(), getColumnCount(), and ResultSetMetaData().
|
private |
Definition at line 72 of file pq_resultsetmetadata.hxx.
Referenced by checkForTypes(), getColumnDisplaySize(), getColumnName(), getColumnType(), getColumnTypeName(), getPrecision(), getScale(), and ResultSetMetaData().
|
private |
Definition at line 68 of file pq_resultsetmetadata.hxx.
Referenced by checkForTypes(), and checkTable().
|
private |
Definition at line 67 of file pq_resultsetmetadata.hxx.
|
private |
Definition at line 73 of file pq_resultsetmetadata.hxx.
Referenced by getColumnType().
|
private |
Definition at line 71 of file pq_resultsetmetadata.hxx.
Referenced by getSchemaName().
|
private |
Definition at line 69 of file pq_resultsetmetadata.hxx.
Referenced by checkTable(), and getColumnByIndex().
|
private |
Definition at line 70 of file pq_resultsetmetadata.hxx.
Referenced by checkTable(), and getTableName().
|
private |
Definition at line 66 of file pq_resultsetmetadata.hxx.
Referenced by getBoolColumnProperty(), getColumnDisplaySize(), getColumnName(), getColumnTypeName(), getIntColumnProperty(), getPrecision(), and getScale().