File indexing completed on 2025-08-03 08:22:05
0001
0002
0003 #ifndef RDBC_ODBCResultSet_h
0004 #define RDBC_ODBCResultSet_h
0005
0006
0007
0008
0009
0010 #ifndef RDBC_TSQLResultSet_h
0011 #include <RDBC/TSQLResultSet.h>
0012 #endif
0013
0014
0015
0016
0017 class ODBCResultSet: public TSQLResultSet
0018 {
0019 friend class ODBCStatement;
0020 friend class ODBCPreparedStatement;
0021 friend class ODBCCallableStatement;
0022 friend class ODBCDatabaseMetaData;
0023
0024 protected:
0025
0026 ODBCResultSet( TSQLStatement* stmt=0, void* imp=0 );
0027
0028 public:
0029 virtual ~ODBCResultSet();
0030 Bool_t WasNull();
0031 TString GetString( Int_t columnIndex );
0032 Bool_t GetBoolean( Int_t columnIndex );
0033 Char_t GetByte( Int_t columnIndex );
0034 Short_t GetShort( Int_t columnIndex );
0035 Int_t GetInt( Int_t columnIndex );
0036 Long_t GetLong( Int_t columnIndex );
0037 Float_t GetFloat( Int_t columnIndex );
0038 Double_t GetDouble( Int_t columnIndex );
0039 TArrayC GetBytes( Int_t columnIndex );
0040 TSQLDate GetDate( Int_t columnIndex );
0041 TSQLTime GetTime( Int_t columnIndex );
0042 TSQLTimestamp GetTimestamp( Int_t columnIndex );
0043 TBuffer* GetAsciiStream( Int_t columnIndex );
0044 TBuffer* GetBinaryStream( Int_t columnIndex );
0045 TObject* GetObject( Int_t columnIndex );
0046 TString GetString( const TString& columnName );
0047 Bool_t GetBoolean( const TString& columnName );
0048 Char_t GetByte( const TString& columnName );
0049 Short_t GetShort( const TString& columnName );
0050 Int_t GetInt( const TString& columnName );
0051 Long_t GetLong( const TString& columnName );
0052 Float_t GetFloat( const TString& columnName );
0053 Double_t GetDouble( const TString& columnName );
0054 TArrayC GetBytes( const TString& columnName );
0055 TSQLDate GetDate( const TString& columnName );
0056 TSQLTime GetTime( const TString& columnName );
0057 TSQLTimestamp GetTimestamp( const TString& columnName );
0058 TBuffer* GetAsciiStream( const TString& columnName );
0059 TBuffer* GetBinaryStream( const TString& columnName );
0060 TObject* GetObject( const TString& columnName );
0061 TString GetCursorName();
0062 TSQLResultSetMetaData* GetMetaData();
0063 Int_t FindColumn( const TString& columnName );
0064 Bool_t IsBeforeFirst();
0065 Bool_t IsAfterLast();
0066 Bool_t IsFirst();
0067 Bool_t IsLast();
0068 void BeforeFirst();
0069 void AfterLast();
0070 void SetFetchDirection( Int_t direction );
0071 Int_t GetFetchDirection();
0072 Int_t GetRow();
0073 void SetFetchSize( Int_t rows );
0074 Int_t GetFetchSize();
0075 Int_t GetType();
0076 Int_t GetConcurrency();
0077 void UpdateNull( Int_t columnIndex );
0078 void UpdateBoolean( Int_t columnIndex,Bool_t x );
0079 void UpdateByte( Int_t columnIndex,Char_t x );
0080 void UpdateShort( Int_t columnIndex,Short_t x );
0081 void UpdateInt( Int_t columnIndex,Int_t x );
0082 void UpdateLong( Int_t columnIndex,Long_t x );
0083 void UpdateFloat( Int_t columnIndex, Float_t x );
0084 void UpdateDouble( Int_t columnIndex,Double_t x );
0085 void UpdateString( Int_t columnIndex,const TString& x );
0086 void UpdateBytes( Int_t columnIndex,const TArrayC& x );
0087 void UpdateDate( Int_t columnIndex,const TSQLDate& x );
0088 void UpdateTime( Int_t columnIndex,const TSQLTime& x );
0089 void UpdateTimestamp( Int_t columnIndex,const TSQLTimestamp& x );
0090 void UpdateAsciiStream( Int_t columnIndex,TBuffer* x,Int_t length );
0091 void UpdateBinaryStream( Int_t columnIndex,TBuffer* x,Int_t length );
0092 void UpdateObject( Int_t columnIndex,TObject* x );
0093 void UpdateNull( const TString& columnName );
0094 void UpdateBoolean( const TString& columnName, Bool_t x );
0095 void UpdateByte( const TString& columnName,Char_t x );
0096 void UpdateShort( const TString& columnName,Short_t x );
0097 void UpdateInt( const TString& columnName,Int_t x );
0098 void UpdateLong( const TString& columnName,Long_t x );
0099 void UpdateFloat( const TString& columnName,Float_t x );
0100 void UpdateDouble( const TString& columnName,Double_t x );
0101 void UpdateString( const TString& columnName,const TString& x );
0102 void UpdateBytes( const TString& columnName,const TArrayC& x );
0103 void UpdateDate( const TString& columnName,const TSQLDate& x );
0104 void UpdateTime( const TString& columnName, const TSQLTime& x );
0105 void UpdateTimestamp( const TString& columnName,const TSQLTimestamp& x );
0106 void UpdateAsciiStream( const TString& columnName,TBuffer* x,Int_t length );
0107 void UpdateBinaryStream( const TString& columnName,TBuffer* x,Int_t length );
0108 void UpdateObject( const TString& columnName,TObject* x );
0109 Bool_t RowUpdated();
0110 Bool_t RowInserted();
0111 Bool_t RowDeleted();
0112 void InsertRow();
0113 void UpdateRow();
0114 void DeleteRow();
0115 void RefreshRow();
0116 void CancelRowUpdates();
0117 void MoveToInsertRow();
0118 void MoveToCurrentRow();
0119
0120 void Close(Option_t *option="");
0121 TSQLRow* Next();
0122 TSQLRow* Previous();
0123 TSQLRow* First();
0124 TSQLRow* Last();
0125 TSQLRow* Absolute( Int_t row );
0126 TSQLRow* Relative( Int_t rows );
0127
0128 ClassDef(ODBCResultSet,0)
0129 };
0130
0131 #endif