LibreOffice Module connectivity (master) 1
|
#include <DResultSet.hxx>
Public Member Functions | |
DECLARE_SERVICE_INFO () | |
ODbaseResultSet (file::OStatement_Base *pStmt, connectivity::OSQLParseTreeIterator &_aSQLIterator) | |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual css::uno::Any SAL_CALL | getBookmark () override |
virtual sal_Bool SAL_CALL | moveToBookmark (const css::uno::Any &bookmark) override |
virtual sal_Bool SAL_CALL | moveRelativeToBookmark (const css::uno::Any &bookmark, sal_Int32 rows) override |
virtual sal_Int32 SAL_CALL | compareBookmarks (const css::uno::Any &first, const css::uno::Any &second) override |
virtual sal_Bool SAL_CALL | hasOrderedBookmarks () override |
virtual sal_Int32 SAL_CALL | hashBookmark (const css::uno::Any &bookmark) override |
virtual css::uno::Sequence< sal_Int32 > SAL_CALL | deleteRows (const css::uno::Sequence< css::uno::Any > &rows) override |
sal_Int32 | getCurrentFilePos () const |
Public Member Functions inherited from connectivity::file::OResultSet | |
DECLARE_SERVICE_INFO () | |
OResultSet (OStatement_Base *pStmt, connectivity::OSQLParseTreeIterator &_aSQLIterator) | |
virtual void SAL_CALL | disposing () override final |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &rType) override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual sal_Bool SAL_CALL | next () override |
virtual sal_Bool SAL_CALL | isBeforeFirst () override |
virtual sal_Bool SAL_CALL | isAfterLast () override |
virtual sal_Bool SAL_CALL | isFirst () override |
virtual sal_Bool SAL_CALL | isLast () override |
virtual void SAL_CALL | beforeFirst () override |
virtual void SAL_CALL | afterLast () override |
virtual sal_Bool SAL_CALL | first () override |
virtual sal_Bool SAL_CALL | last () override |
virtual sal_Int32 SAL_CALL | getRow () override |
virtual sal_Bool SAL_CALL | absolute (sal_Int32 row) override |
virtual sal_Bool SAL_CALL | relative (sal_Int32 rows) override |
virtual sal_Bool SAL_CALL | previous () override |
virtual void SAL_CALL | refreshRow () override |
virtual sal_Bool SAL_CALL | rowUpdated () override |
virtual sal_Bool SAL_CALL | rowInserted () override |
virtual sal_Bool SAL_CALL | rowDeleted () override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | getStatement () override |
virtual sal_Bool SAL_CALL | wasNull () override |
virtual OUString SAL_CALL | getString (sal_Int32 columnIndex) override |
virtual sal_Bool SAL_CALL | getBoolean (sal_Int32 columnIndex) override |
virtual sal_Int8 SAL_CALL | getByte (sal_Int32 columnIndex) override |
virtual sal_Int16 SAL_CALL | getShort (sal_Int32 columnIndex) override |
virtual sal_Int32 SAL_CALL | getInt (sal_Int32 columnIndex) override |
virtual sal_Int64 SAL_CALL | getLong (sal_Int32 columnIndex) override |
virtual float SAL_CALL | getFloat (sal_Int32 columnIndex) override |
virtual double SAL_CALL | getDouble (sal_Int32 columnIndex) override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getBytes (sal_Int32 columnIndex) override |
virtual css::util::Date SAL_CALL | getDate (sal_Int32 columnIndex) override |
virtual css::util::Time SAL_CALL | getTime (sal_Int32 columnIndex) override |
virtual css::util::DateTime SAL_CALL | getTimestamp (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL | getBinaryStream (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::io::XInputStream > SAL_CALL | getCharacterStream (sal_Int32 columnIndex) override |
virtual css::uno::Any SAL_CALL | getObject (sal_Int32 columnIndex, const css::uno::Reference< css::container::XNameAccess > &typeMap) override |
virtual css::uno::Reference< css::sdbc::XRef > SAL_CALL | getRef (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::sdbc::XBlob > SAL_CALL | getBlob (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::sdbc::XClob > SAL_CALL | getClob (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::sdbc::XArray > SAL_CALL | getArray (sal_Int32 columnIndex) override |
virtual css::uno::Reference< css::sdbc::XResultSetMetaData > SAL_CALL | getMetaData () override |
virtual void SAL_CALL | cancel () override |
virtual void SAL_CALL | close () override |
virtual css::uno::Any SAL_CALL | getWarnings () override |
virtual void SAL_CALL | clearWarnings () override |
virtual void SAL_CALL | insertRow () override |
virtual void SAL_CALL | updateRow () override |
virtual void SAL_CALL | deleteRow () override |
virtual void SAL_CALL | cancelRowUpdates () override |
virtual void SAL_CALL | moveToInsertRow () override |
virtual void SAL_CALL | moveToCurrentRow () override |
virtual void SAL_CALL | updateNull (sal_Int32 columnIndex) override |
virtual void SAL_CALL | updateBoolean (sal_Int32 columnIndex, sal_Bool x) override |
virtual void SAL_CALL | updateByte (sal_Int32 columnIndex, sal_Int8 x) override |
virtual void SAL_CALL | updateShort (sal_Int32 columnIndex, sal_Int16 x) override |
virtual void SAL_CALL | updateInt (sal_Int32 columnIndex, sal_Int32 x) override |
virtual void SAL_CALL | updateLong (sal_Int32 columnIndex, sal_Int64 x) override |
virtual void SAL_CALL | updateFloat (sal_Int32 columnIndex, float x) override |
virtual void SAL_CALL | updateDouble (sal_Int32 columnIndex, double x) override |
virtual void SAL_CALL | updateString (sal_Int32 columnIndex, const OUString &x) override |
virtual void SAL_CALL | updateBytes (sal_Int32 columnIndex, const css::uno::Sequence< sal_Int8 > &x) override |
virtual void SAL_CALL | updateDate (sal_Int32 columnIndex, const css::util::Date &x) override |
virtual void SAL_CALL | updateTime (sal_Int32 columnIndex, const css::util::Time &x) override |
virtual void SAL_CALL | updateTimestamp (sal_Int32 columnIndex, const css::util::DateTime &x) override |
virtual void SAL_CALL | updateBinaryStream (sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override |
virtual void SAL_CALL | updateCharacterStream (sal_Int32 columnIndex, const css::uno::Reference< css::io::XInputStream > &x, sal_Int32 length) override |
virtual void SAL_CALL | updateObject (sal_Int32 columnIndex, const css::uno::Any &x) override |
virtual void SAL_CALL | updateNumericObject (sal_Int32 columnIndex, const css::uno::Any &x, sal_Int32 scale) override |
virtual sal_Int32 SAL_CALL | findColumn (const OUString &columnName) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
sal_Int32 | mapColumn (sal_Int32 column) |
void | OpenImpl () |
void | doTableSpecials (const OSQLTable &_xTable) |
sal_Int32 | getRowCountResult () const |
void | setEvaluationRow (const OValueRefRow &_aRow) |
void | setAssignValues (const ORefAssignValues &_aAssignValues) |
void | setBindingRow (const OValueRefRow &_aRow) |
void | setSelectRow (const OValueRefRow &_rRow) |
void | setColumnMapping (std::vector< sal_Int32 > &&_aColumnMapping) |
void | setSqlAnalyzer (OSQLAnalyzer *_pSQLAnalyzer) |
void | setOrderByColumns (std::vector< sal_Int32 > &&_aColumnOrderBy) |
void | setOrderByAscending (std::vector< TAscendingOrder > &&_aOrderbyAsc) |
void | setMetaData (const css::uno::Reference< css::sdbc::XResultSetMetaData > &_xMetaData) |
virtual bool | move (IResultSetHelper::Movement _eCursorPosition, sal_Int32 _nOffset, bool _bRetrieveData) override |
virtual sal_Int32 | getDriverPos () const override |
virtual bool | isRowDeleted () const override |
virtual bool | move (Movement _eCursorPosition, sal_Int32 _nOffset, bool _bRetrieveData)=0 |
virtual sal_Int32 | getDriverPos () const =0 |
virtual bool | isRowDeleted () const =0 |
Public Member Functions inherited from comphelper::OPropertyContainer | |
virtual | ~OPropertyContainer () |
Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OResultSet > | |
OPropertyArrayUsageHelper () | |
virtual | ~OPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
Public Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 > | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) 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 comphelper::OPropertyArrayUsageHelper< class TYPE > | |
OPropertyArrayUsageHelper () | |
virtual | ~OPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
Protected Member Functions | |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
virtual bool | fillIndexValues (const css::uno::Reference< css::sdbcx::XColumnsSupplier > &_xIndex) override |
Protected Member Functions inherited from connectivity::file::OResultSet | |
void | construct () |
bool | ExecuteRow (IResultSetHelper::Movement eFirstCursorPosition, sal_Int32 nOffset=1, bool bEvaluate=true, bool bRetrieveData=true) |
std::unique_ptr< OKeyValue > | GetOrderbyKeyValue (OValueRefRow const &_rRow) |
bool | IsSorted () const |
bool | isCount () const |
void | checkIndex (sal_Int32 columnIndex) |
const ORowSetValue & | getValue (sal_Int32 columnIndex) |
void | updateValue (sal_Int32 columnIndex, const ORowSetValue &x) |
void | clearInsertRow () |
void | sortRows () |
bool | Move (IResultSetHelper::Movement eCursorPosition, sal_Int32 nOffset, bool bRetrieveData) |
virtual bool | fillIndexValues (const css::uno::Reference< css::sdbcx::XColumnsSupplier > &_xIndex) |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
virtual | ~OResultSet () override |
Protected Member Functions inherited from connectivity::IResultSetHelper | |
~IResultSetHelper () | |
Protected Member Functions inherited from comphelper::OPropertyContainer | |
OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper) | |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) override final |
virtual void | getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0 |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final |
Protected Member Functions inherited from comphelper::OPropertyContainerHelper | |
OPropertyContainerHelper () | |
~OPropertyContainerHelper () | |
void | registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType) |
void | registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType) |
void | registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue) |
void | revokeProperty (sal_Int32 _nHandle) |
bool | isRegisteredProperty (sal_Int32 _nHandle) const |
bool | isRegisteredProperty (const OUString &_rName) const |
bool | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) |
void | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) |
void | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const |
void | describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const |
const css::beans::Property & | getProperty (const OUString &_rName) const |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const =0 |
Protected Member Functions inherited from cppu::ImplHelper2< class Ifc1, class Ifc2 > | |
~ImplHelper2 () SAL_NOEXCEPT | |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const=0 |
Private Attributes | |
bool | m_bBookmarkable |
Additional Inherited Members | |
Public Types inherited from connectivity::IResultSetHelper | |
enum | Movement { NEXT = 0 , PRIOR , FIRST , LAST , RELATIVE1 , ABSOLUTE1 , BOOKMARK } |
Static Public Member Functions inherited from connectivity::file::OResultSet | |
static void | setBoundedColumns (const OValueRefRow &_rRow, const OValueRefRow &_rSelectRow, const ::rtl::Reference< connectivity::OSQLColumns > &_rxColumns, const css::uno::Reference< css::container::XIndexAccess > &_xNames, bool _bSetColumnMapping, const css::uno::Reference< css::sdbc::XDatabaseMetaData > &_xMetaData, std::vector< sal_Int32 > &_rColMapping) |
Static Protected Member Functions inherited from connectivity::file::OResultSet | |
static void | initializeRow (OValueRefRow &_rRow, sal_Int32 _nColumnCount) |
Static Protected Member Functions inherited from comphelper::OPropertyContainer | |
static css::uno::Sequence< css::uno::Type > | getBaseTypes () |
Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OResultSet > | |
static std::mutex & | theMutex () |
Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< class TYPE > | |
static std::mutex & | theMutex () |
Protected Attributes inherited from connectivity::file::OResultSet | |
std::vector< sal_Int32 > | m_aColMapping |
std::vector< sal_Int32 > | m_aOrderbyColumnNumber |
std::vector< TAscendingOrder > | m_aOrderbyAscending |
OValueRefRow | m_aSelectRow |
OValueRefRow | m_aRow |
OValueRefRow | m_aEvaluateRow |
OValueRefRow | m_aInsertRow |
ORefAssignValues | m_aAssignValues |
OSkipDeletedSet | m_aSkipDeletedSet |
::rtl::Reference< OKeySet > | m_pFileSet |
OKeySet::iterator | m_aFileSetIter |
std::unique_ptr< OSortIndex > | m_pSortIndex |
::rtl::Reference< connectivity::OSQLColumns > | m_xColumns |
rtl::Reference< OFileTable > | m_pTable |
connectivity::OSQLParseNode * | m_pParseTree |
OSQLAnalyzer * | m_pSQLAnalyzer |
connectivity::OSQLParseTreeIterator & | m_aSQLIterator |
sal_Int32 | m_nFetchSize |
sal_Int32 | m_nResultSetType |
sal_Int32 | m_nFetchDirection |
sal_Int32 | m_nResultSetConcurrency |
css::uno::Reference< css::uno::XInterface > | m_xStatement |
css::uno::Reference< css::sdbc::XResultSetMetaData > | m_xMetaData |
css::uno::Reference< css::container::XNameAccess > | m_xColNames |
css::uno::Reference< css::container::XIndexAccess > | m_xColsIdx |
sal_Int32 | m_nRowPos |
sal_Int32 | m_nFilePos |
sal_Int32 | m_nLastVisitedPos |
sal_Int32 | m_nRowCountResult |
sal_Int32 | m_nColumnCount |
bool | m_bWasNull |
bool | m_bInserted |
bool | m_bRowUpdated |
bool | m_bRowInserted |
bool | m_bRowDeleted |
bool | m_bShowDeleted |
bool | m_bIsCount |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< OResultSet > | |
static sal_Int32 | s_nRefCount |
::cppu::IPropertyArrayHelper * | s_pProps |
Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< class TYPE > | |
static sal_Int32 | s_nRefCount |
::cppu::IPropertyArrayHelper * | s_pProps |
Definition at line 36 of file DResultSet.hxx.
ODbaseResultSet::ODbaseResultSet | ( | file::OStatement_Base * | pStmt, |
connectivity::OSQLParseTreeIterator & | _aSQLIterator | ||
) |
Definition at line 43 of file DResultSet.cxx.
References connectivity::OMetaConnection::getPropMap(), m_bBookmarkable, PROPERTY_ID_ISBOOKMARKABLE, and comphelper::OPropertyContainerHelper::registerProperty().
|
overridevirtualnoexcept |
Reimplemented from connectivity::file::OResultSet.
Definition at line 190 of file DResultSet.cxx.
References connectivity::file::OResultSet::acquire().
|
overridevirtual |
Definition at line 112 of file DResultSet.cxx.
References connectivity::SharedResources::getResourceString(), sMessage, and dbtools::throwGenericSQLException().
|
overrideprotectedvirtual |
Implements comphelper::OPropertyArrayUsageHelper< class TYPE >.
Definition at line 183 of file DResultSet.cxx.
References comphelper::OPropertyContainerHelper::describeProperties().
connectivity::dbase::ODbaseResultSet::DECLARE_SERVICE_INFO | ( | ) |
|
overridevirtual |
Definition at line 147 of file DResultSet.cxx.
References connectivity::checkDisposed(), cppu::BaseMutex::m_aMutex, and dbtools::throwFeatureNotImplementedSQLException().
|
overrideprotectedvirtual |
Reimplemented from connectivity::file::OResultSet.
Definition at line 156 of file DResultSet.cxx.
References connectivity::dbase::ODbaseIndex::createIterator(), connectivity::file::OResultSet::m_pFileSet, and NODE_NOTFOUND.
|
overridevirtual |
Definition at line 78 of file DResultSet.cxx.
References Any, connectivity::checkDisposed(), connectivity::file::OResultSet::getValue(), cppu::BaseMutex::m_aMutex, connectivity::file::OResultSet::m_aRow, and connectivity::file::OResultSet::m_bShowDeleted.
sal_Int32 ODbaseResultSet::getCurrentFilePos | ( | ) | const |
Definition at line 205 of file DResultSet.cxx.
References connectivity::file::OResultSet::m_pTable.
Referenced by connectivity::dbase::ODbaseIndex::CreateImpl().
|
overrideprotected |
Definition at line 178 of file DResultSet.cxx.
References comphelper::OPropertyArrayUsageHelper< class TYPE >::getArrayHelper().
Referenced by getPropertySetInfo().
|
overridevirtual |
Reimplemented from connectivity::file::OResultSet.
Definition at line 200 of file DResultSet.cxx.
References getInfoHelper().
Reimplemented from cppu::ImplHelper2< class Ifc1, class Ifc2 >.
Definition at line 71 of file DResultSet.cxx.
References cppu::ImplHelper2< class Ifc1, class Ifc2 >::getTypes().
|
overridevirtual |
Definition at line 137 of file DResultSet.cxx.
References connectivity::checkDisposed(), comphelper::getINT32(), and cppu::BaseMutex::m_aMutex.
|
overridevirtual |
Definition at line 132 of file DResultSet.cxx.
|
overridevirtual |
Definition at line 98 of file DResultSet.cxx.
References connectivity::IResultSetHelper::BOOKMARK, connectivity::checkDisposed(), comphelper::getINT32(), cppu::BaseMutex::m_aMutex, connectivity::file::OResultSet::m_pTable, connectivity::file::OResultSet::Move(), and connectivity::file::OResultSet::relative().
|
overridevirtual |
Definition at line 87 of file DResultSet.cxx.
References connectivity::IResultSetHelper::BOOKMARK, connectivity::checkDisposed(), comphelper::getINT32(), cppu::BaseMutex::m_aMutex, connectivity::file::OResultSet::m_bRowDeleted, connectivity::file::OResultSet::m_bRowInserted, connectivity::file::OResultSet::m_bRowUpdated, connectivity::file::OResultSet::m_pTable, and connectivity::file::OResultSet::Move().
|
overridevirtual |
Reimplemented from cppu::ImplHelper2< class Ifc1, class Ifc2 >.
Definition at line 65 of file DResultSet.cxx.
References Any, and cppu::ImplHelper2< class Ifc1, class Ifc2 >::queryInterface().
|
overridevirtualnoexcept |
Reimplemented from connectivity::file::OResultSet.
Definition at line 195 of file DResultSet.cxx.
References connectivity::file::OResultSet::release().
|
private |
Definition at line 40 of file DResultSet.hxx.
Referenced by ODbaseResultSet().