// @(#)root/net:$Id$
// Author: Sergey Linev   31/05/2006

/*************************************************************************
 * Copyright (C) 1995-2006, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

#ifndef ROOT_TSQLTableInfo
#define ROOT_TSQLTableInfo

#ifndef ROOT_TNamed
#include "TNamed.h"
#endif

class TList;
class TSQLColumnInfo;

class TSQLTableInfo : public TNamed {

protected:
   TList*    fColumns;    //! list of TSQLColumnInfo objects, describing each table column
   TString   fEngine;     //! SQL tables engine name
   TString   fCreateTime; //! table creation time
   TString   fUpdateTime; //! table update time

public:
   TSQLTableInfo();
   TSQLTableInfo(const char* tablename,
                 TList* columns,
                 const char* comment = "SQL table",
                 const char* engine = 0,
                 const char* create_time = 0,
                 const char* update_time = 0);
   virtual ~TSQLTableInfo();

   virtual void Print(Option_t* option = "") const;

   TList* GetColumns() const { return fColumns; }

   TSQLColumnInfo* FindColumn(const char* columnname);

   const char* GetEngine()     const { return fEngine.Data(); }
   const char* GetCreateTime() const { return fCreateTime.Data(); }
   const char* GetUpdateTime() const { return fUpdateTime.Data(); }

   ClassDef(TSQLTableInfo, 0) // Summury information about SQL table
};

#endif
 TSQLTableInfo.h:1
 TSQLTableInfo.h:2
 TSQLTableInfo.h:3
 TSQLTableInfo.h:4
 TSQLTableInfo.h:5
 TSQLTableInfo.h:6
 TSQLTableInfo.h:7
 TSQLTableInfo.h:8
 TSQLTableInfo.h:9
 TSQLTableInfo.h:10
 TSQLTableInfo.h:11
 TSQLTableInfo.h:12
 TSQLTableInfo.h:13
 TSQLTableInfo.h:14
 TSQLTableInfo.h:15
 TSQLTableInfo.h:16
 TSQLTableInfo.h:17
 TSQLTableInfo.h:18
 TSQLTableInfo.h:19
 TSQLTableInfo.h:20
 TSQLTableInfo.h:21
 TSQLTableInfo.h:22
 TSQLTableInfo.h:23
 TSQLTableInfo.h:24
 TSQLTableInfo.h:25
 TSQLTableInfo.h:26
 TSQLTableInfo.h:27
 TSQLTableInfo.h:28
 TSQLTableInfo.h:29
 TSQLTableInfo.h:30
 TSQLTableInfo.h:31
 TSQLTableInfo.h:32
 TSQLTableInfo.h:33
 TSQLTableInfo.h:34
 TSQLTableInfo.h:35
 TSQLTableInfo.h:36
 TSQLTableInfo.h:37
 TSQLTableInfo.h:38
 TSQLTableInfo.h:39
 TSQLTableInfo.h:40
 TSQLTableInfo.h:41
 TSQLTableInfo.h:42
 TSQLTableInfo.h:43
 TSQLTableInfo.h:44
 TSQLTableInfo.h:45
 TSQLTableInfo.h:46
 TSQLTableInfo.h:47
 TSQLTableInfo.h:48
 TSQLTableInfo.h:49
 TSQLTableInfo.h:50
 TSQLTableInfo.h:51
 TSQLTableInfo.h:52
 TSQLTableInfo.h:53