TSQLTableInfo.h

Go to the documentation of this file.
00001 // @(#)root/net:$Id: TSQLTableInfo.h 23091 2008-04-09 15:04:27Z rdm $
00002 // Author: Sergey Linev   31/05/2006
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TSQLTableInfo
00013 #define ROOT_TSQLTableInfo
00014 
00015 #ifndef ROOT_TNamed
00016 #include "TNamed.h"
00017 #endif
00018 
00019 class TList;
00020 class TSQLColumnInfo;
00021 
00022 class TSQLTableInfo : public TNamed {
00023    
00024 protected:
00025    TList*    fColumns;    //! list of TSQLColumnInfo objects, describing each table column
00026    TString   fEngine;     //! SQL tables engine name
00027    TString   fCreateTime; //! table creation time 
00028    TString   fUpdateTime; //! table update time
00029 
00030 public:
00031    TSQLTableInfo();
00032    TSQLTableInfo(const char* tablename, 
00033                  TList* columns,
00034                  const char* comment = "SQL table",
00035                  const char* engine = 0,
00036                  const char* create_time = 0,
00037                  const char* update_time = 0);
00038    virtual ~TSQLTableInfo();
00039    
00040    virtual void Print(Option_t* option = "") const;
00041    
00042    TList* GetColumns() const { return fColumns; }
00043    
00044    TSQLColumnInfo* FindColumn(const char* columnname);
00045    
00046    const char* GetEngine()     const { return fEngine.Data(); }
00047    const char* GetCreateTime() const { return fCreateTime.Data(); }
00048    const char* GetUpdateTime() const { return fUpdateTime.Data(); }
00049 
00050    ClassDef(TSQLTableInfo, 0) // Summury information about SQL table
00051 };
00052 
00053 #endif

Generated on Tue Jul 5 14:28:13 2011 for ROOT_528-00b_version by  doxygen 1.5.1