Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:22:06

0001 // $Id: ODBCStatement.h,v 1.1.1.1 2004/02/18 20:58:02 dave Exp $
0002 
0003 #ifndef RDBC_ODBCStatement_h
0004 #define RDBC_ODBCStatement_h
0005 
0006 //
0007 // ODBC implementation of SQL Statements
0008 //
0009 
0010 #ifndef RDBC_TSQLStatement_h
0011 #include <RDBC/TSQLStatement.h>
0012 #endif
0013 
0014 ////////////////////////////////////////////////////////////////////
0015 class ODBCStatement: public TSQLStatement
0016 {
0017 friend class ODBCConnection;
0018 friend class ODBCResultSet;
0019 
0020 protected:
0021 
0022    ODBCStatement( TSQLConnection* con, void* imp=0 );
0023 
0024 public:
0025    
0026    virtual ~ODBCStatement();   
0027    using TSQLStatement::Execute;  // unhide (TMethod*, TObjArray*, int*)
0028    Bool_t Execute( const TString& sql="" );
0029    TSQLResultSet* ExecuteQuery( const TString& sql="" );
0030    Int_t  ExecuteUpdate( const TString& sql="" );
0031    TSQLResultSet* GetResultSet();
0032    Bool_t GetMoreResults();
0033    void   Close();
0034    void   Cancel();
0035    Int_t  GetMaxFieldSize();
0036    void   SetMaxFieldSize( Int_t max );
0037    Int_t  GetMaxRows();
0038    void   SetMaxRows( Int_t max );
0039    Bool_t GetEscapeProcessing();
0040    void   SetEscapeProcessing( Bool_t enable = kTRUE );
0041    Int_t  GetQueryTimeout();
0042    void   SetQueryTimeout( Int_t seconds );  
0043    Int_t  GetUpdateCount();
0044    void   SetCursorName( const TString& name );
0045    void   AddBatch( const TString& sql );
0046    void   ClearBatch();
0047    Int_t* ExecuteBatch();
0048    Int_t  GetFetchDirection();
0049    void   SetFetchDirection( Int_t direction );    
0050    Int_t  GetFetchSize(); 
0051    void   SetFetchSize(Int_t rows);
0052    Int_t  GetResultSetConcurrency(); 
0053    Int_t  GetResultSetType();
0054 
0055 ClassDef(ODBCStatement,0)//Class used for executing a SQL statement and obtaining the results produced by it
0056 };
0057 
0058 #endif // RDBC_ODBCStatement_h