|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   36 #ifndef vtkODBCQuery_h 
   37 #define vtkODBCQuery_h 
   39 #include "vtkIOODBCModule.h"  
   46 class vtkODBCQueryInternals;
 
  115   bool SetQuery(
const char* queryString) 
override;
 
  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 
  
virtual const char * GetFieldName(int i)=0
Return the name of the specified query field.
friend class vtkODBCQuery
virtual bool SetQuery(const char *query)
The query string to be executed.
vtkSQLQuery implementation for ODBC connections to databases
virtual bool CommitTransaction()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
bool Execute() override=0
Execute the query.
Simple class to hide ODBC structures.
An array holding vtkVariants.
virtual bool HasError()=0
Returns true if an error is set, otherwise false.
virtual const char * GetQuery()
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
virtual bool RollbackTransaction()
a simple class to control print indentation
A atomic type representing the union of many types.
virtual int GetNumberOfFields()=0
The number of fields in the query result.
virtual bool BeginTransaction()
Begin, commit, or roll back a transaction.
virtual vtkVariant DataValue(vtkIdType c)=0
Return data in current row, field c.
virtual int GetFieldType(int i)=0
Return the type of the field, using the constants defined in vtkType.h.
Wrapper around std::string to keep symbols short.
virtual bool ClearParameterBindings()
Reset all parameter bindings to nullptr.
executes an sql query and retrieves results
virtual bool NextRow()=0
Advance row, return false if past end.
virtual const char * GetLastErrorText()=0
Get the last error text from the query.