KDb

SybaseCursor.h
1/* This file is part of the KDE project
2 Copyright (C) 2007 Sharan Rao <sharanrao@gmail.com>
3
4This program is free software; you can redistribute it and/or
5modify it under the terms of the GNU Library General Public
6License as published by the Free Software Foundation; either
7version 2 of the License, or (at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12Library General Public License for more details.
13
14You should have received a copy of the GNU Library General Public License
15along with this program; see the file COPYING. If not, write to
16the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef _SYBASECURSOR_H_
21#define _SYBASECURSOR_H_
22
23#include "KDbCursor.h"
24#include "KDbConnection.h"
25
26class SybaseCursorData;
27
28class SybaseCursor: public KDbCursor
29{
30public:
31 SybaseCursor(KDbConnection* conn, const KDbEscapedString& sql,
32 int cursor_options = NoOptions);
33 SybaseCursor(KDbConnection* conn, KDbQuerySchema* query, int options = NoOptions);
34 virtual ~SybaseCursor();
35 virtual bool drv_open(const KDbEscapedString& sql);
36 virtual bool drv_close();
37// virtual bool drv_moveFirst();
38 virtual void drv_getNextRecord();
39 //virtual bool drv_getPrevRecord();
40 virtual QVariant value(int);
41
42// virtual void drv_clearServerResult();
43 virtual void drv_appendCurrentRecordToBuffer();
44 virtual void drv_bufferMovePointerNext();
45 virtual void drv_bufferMovePointerPrev();
46 virtual void drv_bufferMovePointerTo(qint64 to);
47 virtual const char** recordData() const;
48 virtual bool drv_storeCurrentRecord(KDbRecordData* data) const;
49// virtual bool save(KDbRecordData& data, RowEditBuffer& buf);
50
51 //! Implemented for KDbResultable
52 virtual QString serverResultName() const;
53
54protected:
55 QVariant pValue(int pos) const;
56
57 SybaseCursorData *d;
58};
59
60#endif
Provides database connection, allowing queries and data modification.
Provides database cursor functionality.
Definition KDbCursor.h:69
KDbQuerySchema * query() const
Options options() const
Specialized string for escaping.
KDbQuerySchema provides information about database query.
Structure for storing single record with type information.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:11:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.