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);
176 void operator=(
const vtkODBCQuery &) VTK_DELETE_FUNCTION;
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 BindParameter(int index, long long value)
friend class vtkODBCQuery
vtkSQLQuery implementation for ODBC connections to databases
bool BindParameter(int index, signed char value)
bool RollbackTransaction()
const char * GetFieldName(int i)
Return the name of the specified query field.
bool ClearParameterBindings()
Reset all parameter bindings to NULL.
Simple class to hide ODBC structures.
bool BindParameter(int index, const vtkStdString &string)
bool BindParameter(int index, const char *stringValue, size_t length)
Bind a string value by specifying an array and a size.
An array holding vtkVariants.
bool BindParameter(int index, unsigned long long value)
bool SetQuery(const char *queryString)
Set the query string to be used.
bool BindParameter(int index, int value)
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 int value)
const char * GetLastErrorText()
Get the last error text from the query.
bool BindParameter(int index, signed long value)
bool BindParameter(int index, unsigned long value)
bool BindParameter(int index, const void *data, size_t length)
Bind a blob value.
a simple class to control print indentation
bool HasError()
Return true if there is an error on the current query.
A atomic type representing the union of many types.
int GetNumberOfFields()
The number of fields in the query result.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
bool BindParameter(int index, float value)
bool Execute()
Execute the query.
vtkVariant DataValue(vtkIdType c)
Return data in current row, field c.
bool BindParameter(int index, unsigned char value)
Bind a parameter to a placeholder in a query.
bool BindParameter(int index, const char *stringValue)
Bind a string value – string must be null-terminated.
bool BindParameter(int index, unsigned short value)
bool BeginTransaction()
Begin, commit, or roll back a transaction.
bool BindParameter(int index, signed short value)
Wrapper around std::string to keep symbols short.
bool NextRow()
Advance row, return false if past end.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int GetFieldType(int i)
Return the type of the field, using the constants defined in vtkType.h.
executes an sql query and retrieves results
bool BindParameter(int index, double value)
static vtkODBCQuery * New()