Go to the documentation of this file.
36 #ifndef vtkODBCQuery_h
37 #define vtkODBCQuery_h
39 #include "vtkIOODBCModule.h"
46 class vtkODBCQueryInternals;
168 vtkSetStringMacro(LastErrorText);
169 vtkSetStringMacro(QueryText);
170 vtkGetStringMacro(QueryText);
178 void ClearCurrentRow();
179 bool CacheCurrentRow();
181 bool CacheTimeColumn(
int column);
182 bool CacheIntervalColumn(
int column);
183 bool CacheCharColumn(
int column);
184 bool CacheLongLongColumn(
int column);
185 bool CacheBinaryColumn(
int column);
186 bool CacheBooleanColumn(
int column);
187 bool CacheStringColumn(
int column);
188 bool CacheWideStringColumn(
int column);
189 bool CacheDecimalColumn(
int column);
190 bool CacheNumericColumn(
int column);
191 bool CacheIntColumn(
int column);
192 bool CacheFloatColumn(
int column);
193 bool CacheDoubleColumn(
int column);
195 vtkODBCQueryInternals *Internals;
200 #endif // vtkODBCQuery_h
bool Execute() override
Execute the query.
bool BindParameter(int index, unsigned int value) override
friend class vtkODBCQuery
bool BindParameter(int index, float value) override
vtkSQLQuery implementation for ODBC connections to databases
const char * GetQuery() override
bool BindParameter(int index, unsigned long value) override
bool BindParameter(int index, double value) override
Simple class to hide ODBC structures.
bool BindParameter(int index, signed char value) override
bool CommitTransaction() override
An array holding vtkVariants.
bool SetQuery(const char *queryString) override
Set the query string to be used.
bool BindParameter(int index, unsigned long long value) override
bool BeginTransaction() override
Begin, commit, or roll back a transaction.
bool BindParameter(int index, const char *stringValue) override
Bind a string value – string must be null-terminated.
const char * GetLastErrorText() override
Get the last error text from the query.
int GetNumberOfFields() override
The number of fields in the query result.
virtual bool BindParameter(int index, unsigned char value)
Bind a parameter to a placeholder in a query.
maintain an ODBC connection to a SQL database
bool BindParameter(int index, unsigned short value) override
const char * GetFieldName(int i) override
Return the name of the specified query field.
bool RollbackTransaction() override
bool ClearParameterBindings() override
Reset all parameter bindings to nullptr.
vtkVariant DataValue(vtkIdType c) override
Return data in current row, field c.
bool HasError() override
Return true if there is an error on the current query.
bool BindParameter(int index, const void *data, size_t length) override
Bind a blob value.
bool BindParameter(int index, signed short value) override
int GetFieldType(int i) override
Return the type of the field, using the constants defined in vtkType.h.
bool BindParameter(int index, long long value) override
a simple class to control print indentation
A atomic type representing the union of many types.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
bool NextRow() override
Advance row, return false if past end.
bool BindParameter(int index, const vtkStdString &string) override
bool BindParameter(int index, const char *stringValue, size_t length) override
Bind a string value by specifying an array and a size.
Wrapper around std::string to keep symbols short.
bool BindParameter(int index, unsigned char value) override
Bind a parameter to a placeholder in a query.
executes an sql query and retrieves results
static vtkODBCQuery * New()
bool BindParameter(int index, int value) override
bool BindParameter(int index, signed long value) override