Logo ROOT  
Reference Guide
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Loading...
Searching...
No Matches
TODBCResult.cxx
Go to the documentation of this file.
1// @(#)root/odbc:$Id$
2// Author: Sergey Linev 6/02/2006
3
4/*************************************************************************
5 * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#include "TODBCResult.h"
13#include "TODBCRow.h"
14
15
17
18////////////////////////////////////////////////////////////////////////////////
19/// Constructor
20
33
34////////////////////////////////////////////////////////////////////////////////
35/// Cleanup ODBC query result.
36
41
42////////////////////////////////////////////////////////////////////////////////
43/// Close (cleanup) ODBC result object. Deletes statement
44
50
51////////////////////////////////////////////////////////////////////////////////
52/// Get name of specified field.
53
75
76////////////////////////////////////////////////////////////////////////////////
77/// Get next query result row. The returned object must be
78/// deleted by the user.
79
81{
82 if (!fHstmt) return nullptr;
83
85
87 return new TODBCRow(fHstmt, fFieldCount);
88
89 return nullptr;
90}
const char Option_t
Definition RtypesCore.h:66
#define ClassImp(name)
Definition Rtypes.h:374
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
TSQLRow * Next() final
Get next query result row.
virtual ~TODBCResult()
Cleanup ODBC query result.
const char * GetFieldName(Int_t field) final
Get name of specified field.
TString fNameBuffer
Definition TODBCResult.h:35
Int_t fFieldCount
Definition TODBCResult.h:34
void Close(Option_t *opt="") final
Close (cleanup) ODBC result object. Deletes statement.
TODBCResult(SQLHSTMT stmt)
Constructor.
SQLHSTMT fHstmt
Definition TODBCResult.h:33