#include <TSQLFile.h>
Inheritance diagram for TSQLFile:
Public Types | |
enum | ETransactionKinds |
enum | EIndexesKinds |
enum | ETransactionKinds |
enum | EIndexesKinds |
Public Member Functions | |
TSQLFile () | |
TSQLFile (const char *dbname, Option_t *option="read", const char *user="user", const char *pass="pass") | |
virtual | ~TSQLFile () |
Bool_t | GetUseSuffixes () const |
void | SetUseSuffixes (Bool_t on=kTRUE) |
Int_t | GetArrayLimit () const |
void | SetArrayLimit (Int_t limit=20) |
void | SkipArrayLimit () |
void | SetTablesType (const char *table_type) |
const char * | GetTablesType () const |
void | SetUseTransactions (Int_t mode=kTransactionsAuto) |
Int_t | GetUseTransactions () const |
void | SetUseIndexes (Int_t use_type=kIndexesBasic) |
Int_t | GetUseIndexes () const |
Int_t | GetQuerisCounter () const |
TString | MakeSelectQuery (TClass *cl) |
Bool_t | StartTransaction () |
Bool_t | Commit () |
Bool_t | Rollback () |
void | StartLogFile (const char *fname) |
void | StopLogFile () |
virtual void | Close (Option_t *option="") |
virtual TKey * | CreateKey (TDirectory *mother, const TObject *obj, const char *name, Int_t bufsize) |
virtual TKey * | CreateKey (TDirectory *mother, const void *obj, const TClass *cl, const char *name, Int_t bufsize) |
virtual void | DrawMap (const char *="*", Option_t *="") |
virtual void | FillBuffer (char *&) |
virtual void | Flush () |
virtual Long64_t | GetEND () const |
virtual Int_t | GetErrno () const |
virtual void | ResetErrno () const |
const char * | GetDataBaseName () const |
virtual Int_t | GetNfree () const |
virtual Int_t | GetNbytesInfo () const |
virtual Int_t | GetNbytesFree () const |
virtual Long64_t | GetSeekFree () const |
virtual Long64_t | GetSeekInfo () const |
virtual Long64_t | GetSize () const |
virtual TList * | GetStreamerInfoList () |
Bool_t | IsMySQL () const |
virtual Bool_t | IsOpen () const |
Bool_t | IsOracle () const |
Bool_t | IsODBC () const |
virtual void | MakeFree (Long64_t, Long64_t) |
virtual void | MakeProject (const char *, const char *="*", Option_t *="new") |
virtual void | Map () |
virtual void | Paint (Option_t *="") |
virtual void | Print (Option_t *="") const |
virtual Bool_t | ReadBuffer (char *, Int_t) |
virtual Bool_t | ReadBuffer (char *, Long64_t, Int_t) |
virtual void | ReadFree () |
virtual Int_t | Recover () |
virtual Int_t | ReOpen (Option_t *mode) |
virtual void | Seek (Long64_t, ERelativeTo=kBeg) |
virtual void | SetEND (Long64_t) |
virtual Int_t | Sizeof () const |
virtual void | UseCache (Int_t=10, Int_t=0) |
virtual Bool_t | WriteBuffer (const char *, Int_t) |
virtual Int_t | Write (const char *=0, Int_t=0, Int_t=0) |
virtual Int_t | Write (const char *=0, Int_t=0, Int_t=0) const |
virtual void | WriteFree () |
virtual void | WriteHeader () |
virtual void | WriteStreamerInfo () |
TSQLFile () | |
TSQLFile (const char *dbname, Option_t *option="read", const char *user="user", const char *pass="pass") | |
virtual | ~TSQLFile () |
Bool_t | GetUseSuffixes () const |
void | SetUseSuffixes (Bool_t on=kTRUE) |
Int_t | GetArrayLimit () const |
void | SetArrayLimit (Int_t limit=20) |
void | SkipArrayLimit () |
void | SetTablesType (const char *table_type) |
const char * | GetTablesType () const |
void | SetUseTransactions (Int_t mode=kTransactionsAuto) |
Int_t | GetUseTransactions () const |
void | SetUseIndexes (Int_t use_type=kIndexesBasic) |
Int_t | GetUseIndexes () const |
Int_t | GetQuerisCounter () const |
TString | MakeSelectQuery (TClass *cl) |
Bool_t | StartTransaction () |
Bool_t | Commit () |
Bool_t | Rollback () |
void | StartLogFile (const char *fname) |
void | StopLogFile () |
virtual void | Close (Option_t *option="") |
virtual TKey * | CreateKey (TDirectory *mother, const TObject *obj, const char *name, Int_t bufsize) |
virtual TKey * | CreateKey (TDirectory *mother, const void *obj, const TClass *cl, const char *name, Int_t bufsize) |
virtual void | DrawMap (const char *="*", Option_t *="") |
virtual void | FillBuffer (char *&) |
virtual void | Flush () |
virtual Long64_t | GetEND () const |
virtual Int_t | GetErrno () const |
virtual void | ResetErrno () const |
const char * | GetDataBaseName () const |
virtual Int_t | GetNfree () const |
virtual Int_t | GetNbytesInfo () const |
virtual Int_t | GetNbytesFree () const |
virtual Long64_t | GetSeekFree () const |
virtual Long64_t | GetSeekInfo () const |
virtual Long64_t | GetSize () const |
virtual TList * | GetStreamerInfoList () |
Bool_t | IsMySQL () const |
virtual Bool_t | IsOpen () const |
Bool_t | IsOracle () const |
Bool_t | IsODBC () const |
virtual void | MakeFree (Long64_t, Long64_t) |
virtual void | MakeProject (const char *, const char *="*", Option_t *="new") |
virtual void | Map () |
virtual void | Paint (Option_t *="") |
virtual void | Print (Option_t *="") const |
virtual Bool_t | ReadBuffer (char *, Int_t) |
virtual Bool_t | ReadBuffer (char *, Long64_t, Int_t) |
virtual void | ReadFree () |
virtual Int_t | Recover () |
virtual Int_t | ReOpen (Option_t *mode) |
virtual void | Seek (Long64_t, ERelativeTo=kBeg) |
virtual void | SetEND (Long64_t) |
virtual Int_t | Sizeof () const |
virtual void | UseCache (Int_t=10, Int_t=0) |
virtual Bool_t | WriteBuffer (const char *, Int_t) |
virtual Int_t | Write (const char *=0, Int_t=0, Int_t=0) |
virtual Int_t | Write (const char *=0, Int_t=0, Int_t=0) const |
virtual void | WriteFree () |
virtual void | WriteHeader () |
virtual void | WriteStreamerInfo () |
Protected Types | |
enum | ELockingKinds |
enum | ELockingKinds |
Protected Member Functions | |
virtual Int_t | SysOpen (const char *, Int_t, UInt_t) |
virtual Int_t | SysClose (Int_t) |
virtual Int_t | SysRead (Int_t, void *, Int_t) |
virtual Int_t | SysWrite (Int_t, const void *, Int_t) |
virtual Long64_t | SysSeek (Int_t, Long64_t, Int_t) |
virtual Int_t | SysStat (Int_t, Long_t *, Long64_t *, Long_t *, Long_t *) |
virtual Int_t | SysSync (Int_t) |
virtual Long64_t | DirCreateEntry (TDirectory *) |
virtual Int_t | DirReadKeys (TDirectory *) |
virtual void | DirWriteKeys (TDirectory *) |
virtual void | DirWriteHeader (TDirectory *) |
void | SaveToDatabase () |
Bool_t | ReadConfigurations () |
Bool_t | IsTablesExists () |
void | InitSqlDatabase (Bool_t create) |
void | CreateBasicTables () |
void | IncrementModifyCounter () |
void | SetLocking (Int_t mode) |
Int_t | GetLocking () |
Bool_t | IsWriteAccess () |
Bool_t | IsReadAccess () |
TSQLResult * | SQLQuery (const char *cmd, Int_t flag=0, Bool_t *res=0) |
Bool_t | SQLCanStatement () |
TSQLStatement * | SQLStatement (const char *cmd, Int_t bufsize=1000) |
void | SQLDeleteStatement (TSQLStatement *stmt) |
Bool_t | SQLApplyCommands (TObjArray *cmds) |
Bool_t | SQLTestTable (const char *tablename) |
Long64_t | SQLMaximumValue (const char *tablename, const char *columnname) |
void | SQLDeleteAllTables () |
Bool_t | SQLStartTransaction () |
Bool_t | SQLCommit () |
Bool_t | SQLRollback () |
Int_t | SQLMaxIdentifierLength () |
void | DeleteKeyFromDB (Long64_t keyid) |
Bool_t | WriteKeyData (TKeySQL *key) |
Bool_t | UpdateKeyData (TKeySQL *key) |
TKeySQL * | FindSQLKey (TDirectory *dir, Long64_t keyid) |
Long64_t | DefineNextKeyId () |
Int_t | StreamKeysForDirectory (TDirectory *dir, Bool_t doupdate, Long64_t specialkeyid=-1, TKeySQL **specialkey=0) |
TSQLClassInfo * | FindSQLClassInfo (const char *clname, Int_t version) |
TSQLClassInfo * | FindSQLClassInfo (const TClass *cl) |
TSQLClassInfo * | RequestSQLClassInfo (const char *clname, Int_t version) |
TSQLClassInfo * | RequestSQLClassInfo (const TClass *cl) |
Bool_t | CreateClassTable (TSQLClassInfo *sqlinfo, TObjArray *colinfos) |
Bool_t | CreateRawTable (TSQLClassInfo *sqlinfo) |
Bool_t | ProduceClassSelectQuery (TVirtualStreamerInfo *info, TSQLClassInfo *sqlinfo, TString &columns, TString &tables, Int_t &tablecnt) |
void | AddIdEntry (Long64_t tableid, Int_t subid, Int_t type, const char *name, const char *sqlname, const char *info) |
void | ReadSQLClassInfos () |
TString | DefineTableName (const char *clname, Int_t version, Bool_t rawtable) |
Bool_t | HasTable (const char *name) |
TString | CodeLongString (Long64_t objid, Int_t strid) |
Int_t | IsLongStringCode (Long64_t objid, const char *value) |
Bool_t | VerifyLongStringTable () |
Bool_t | GetLongString (Long64_t objid, Int_t strid, TString &value) |
Long64_t | VerifyObjectTable () |
Bool_t | SQLObjectInfo (Long64_t objid, TString &clname, Version_t &version) |
TObjArray * | SQLObjectsInfo (Long64_t keyid) |
TSQLResult * | GetNormalClassData (Long64_t objid, TSQLClassInfo *sqlinfo) |
TSQLResult * | GetNormalClassDataAll (Long64_t minobjid, Long64_t maxobjid, TSQLClassInfo *sqlinfo) |
TSQLResult * | GetBlobClassData (Long64_t objid, TSQLClassInfo *sqlinfo) |
TSQLStatement * | GetBlobClassDataStmt (Long64_t objid, TSQLClassInfo *sqlinfo) |
Long64_t | StoreObjectInTables (Long64_t keyid, const void *obj, const TClass *cl) |
Bool_t | WriteSpecialObject (Long64_t keyid, TObject *obj, const char *name, const char *title) |
TObject * | ReadSpecialObject (Long64_t keyid, TObject *obj=0) |
const char * | SQLCompatibleType (Int_t typ) const |
const char * | SQLIntType () const |
const char * | SQLSmallTextType () const |
Int_t | SQLSmallTextTypeLimit () const |
const char * | SQLBigTextType () const |
const char * | SQLDatetimeType () const |
const char * | SQLIdentifierQuote () const |
const char * | SQLDirIdColumn () const |
const char * | SQLKeyIdColumn () const |
const char * | SQLObjectIdColumn () const |
const char * | SQLRawIdColumn () const |
const char * | SQLStrIdColumn () const |
const char * | SQLNameSeparator () const |
const char * | SQLValueQuote () const |
const char * | SQLDefaultTableType () const |
virtual Int_t | SysOpen (const char *, Int_t, UInt_t) |
virtual Int_t | SysClose (Int_t) |
virtual Int_t | SysRead (Int_t, void *, Int_t) |
virtual Int_t | SysWrite (Int_t, const void *, Int_t) |
virtual Long64_t | SysSeek (Int_t, Long64_t, Int_t) |
virtual Int_t | SysStat (Int_t, Long_t *, Long64_t *, Long_t *, Long_t *) |
virtual Int_t | SysSync (Int_t) |
virtual Long64_t | DirCreateEntry (TDirectory *) |
virtual Int_t | DirReadKeys (TDirectory *) |
virtual void | DirWriteKeys (TDirectory *) |
virtual void | DirWriteHeader (TDirectory *) |
void | SaveToDatabase () |
Bool_t | ReadConfigurations () |
Bool_t | IsTablesExists () |
void | InitSqlDatabase (Bool_t create) |
void | CreateBasicTables () |
void | IncrementModifyCounter () |
void | SetLocking (Int_t mode) |
Int_t | GetLocking () |
Bool_t | IsWriteAccess () |
Bool_t | IsReadAccess () |
TSQLResult * | SQLQuery (const char *cmd, Int_t flag=0, Bool_t *res=0) |
Bool_t | SQLCanStatement () |
TSQLStatement * | SQLStatement (const char *cmd, Int_t bufsize=1000) |
void | SQLDeleteStatement (TSQLStatement *stmt) |
Bool_t | SQLApplyCommands (TObjArray *cmds) |
Bool_t | SQLTestTable (const char *tablename) |
Long64_t | SQLMaximumValue (const char *tablename, const char *columnname) |
void | SQLDeleteAllTables () |
Bool_t | SQLStartTransaction () |
Bool_t | SQLCommit () |
Bool_t | SQLRollback () |
Int_t | SQLMaxIdentifierLength () |
void | DeleteKeyFromDB (Long64_t keyid) |
Bool_t | WriteKeyData (TKeySQL *key) |
Bool_t | UpdateKeyData (TKeySQL *key) |
TKeySQL * | FindSQLKey (TDirectory *dir, Long64_t keyid) |
Long64_t | DefineNextKeyId () |
Int_t | StreamKeysForDirectory (TDirectory *dir, Bool_t doupdate, Long64_t specialkeyid=-1, TKeySQL **specialkey=0) |
TSQLClassInfo * | FindSQLClassInfo (const char *clname, Int_t version) |
TSQLClassInfo * | FindSQLClassInfo (const TClass *cl) |
TSQLClassInfo * | RequestSQLClassInfo (const char *clname, Int_t version) |
TSQLClassInfo * | RequestSQLClassInfo (const TClass *cl) |
Bool_t | CreateClassTable (TSQLClassInfo *sqlinfo, TObjArray *colinfos) |
Bool_t | CreateRawTable (TSQLClassInfo *sqlinfo) |
Bool_t | ProduceClassSelectQuery (TVirtualStreamerInfo *info, TSQLClassInfo *sqlinfo, TString &columns, TString &tables, Int_t &tablecnt) |
void | AddIdEntry (Long64_t tableid, Int_t subid, Int_t type, const char *name, const char *sqlname, const char *info) |
void | ReadSQLClassInfos () |
TString | DefineTableName (const char *clname, Int_t version, Bool_t rawtable) |
Bool_t | HasTable (const char *name) |
TString | CodeLongString (Long64_t objid, Int_t strid) |
Int_t | IsLongStringCode (Long64_t objid, const char *value) |
Bool_t | VerifyLongStringTable () |
Bool_t | GetLongString (Long64_t objid, Int_t strid, TString &value) |
Long64_t | VerifyObjectTable () |
Bool_t | SQLObjectInfo (Long64_t objid, TString &clname, Version_t &version) |
TObjArray * | SQLObjectsInfo (Long64_t keyid) |
TSQLResult * | GetNormalClassData (Long64_t objid, TSQLClassInfo *sqlinfo) |
TSQLResult * | GetNormalClassDataAll (Long64_t minobjid, Long64_t maxobjid, TSQLClassInfo *sqlinfo) |
TSQLResult * | GetBlobClassData (Long64_t objid, TSQLClassInfo *sqlinfo) |
TSQLStatement * | GetBlobClassDataStmt (Long64_t objid, TSQLClassInfo *sqlinfo) |
Long64_t | StoreObjectInTables (Long64_t keyid, const void *obj, const TClass *cl) |
Bool_t | WriteSpecialObject (Long64_t keyid, TObject *obj, const char *name, const char *title) |
TObject * | ReadSpecialObject (Long64_t keyid, TObject *obj=0) |
const char * | SQLCompatibleType (Int_t typ) const |
const char * | SQLIntType () const |
const char * | SQLSmallTextType () const |
Int_t | SQLSmallTextTypeLimit () const |
const char * | SQLBigTextType () const |
const char * | SQLDatetimeType () const |
const char * | SQLIdentifierQuote () const |
const char * | SQLDirIdColumn () const |
const char * | SQLKeyIdColumn () const |
const char * | SQLObjectIdColumn () const |
const char * | SQLRawIdColumn () const |
const char * | SQLStrIdColumn () const |
const char * | SQLNameSeparator () const |
const char * | SQLValueQuote () const |
const char * | SQLDefaultTableType () const |
Protected Attributes | |
TSQLServer * | fSQL |
TList * | fSQLClassInfos |
interface to SQL database | |
Bool_t | fUseSuffixes |
list of SQL class infos | |
Int_t | fSQLIOversion |
use suffixes in column names like fValue:Int_t or fObject:pointer | |
Int_t | fArrayLimit |
version of SQL I/O which is stored in configurations | |
Bool_t | fCanChangeConfig |
limit for array size. when array bigger, its content converted to raw format | |
TString | fTablesType |
variable indicates can be basic configuration changed or not | |
Int_t | fUseTransactions |
type, used in CREATE TABLE statements | |
Int_t | fUseIndexes |
use transaction statements for writing data into the tables | |
Int_t | fModifyCounter |
use indexes for tables: 0 - off, 1 - only for basic tables, 2 + normal class tables, 3 - all tables | |
Int_t | fQuerisCounter |
indicates how many changes was done with database tables | |
const char ** | fBasicTypes |
how many query was applied | |
const char ** | fOtherTypes |
pointer on list of basic types specific for currently connected SQL server | |
TString | fUserName |
pointer on list of other SQL types like TEXT or blob | |
std::ofstream * | fLogFile |
user name, used to access objects from database | |
Bool_t | fIdsTableExists |
log file with SQL statements | |
Int_t | fStmtCounter |
indicate if IdsTable exists | |
TSQLServer * | fSQL |
TList * | fSQLClassInfos |
interface to SQL database | |
const char ** | fBasicTypes |
how many query was applied | |
const char ** | fOtherTypes |
pointer on list of basic types specific for currently connected SQL server | |
std::ofstream * | fLogFile |
user name, used to access objects from database | |
Private Member Functions | |
void | operator= (const TSQLFile &) |
count numbers of active statements | |
void | operator= (const TSQLFile &) |
count numbers of active statements | |
Friends | |
class | TBufferSQL2 |
class | TKeySQL |
class | TSQLStructure |
class | TSQLTableData |
class | TSqlRegistry |
class | TSqlRawBuffer |
class | TSqlCmdsBuffer |
Definition at line 40 of file TSQLFile.h.
enum TSQLFile::ELockingKinds [protected] |
Definition at line 51 of file TSQLFile.h.
Definition at line 187 of file TSQLFile.h.
Definition at line 193 of file TSQLFile.h.
enum TSQLFile::ELockingKinds [protected] |
Definition at line 51 of file TSQLFile.h.
Definition at line 187 of file TSQLFile.h.
Definition at line 193 of file TSQLFile.h.
TSQLFile::TSQLFile | ( | ) |
Definition at line 281 of file TSQLFile.cxx.
References TFile::kBinaryFile, kFALSE, and TObject::SetBit().
TSQLFile::TSQLFile | ( | const char * | dbname, | |
Option_t * | option = "read" , |
|||
const char * | user = "user" , |
|||
const char * | pass = "pass" | |||
) |
Definition at line 306 of file TSQLFile.cxx.
References TDirectoryFile::Build(), TDirectory::cd(), TSQLServer::Connect(), TObject::Error(), fArrayLimit, TObject::Fatal(), fBasicTypes, TFile::fBytesRead, TFile::fBytesWrite, fCanChangeConfig, TFile::fClassIndex, TFile::fD, TDirectoryFile::fFile, TFile::fFree, TFile::fNbytesInfo, TFile::fNProcessIDs, TFile::fOption, fOtherTypes, TFile::fProcessIDs, TFile::fRealName, TDirectoryFile::fSeekDir, TFile::fSeekInfo, fSQL, TFile::fSum2Buffer, TFile::fSumBuffer, fTablesType, TFile::fUnits, fUseIndexes, fUseTransactions, TFile::fVersion, TFile::fWritten, gDirectory, TROOT::GetVersionInt(), gROOT, sqlio::Ids_RootDir, InitSqlDatabase(), IsReadAccess(), IsTablesExists(), IsWriteAccess(), TFile::kBinaryFile, kFALSE, kLockBusy, kTransactionsAuto, kTRUE, TObject::MakeZombie(), oracle_BasicTypes, oracle_OtherTypes, read, TObject::SetBit(), TFile::SetCompressionLevel(), SetLocking(), TDirectory::SetName(), TNamed::SetTitle(), TDirectoryFile::SetWritable(), SQLDefaultTableType(), SQLDeleteAllTables(), TString::ToUpper(), and update().
TSQLFile::~TSQLFile | ( | ) | [virtual] |
Definition at line 725 of file TSQLFile.cxx.
References Close(), TList::Delete(), fSQL, fSQLClassInfos, and StopLogFile().
TSQLFile::TSQLFile | ( | ) |
TSQLFile::TSQLFile | ( | const char * | dbname, | |
Option_t * | option = "read" , |
|||
const char * | user = "user" , |
|||
const char * | pass = "pass" | |||
) |
virtual TSQLFile::~TSQLFile | ( | ) | [virtual] |
Long64_t TSQLFile::DirCreateEntry | ( | TDirectory * | ) | [protected, virtual] |
Reimplemented from TFile.
Definition at line 2595 of file TSQLFile.cxx.
References dir(), TKeySQL::GetDBKeyId(), and TKeySQL.
Int_t TSQLFile::DirReadKeys | ( | TDirectory * | ) | [protected, virtual] |
Reimplemented from TFile.
Definition at line 2609 of file TSQLFile.cxx.
References dir(), gDebug, TObject::Info(), kFALSE, and StreamKeysForDirectory().
void TSQLFile::DirWriteKeys | ( | TDirectory * | ) | [protected, virtual] |
Reimplemented from TFile.
Definition at line 2623 of file TSQLFile.cxx.
References dir(), kTRUE, and StreamKeysForDirectory().
void TSQLFile::DirWriteHeader | ( | TDirectory * | ) | [protected, virtual] |
Reimplemented from TFile.
Definition at line 2631 of file TSQLFile.cxx.
References TSQLStructure::AddStrBrackets(), TDatime::AsSQLString(), xmlio::Class, TString::Data(), dir(), TDirectoryFile::fDatimeC, TDirectoryFile::fDatimeM, FindSQLClassInfo(), FindSQLKey(), TString::Form(), TSQLClassInfo::GetClassTableName(), TKeySQL::GetDBObjId(), GetUseSuffixes(), SQLIdentifierQuote(), SQLObjectIdColumn(), SQLQuery(), SQLValueQuote(), and sqlio::StrSuffix.
void TSQLFile::SaveToDatabase | ( | ) | [protected] |
Definition at line 934 of file TSQLFile.cxx.
References fSQL, WriteHeader(), and WriteStreamerInfo().
Bool_t TSQLFile::ReadConfigurations | ( | ) | [protected] |
Definition at line 1078 of file TSQLFile.cxx.
References sqlio::cfg_ArrayLimit, sqlio::cfg_LockingMode, sqlio::cfg_ModifyCounter, sqlio::cfg_TablesType, sqlio::cfg_UseIndexes, sqlio::cfg_UseSufixes, sqlio::cfg_UseTransactions, sqlio::cfg_Version, sqlio::ConfigTable, TString::Data(), TObject::Error(), fArrayLimit, fModifyCounter, TString::Form(), fSQLIOversion, fTablesType, fUseIndexes, fUseSuffixes, fUseTransactions, kFALSE, ReadBoolCfg, ReadIntCfg, ReadStrCfg, row, SQLIdentifierQuote(), SQLQuery(), and value.
Referenced by InitSqlDatabase().
Bool_t TSQLFile::IsTablesExists | ( | ) | [protected] |
Definition at line 1356 of file TSQLFile.cxx.
References sqlio::ConfigTable, sqlio::KeysTable, and SQLTestTable().
Referenced by TSQLFile(), WriteKeyData(), and WriteStreamerInfo().
void TSQLFile::InitSqlDatabase | ( | Bool_t | create | ) | [protected] |
Definition at line 1026 of file TSQLFile.cxx.
References TSeqCollection::Add(), TDirectoryFile::cd(), Close(), TObject::Error(), TFile::fClassIndex, TDirectoryFile::fKeys, TFile::fNProcessIDs, TFile::fProcessIDs, fSQL, gDirectory, TKey::GetClassName(), TROOT::GetListOfFiles(), TROOT::GetListOfStreamerInfo(), TCollection::GetSize(), gROOT, sqlio::Ids_TSQLFile, kFALSE, len, TObject::MakeZombie(), ok, ReadConfigurations(), ReadSpecialObject(), ReadSQLClassInfos(), TFile::ReadStreamerInfo(), TArrayC::Reset(), and StreamKeysForDirectory().
Referenced by TSQLFile().
void TSQLFile::CreateBasicTables | ( | ) | [protected] |
Definition at line 1138 of file TSQLFile.cxx.
References sqlio::cfg_ArrayLimit, sqlio::cfg_LockingMode, sqlio::cfg_ModifyCounter, sqlio::cfg_TablesType, sqlio::cfg_UseIndexes, sqlio::cfg_UseSufixes, sqlio::cfg_UseTransactions, sqlio::cfg_Version, sqlio::ConfigTable, sqlio::CT_Field, sqlio::CT_Value, TString::Data(), sqlio::False, fArrayLimit, fCanChangeConfig, fModifyCounter, TString::Form(), fSQLIOversion, fTablesType, fUseIndexes, fUseSuffixes, fUseTransactions, GetUseIndexes(), IsMySQL(), sqlio::KeysTable, sqlio::KeysTableIndex, kFALSE, kIndexesNone, kLockBusy, sqlio::KT_Class, sqlio::KT_Cycle, sqlio::KT_Datetime, sqlio::KT_Name, sqlio::KT_Title, TString::Length(), SQLDatetimeType(), SQLDirIdColumn(), SQLIdentifierQuote(), SQLIntType(), SQLKeyIdColumn(), SQLObjectIdColumn(), SQLQuery(), SQLSmallTextType(), SQLTestTable(), SQLValueQuote(), sqlio::True, and WrintCfg.
Referenced by WriteKeyData().
void TSQLFile::IncrementModifyCounter | ( | ) | [protected] |
Definition at line 1219 of file TSQLFile.cxx.
References sqlio::cfg_ModifyCounter, sqlio::ConfigTable, sqlio::CT_Field, sqlio::CT_Value, TString::Data(), TObject::Error(), fModifyCounter, TString::Form(), TDirectoryFile::IsWritable(), SQLIdentifierQuote(), SQLQuery(), and SQLValueQuote().
Referenced by DeleteKeyFromDB(), UpdateKeyData(), and WriteKeyData().
void TSQLFile::SetLocking | ( | Int_t | mode | ) | [protected] |
Definition at line 1372 of file TSQLFile.cxx.
References sqlio::cfg_LockingMode, sqlio::ConfigTable, sqlio::CT_Field, sqlio::CT_Value, TString::Data(), TString::Form(), SQLIdentifierQuote(), SQLQuery(), and SQLValueQuote().
Referenced by Close(), ReOpen(), and TSQLFile().
Int_t TSQLFile::GetLocking | ( | ) | [protected] |
Definition at line 1389 of file TSQLFile.cxx.
References TString::Atoi(), sqlio::cfg_LockingMode, sqlio::ConfigTable, sqlio::CT_Field, sqlio::CT_Value, TString::Data(), TString::Form(), kLockFree, TString::Length(), row, SQLIdentifierQuote(), SQLQuery(), and SQLValueQuote().
Referenced by IsWriteAccess().
Bool_t TSQLFile::IsWriteAccess | ( | ) | [protected] |
Definition at line 1364 of file TSQLFile.cxx.
References GetLocking(), and kLockFree.
Referenced by ReOpen(), and TSQLFile().
Bool_t TSQLFile::IsReadAccess | ( | ) | [protected] |
TSQLResult * TSQLFile::SQLQuery | ( | const char * | cmd, | |
Int_t | flag = 0 , |
|||
Bool_t * | res = 0 | |||
) | [protected] |
Definition at line 1423 of file TSQLFile.cxx.
References TSQLServer::Exec(), fLogFile, fQuerisCounter, fSQL, gDebug, TObject::Info(), kFALSE, and TSQLServer::Query().
Referenced by AddIdEntry(), CreateBasicTables(), CreateClassTable(), CreateRawTable(), DeleteKeyFromDB(), DirWriteHeader(), GetBlobClassData(), GetLocking(), GetLongString(), GetNormalClassData(), GetNormalClassDataAll(), IncrementModifyCounter(), ReadConfigurations(), ReadSQLClassInfos(), SetLocking(), SQLApplyCommands(), SQLDeleteAllTables(), SQLMaximumValue(), SQLObjectInfo(), SQLObjectsInfo(), StreamKeysForDirectory(), UpdateKeyData(), VerifyLongStringTable(), VerifyObjectTable(), and WriteKeyData().
Bool_t TSQLFile::SQLCanStatement | ( | ) | [protected] |
Definition at line 1459 of file TSQLFile.cxx.
References fSQL, TSQLServer::HasStatement(), kFALSE, and kTRUE.
Referenced by TSqlRawBuffer::AddLine(), TSqlRegistry::AddRegCmd(), and TSqlRegistry::InsertToNormalTableOracle().
TSQLStatement * TSQLFile::SQLStatement | ( | const char * | cmd, | |
Int_t | bufsize = 1000 | |||
) | [protected] |
Definition at line 1471 of file TSQLFile.cxx.
References fQuerisCounter, fSQL, fStmtCounter, gDebug, TSQLServer::HasStatement(), TObject::Info(), and TSQLServer::Statement().
Referenced by TSqlRawBuffer::AddLine(), TSqlRegistry::AddRegCmd(), GetBlobClassDataStmt(), TSqlRegistry::InsertToNormalTableOracle(), and SQLObjectsInfo().
void TSQLFile::SQLDeleteStatement | ( | TSQLStatement * | stmt | ) | [protected] |
Definition at line 1489 of file TSQLFile.cxx.
References fStmtCounter.
Referenced by TSqlCmdsBuffer::~TSqlCmdsBuffer(), and TSqlRegistry::~TSqlRegistry().
Definition at line 1501 of file TSQLFile.cxx.
References fSQL, TObject::GetName(), kFALSE, kTRUE, ok, and SQLQuery().
Referenced by StoreObjectInTables().
Bool_t TSQLFile::SQLTestTable | ( | const char * | tablename | ) | [protected] |
Definition at line 1520 of file TSQLFile.cxx.
References buf, fSQL, TSQLServer::HasTable(), kFALSE, and kTRUE.
Referenced by AddIdEntry(), CreateBasicTables(), DefineNextKeyId(), GetLongString(), IsTablesExists(), ReadSQLClassInfos(), VerifyLongStringTable(), and VerifyObjectTable().
Long64_t TSQLFile::SQLMaximumValue | ( | const char * | tablename, | |
const char * | columnname | |||
) | [protected] |
Definition at line 1536 of file TSQLFile.cxx.
References sqlio::atol64(), TString::Data(), TString::Form(), fSQL, gDebug, TObject::Info(), Long64_t, row, SQLIdentifierQuote(), and SQLQuery().
Referenced by DefineNextKeyId(), and VerifyObjectTable().
void TSQLFile::SQLDeleteAllTables | ( | ) | [protected] |
Definition at line 1573 of file TSQLFile.cxx.
References TString::Data(), TString::Form(), fSQL, TSQLServer::GetTablesList(), SQLIdentifierQuote(), and SQLQuery().
Referenced by TSQLFile().
Bool_t TSQLFile::SQLStartTransaction | ( | ) | [protected] |
Definition at line 1595 of file TSQLFile.cxx.
References fSQL, kFALSE, and TSQLServer::StartTransaction().
Referenced by StartTransaction(), and StoreObjectInTables().
Bool_t TSQLFile::SQLCommit | ( | ) | [protected] |
Definition at line 1603 of file TSQLFile.cxx.
References TSQLServer::Commit(), fSQL, and kFALSE.
Referenced by Commit(), and StoreObjectInTables().
Bool_t TSQLFile::SQLRollback | ( | ) | [protected] |
Definition at line 1611 of file TSQLFile.cxx.
References fSQL, kFALSE, and TSQLServer::Rollback().
Referenced by Rollback(), and StoreObjectInTables().
Int_t TSQLFile::SQLMaxIdentifierLength | ( | ) | [protected] |
Definition at line 1619 of file TSQLFile.cxx.
References fSQL, and TSQLServer::GetMaxIdentifierLength().
Referenced by TSQLTableData::DefineSQLName(), and DefineTableName().
void TSQLFile::DeleteKeyFromDB | ( | Long64_t | keyid | ) | [protected] |
Definition at line 1632 of file TSQLFile.cxx.
References sqlio::atol64(), TString::Data(), TString::Form(), fSQL, fSQLClassInfos, IncrementModifyCounter(), info, TDirectoryFile::IsWritable(), sqlio::KeysTable, Long64_t, sqlio::ObjectsTable, row, SQLIdentifierQuote(), SQLKeyIdColumn(), SQLObjectIdColumn(), and SQLQuery().
Referenced by WriteSpecialObject().
Definition at line 1712 of file TSQLFile.cxx.
References TDatime::AsSQLString(), CreateBasicTables(), TString::Data(), TString::Form(), fSQL, TKey::GetClassName(), TKey::GetCycle(), TKey::GetDatime(), TKeySQL::GetDBDirId(), TKeySQL::GetDBKeyId(), TKeySQL::GetDBObjId(), TNamed::GetName(), TKey::GetTitle(), IncrementModifyCounter(), IsTablesExists(), sqlio::KeysTable, kFALSE, kTRUE, ok, SQLIdentifierQuote(), SQLQuery(), and SQLValueQuote().
Referenced by WriteSpecialObject().
Definition at line 1743 of file TSQLFile.cxx.
References TSQLStructure::AddStrBrackets(), TDatime::AsSQLString(), TString::Data(), TString::Form(), fSQL, TKey::GetCycle(), TKey::GetDatime(), TKeySQL::GetDBKeyId(), TNamed::GetName(), TKey::GetTitle(), IncrementModifyCounter(), sqlio::KeysTable, kFALSE, sqlio::KT_Cycle, sqlio::KT_Datetime, sqlio::KT_Name, sqlio::KT_Title, kTRUE, ok, SQLIdentifierQuote(), SQLKeyIdColumn(), SQLQuery(), and SQLValueQuote().
Referenced by StreamKeysForDirectory().
TKeySQL * TSQLFile::FindSQLKey | ( | TDirectory * | dir, | |
Long64_t | keyid | |||
) | [protected] |
Definition at line 1693 of file TSQLFile.cxx.
References dir(), and TKeySQL::GetDBKeyId().
Referenced by DirWriteHeader(), and StreamKeysForDirectory().
Long64_t TSQLFile::DefineNextKeyId | ( | ) | [protected] |
Definition at line 1779 of file TSQLFile.cxx.
References sqlio::Ids_FirstKey, sqlio::KeysTable, Long64_t, max, SQLKeyIdColumn(), SQLMaximumValue(), and SQLTestTable().
Int_t TSQLFile::StreamKeysForDirectory | ( | TDirectory * | dir, | |
Bool_t | doupdate, | |||
Long64_t | specialkeyid = -1 , |
|||
TKeySQL ** | specialkey = 0 | |||
) | [protected] |
Definition at line 946 of file TSQLFile.cxx.
References sqlio::atol64(), buf, classname, TString::Data(), dir(), TObject::Error(), FindSQLKey(), TString::Form(), gDebug, sqlio::Ids_FirstKey, TObject::Info(), TKeySQL::IsKeyModified(), sqlio::KeysTable, Long64_t, row, SQLDirIdColumn(), SQLIdentifierQuote(), SQLKeyIdColumn(), SQLQuery(), TKeySQL, and UpdateKeyData().
Referenced by DirReadKeys(), DirWriteKeys(), InitSqlDatabase(), and ReadSpecialObject().
TSQLClassInfo * TSQLFile::FindSQLClassInfo | ( | const char * | clname, | |
Int_t | version | |||
) | [protected] |
Definition at line 1794 of file TSQLFile.cxx.
References fSQLClassInfos, and info.
Referenced by DirWriteHeader(), FindSQLClassInfo(), MakeSelectQuery(), ProduceClassSelectQuery(), ReadSQLClassInfos(), RequestSQLClassInfo(), TBufferSQL2::SqlReadObjectDirect(), and TBufferSQL2::WorkWithClass().
TSQLClassInfo * TSQLFile::FindSQLClassInfo | ( | const TClass * | cl | ) | [protected] |
Definition at line 1811 of file TSQLFile.cxx.
References FindSQLClassInfo(), and TClass::GetClassVersion().
TSQLClassInfo * TSQLFile::RequestSQLClassInfo | ( | const char * | clname, | |
Int_t | version | |||
) | [protected] |
Definition at line 1819 of file TSQLFile.cxx.
References TList::Add(), DefineTableName(), FindSQLClassInfo(), fSQL, fSQLClassInfos, info, kFALSE, kTRUE, and Long64_t.
Referenced by RequestSQLClassInfo(), TSQLStructure::StoreClassInNormalForm(), TSQLStructure::StoreObject(), TSQLStructure::StoreTObject(), and TSQLStructure::StoreTString().
TSQLClassInfo * TSQLFile::RequestSQLClassInfo | ( | const TClass * | cl | ) | [protected] |
Definition at line 1914 of file TSQLFile.cxx.
References TClass::GetClassVersion(), and RequestSQLClassInfo().
Bool_t TSQLFile::CreateClassTable | ( | TSQLClassInfo * | sqlinfo, | |
TObjArray * | colinfos | |||
) | [protected] |
Definition at line 2078 of file TSQLFile.cxx.
References AddIdEntry(), TString::Data(), TObjArray::Delete(), TString::Form(), fTablesType, gDebug, TSQLClassInfo::GetClassId(), TSQLClassInfo::GetClassTableName(), TSQLClassInfo::GetClassVersion(), TSQLClassInfo::GetName(), TSQLClassColumnInfo::GetName(), TSQLClassColumnInfo::GetSQLName(), TSQLClassColumnInfo::GetSQLType(), GetUseIndexes(), TObject::Info(), TSQLClassInfo::IsClassTableExist(), IsMySQL(), IsOracle(), kFALSE, TSQLStructure::kIdColumn, TSQLStructure::kIdTable, kIndexesBasic, kTRUE, TString::Length(), TString::ReplaceAll(), TSQLClassInfo::SetColumns(), SQLIdentifierQuote(), SQLObjectIdColumn(), and SQLQuery().
Referenced by TSQLStructure::StoreClassInNormalForm(), TSQLStructure::StoreTObject(), and TSQLStructure::StoreTString().
Bool_t TSQLFile::CreateRawTable | ( | TSQLClassInfo * | sqlinfo | ) | [protected] |
Definition at line 2167 of file TSQLFile.cxx.
References AddIdEntry(), sqlio::BT_Field, sqlio::BT_Value, TString::Data(), TString::Form(), fTablesType, gDebug, TSQLClassInfo::GetClassId(), TSQLClassInfo::GetClassTableName(), TSQLClassInfo::GetClassVersion(), TSQLClassInfo::GetName(), TSQLClassInfo::GetRawTableName(), GetUseIndexes(), TObject::Info(), IsMySQL(), TSQLClassInfo::IsRawTableExist(), kFALSE, TSQLStructure::kIdRawTable, kIndexesClass, kTRUE, TString::Length(), TString::ReplaceAll(), TSQLClassInfo::SetRawExist(), SQLIdentifierQuote(), SQLIntType(), SQLObjectIdColumn(), SQLQuery(), SQLRawIdColumn(), and SQLSmallTextType().
Referenced by TSqlRawBuffer::AddLine(), and TSqlRegistry::ConvertPoolValues().
Bool_t TSQLFile::ProduceClassSelectQuery | ( | TVirtualStreamerInfo * | info, | |
TSQLClassInfo * | sqlinfo, | |||
TString & | columns, | |||
TString & | tables, | |||
Int_t & | tablecnt | |||
) | [protected] |
Definition at line 1270 of file TSQLFile.cxx.
References buf, xmlio::Class, TString::Data(), TSQLStructure::DefineElementColumnName(), TSQLStructure::DefineElementColumnType(), FindSQLClassInfo(), TString::Form(), TSQLClassInfo::GetClassTableName(), TClass::GetStreamerInfo(), info, TSQLClassInfo::IsClassTableExist(), TSQLStructure::kColObject, TSQLStructure::kColObjectPtr, TSQLStructure::kColParent, TSQLStructure::kColSimple, TSQLStructure::kColSimpleArray, TSQLStructure::kColTString, kFALSE, kTRUE, TString::Length(), n, SQLIdentifierQuote(), SQLObjectIdColumn(), start, sqlio::TObjectBits, sqlio::TObjectProcessId, and sqlio::TObjectUniqueId.
Referenced by MakeSelectQuery().
void TSQLFile::AddIdEntry | ( | Long64_t | tableid, | |
Int_t | subid, | |||
Int_t | type, | |||
const char * | name, | |||
const char * | sqlname, | |||
const char * | info | |||
) | [protected] |
Definition at line 2032 of file TSQLFile.cxx.
References TString::Data(), fIdsTableExists, TString::Form(), fSQL, fTablesType, sqlio::IdsTable, IsMySQL(), TDirectoryFile::IsWritable(), sqlio::IT_FullName, sqlio::IT_Info, sqlio::IT_SQLName, sqlio::IT_SubID, sqlio::IT_TableID, sqlio::IT_Type, kTRUE, TString::Length(), SQLIdentifierQuote(), SQLIntType(), SQLQuery(), SQLSmallTextType(), SQLTestTable(), and SQLValueQuote().
Referenced by CreateClassTable(), and CreateRawTable().
void TSQLFile::ReadSQLClassInfos | ( | ) | [protected] |
Definition at line 1922 of file TSQLFile.cxx.
References TList::Add(), sqlio::atol64(), classname, TString::Data(), fIdsTableExists, FindSQLClassInfo(), TString::Form(), fSQL, fSQLClassInfos, sqlio::IdsTable, info, sqlio::IT_SubID, sqlio::IT_TableID, sqlio::IT_Type, TSQLStructure::kIdColumn, TSQLStructure::kIdRawTable, TSQLStructure::kIdTable, kTRUE, Long64_t, row, TSQLClassInfo::SetRawExist(), TSQLClassInfo::SetRawTableName(), SQLIdentifierQuote(), SQLQuery(), SQLTestTable(), and version.
Referenced by InitSqlDatabase().
TString TSQLFile::DefineTableName | ( | const char * | clname, | |
Int_t | version, | |||
Bool_t | rawtable | |||
) | [protected] |
Definition at line 1851 of file TSQLFile.cxx.
References xmlio::cnt, TObject::Error(), TString::Form(), HasTable(), len, TString::Length(), SQLMaxIdentifierLength(), and suffix.
Referenced by RequestSQLClassInfo().
Bool_t TSQLFile::HasTable | ( | const char * | name | ) | [protected] |
Definition at line 1897 of file TSQLFile.cxx.
References fSQLClassInfos, info, kFALSE, and kTRUE.
Referenced by DefineTableName().
Definition at line 2248 of file TSQLFile.cxx.
References sqlio::LongStrPrefix.
Referenced by TSQLStructure::PerformConversion(), and TSQLStructure::StoreElementInNormalForm().
Definition at line 2257 of file TSQLFile.cxx.
References TString::Append(), sqlio::atol64(), TString::Data(), Long64_t, and sqlio::LongStrPrefix.
Referenced by TBufferSQL2::SqlReadCharStarValue().
Bool_t TSQLFile::VerifyLongStringTable | ( | ) | [protected] |
Definition at line 2219 of file TSQLFile.cxx.
References TString::Data(), TString::Form(), fSQL, fTablesType, kFALSE, kTRUE, TString::Length(), SQLBigTextType(), SQLIdentifierQuote(), SQLIntType(), SQLObjectIdColumn(), SQLQuery(), SQLStrIdColumn(), SQLTestTable(), sqlio::ST_Value, and sqlio::StringsTable.
Referenced by TSqlRegistry::AddLongString().
Definition at line 2293 of file TSQLFile.cxx.
References TString::Data(), TString::Form(), kFALSE, kTRUE, row, SQLIdentifierQuote(), SQLObjectIdColumn(), SQLQuery(), SQLStrIdColumn(), SQLTestTable(), sqlio::ST_Value, sqlio::StringsTable, and value.
Referenced by TBufferSQL2::SqlReadCharStarValue().
Long64_t TSQLFile::VerifyObjectTable | ( | ) | [protected] |
Definition at line 2321 of file TSQLFile.cxx.
References TString::Data(), TString::Form(), fSQL, fTablesType, gDebug, GetUseIndexes(), TObject::Info(), IsMySQL(), kIndexesNone, TString::Length(), Long64_t, sqlio::ObjectsTable, sqlio::ObjectsTableIndex, sqlio::OT_Class, sqlio::OT_Version, SQLIdentifierQuote(), SQLIntType(), SQLKeyIdColumn(), SQLMaximumValue(), SQLObjectIdColumn(), SQLQuery(), SQLSmallTextType(), and SQLTestTable().
Referenced by StoreObjectInTables().
Bool_t TSQLFile::SQLObjectInfo | ( | Long64_t | objid, | |
TString & | clname, | |||
Version_t & | version | |||
) | [protected] |
Definition at line 2366 of file TSQLFile.cxx.
References TString::Data(), TString::Form(), fSQL, kFALSE, sqlio::ObjectsTable, sqlio::OT_Class, sqlio::OT_Version, row, SQLIdentifierQuote(), SQLObjectIdColumn(), and SQLQuery().
Definition at line 2393 of file TSQLFile.cxx.
References TObjArray::Add(), TString::Data(), fLogFile, TString::Form(), fQuerisCounter, fSQL, gDebug, TSQLStatement::GetInt(), TSQLStatement::GetLong64(), TSQLStatement::GetString(), info, TObject::Info(), Long64_t, TSQLStatement::NextResultRow(), sqlio::ObjectsTable, sqlio::OT_Class, sqlio::OT_Version, TSQLStatement::Process(), row, SQLIdentifierQuote(), SQLKeyIdColumn(), SQLObjectIdColumn(), SQLQuery(), SQLStatement(), TSQLStatement::StoreResult(), and version.
Referenced by TBufferSQL2::SqlReadAny().
TSQLResult * TSQLFile::GetNormalClassData | ( | Long64_t | objid, | |
TSQLClassInfo * | sqlinfo | |||
) | [protected] |
Definition at line 2456 of file TSQLFile.cxx.
References TString::Data(), TString::Form(), TSQLClassInfo::GetClassTableName(), TSQLClassInfo::IsClassTableExist(), SQLIdentifierQuote(), SQLObjectIdColumn(), and SQLQuery().
TSQLResult * TSQLFile::GetNormalClassDataAll | ( | Long64_t | minobjid, | |
Long64_t | maxobjid, | |||
TSQLClassInfo * | sqlinfo | |||
) | [protected] |
Definition at line 2470 of file TSQLFile.cxx.
References TString::Data(), TString::Form(), TSQLClassInfo::GetClassTableName(), TSQLClassInfo::IsClassTableExist(), SQLIdentifierQuote(), SQLObjectIdColumn(), and SQLQuery().
Referenced by TBufferSQL2::SqlObjectData().
TSQLResult * TSQLFile::GetBlobClassData | ( | Long64_t | objid, | |
TSQLClassInfo * | sqlinfo | |||
) | [protected] |
Definition at line 2485 of file TSQLFile.cxx.
References sqlio::BT_Field, sqlio::BT_Value, TString::Data(), TString::Form(), TSQLClassInfo::GetRawTableName(), TSQLClassInfo::IsRawTableExist(), SQLIdentifierQuote(), SQLObjectIdColumn(), SQLQuery(), and SQLRawIdColumn().
Referenced by TBufferSQL2::SqlObjectData().
TSQLStatement * TSQLFile::GetBlobClassDataStmt | ( | Long64_t | objid, | |
TSQLClassInfo * | sqlinfo | |||
) | [protected] |
Definition at line 2501 of file TSQLFile.cxx.
References sqlio::BT_Field, sqlio::BT_Value, TString::Data(), fLogFile, TString::Form(), fQuerisCounter, gDebug, TSQLClassInfo::GetRawTableName(), TObject::Info(), TSQLClassInfo::IsRawTableExist(), TSQLStatement::Process(), SQLIdentifierQuote(), SQLObjectIdColumn(), SQLRawIdColumn(), SQLStatement(), and TSQLStatement::StoreResult().
Referenced by TBufferSQL2::SqlObjectData().
Long64_t TSQLFile::StoreObjectInTables | ( | Long64_t | keyid, | |
const void * | obj, | |||
const TClass * | cl | |||
) | [protected] |
Definition at line 2532 of file TSQLFile.cxx.
References buffer, TObjArray::Delete(), TObject::Error(), fSQL, GetUseTransactions(), kFALSE, kTransactionsAuto, kTRUE, TBuffer::kWrite, Long64_t, s, SQLApplyCommands(), SQLCommit(), SQLRollback(), SQLStartTransaction(), and VerifyObjectTable().
Referenced by WriteSpecialObject().
Bool_t TSQLFile::WriteSpecialObject | ( | Long64_t | keyid, | |
TObject * | obj, | |||
const char * | name, | |||
const char * | title | |||
) | [protected] |
Definition at line 863 of file TSQLFile.cxx.
References TDatime::AsSQLString(), DeleteKeyFromDB(), kTRUE, Long64_t, StoreObjectInTables(), TKeySQL, and WriteKeyData().
Referenced by WriteHeader(), and WriteStreamerInfo().
Definition at line 888 of file TSQLFile.cxx.
References buffer, xmlio::Class, TKeySQL::GetDBKeyId(), TKeySQL::GetDBObjId(), TKey::GetTitle(), kFALSE, TBuffer::kRead, TNamed::SetTitle(), and StreamKeysForDirectory().
Referenced by GetStreamerInfoList(), and InitSqlDatabase().
const char * TSQLFile::SQLCompatibleType | ( | Int_t | typ | ) | const [protected] |
Definition at line 2578 of file TSQLFile.cxx.
References fBasicTypes.
Referenced by SQLIntType(), TSQLStructure::StoreElementInNormalForm(), and TSQLStructure::StoreTObject().
const char * TSQLFile::SQLIntType | ( | ) | const [protected] |
Definition at line 2587 of file TSQLFile.cxx.
References TVirtualStreamerInfo::kInt, and SQLCompatibleType().
Referenced by AddIdEntry(), CreateBasicTables(), CreateRawTable(), VerifyLongStringTable(), and VerifyObjectTable().
const char* TSQLFile::SQLSmallTextType | ( | ) | const [inline, protected] |
Definition at line 143 of file TSQLFile.h.
References fOtherTypes.
Referenced by AddIdEntry(), CreateBasicTables(), CreateRawTable(), TSQLStructure::StoreElementInNormalForm(), and VerifyObjectTable().
Int_t TSQLFile::SQLSmallTextTypeLimit | ( | ) | const [inline, protected] |
Definition at line 144 of file TSQLFile.h.
References fOtherTypes.
Referenced by TSqlRegistry::AddRegCmd(), TSqlRegistry::InsertToNormalTableOracle(), TSQLStructure::PerformConversion(), TSQLStructure::StoreElementInNormalForm(), and TSqlRawBuffer::TSqlRawBuffer().
const char* TSQLFile::SQLBigTextType | ( | ) | const [inline, protected] |
Definition at line 145 of file TSQLFile.h.
References fOtherTypes.
Referenced by TSQLStructure::StoreTString(), and VerifyLongStringTable().
const char* TSQLFile::SQLDatetimeType | ( | ) | const [inline, protected] |
Definition at line 146 of file TSQLFile.h.
References fOtherTypes.
Referenced by CreateBasicTables().
const char* TSQLFile::SQLIdentifierQuote | ( | ) | const [inline, protected] |
Definition at line 147 of file TSQLFile.h.
References fOtherTypes.
Referenced by AddIdEntry(), TSqlRawBuffer::AddLine(), TSqlRegistry::AddRegCmd(), TSqlRegistry::ConvertSqlValues(), CreateBasicTables(), CreateClassTable(), CreateRawTable(), DeleteKeyFromDB(), DirWriteHeader(), GetBlobClassData(), GetBlobClassDataStmt(), GetLocking(), GetLongString(), GetNormalClassData(), GetNormalClassDataAll(), IncrementModifyCounter(), TSqlRegistry::InsertToNormalTableOracle(), ProduceClassSelectQuery(), ReadConfigurations(), ReadSQLClassInfos(), SetLocking(), SQLDeleteAllTables(), SQLMaximumValue(), SQLObjectInfo(), SQLObjectsInfo(), StreamKeysForDirectory(), UpdateKeyData(), VerifyLongStringTable(), VerifyObjectTable(), and WriteKeyData().
const char* TSQLFile::SQLDirIdColumn | ( | ) | const [inline, protected] |
Definition at line 148 of file TSQLFile.h.
References fOtherTypes.
Referenced by CreateBasicTables(), and StreamKeysForDirectory().
const char* TSQLFile::SQLKeyIdColumn | ( | ) | const [inline, protected] |
Definition at line 149 of file TSQLFile.h.
References fOtherTypes.
Referenced by CreateBasicTables(), DefineNextKeyId(), DeleteKeyFromDB(), SQLObjectsInfo(), StreamKeysForDirectory(), UpdateKeyData(), and VerifyObjectTable().
const char* TSQLFile::SQLObjectIdColumn | ( | ) | const [inline, protected] |
Definition at line 150 of file TSQLFile.h.
References fOtherTypes.
Referenced by CreateBasicTables(), CreateClassTable(), CreateRawTable(), DeleteKeyFromDB(), DirWriteHeader(), GetBlobClassData(), GetBlobClassDataStmt(), GetLongString(), GetNormalClassData(), GetNormalClassDataAll(), ProduceClassSelectQuery(), SQLObjectInfo(), SQLObjectsInfo(), TSQLStructure::StoreClassInNormalForm(), TSQLStructure::StoreTObject(), TSQLStructure::StoreTString(), VerifyLongStringTable(), and VerifyObjectTable().
const char* TSQLFile::SQLRawIdColumn | ( | ) | const [inline, protected] |
Definition at line 151 of file TSQLFile.h.
References fOtherTypes.
Referenced by CreateRawTable(), GetBlobClassData(), and GetBlobClassDataStmt().
const char* TSQLFile::SQLStrIdColumn | ( | ) | const [inline, protected] |
Definition at line 152 of file TSQLFile.h.
References fOtherTypes.
Referenced by GetLongString(), and VerifyLongStringTable().
const char* TSQLFile::SQLNameSeparator | ( | ) | const [inline, protected] |
Definition at line 153 of file TSQLFile.h.
References fOtherTypes.
Referenced by TSQLStructure::PerformConversion(), and TSQLStructure::TryConvertObjectArray().
const char* TSQLFile::SQLValueQuote | ( | ) | const [inline, protected] |
Definition at line 154 of file TSQLFile.h.
References fOtherTypes.
Referenced by AddIdEntry(), TSqlRegistry::AddLongString(), TSqlRegistry::AddRegCmd(), CreateBasicTables(), DirWriteHeader(), GetLocking(), IncrementModifyCounter(), TSqlRegistry::InsertToNormalTable(), SetLocking(), TSqlRawBuffer::TSqlRawBuffer(), UpdateKeyData(), and WriteKeyData().
const char* TSQLFile::SQLDefaultTableType | ( | ) | const [inline, protected] |
void TSQLFile::operator= | ( | const TSQLFile & | ) | [private] |
Bool_t TSQLFile::GetUseSuffixes | ( | ) | const [inline] |
Definition at line 531 of file TSQLFile.cxx.
References TObject::Error(), fCanChangeConfig, and fUseSuffixes.
Int_t TSQLFile::GetArrayLimit | ( | ) | const [inline] |
void TSQLFile::SetArrayLimit | ( | Int_t | limit = 20 |
) |
Definition at line 543 of file TSQLFile.cxx.
References TObject::Error(), fArrayLimit, and fCanChangeConfig.
Referenced by SkipArrayLimit().
void TSQLFile::SkipArrayLimit | ( | ) | [inline] |
void TSQLFile::SetTablesType | ( | const char * | table_type | ) |
Definition at line 559 of file TSQLFile.cxx.
References TObject::Error(), fCanChangeConfig, and fTablesType.
const char* TSQLFile::GetTablesType | ( | ) | const [inline] |
void TSQLFile::SetUseTransactions | ( | Int_t | mode = kTransactionsAuto |
) |
Int_t TSQLFile::GetUseTransactions | ( | ) | const [inline] |
Definition at line 213 of file TSQLFile.h.
References fUseTransactions.
Referenced by Commit(), Rollback(), StartTransaction(), and StoreObjectInTables().
void TSQLFile::SetUseIndexes | ( | Int_t | use_type = kIndexesBasic |
) |
Definition at line 637 of file TSQLFile.cxx.
References TObject::Error(), fCanChangeConfig, and fUseIndexes.
Int_t TSQLFile::GetUseIndexes | ( | ) | const [inline] |
Definition at line 215 of file TSQLFile.h.
References fUseIndexes.
Referenced by CreateBasicTables(), CreateClassTable(), CreateRawTable(), and VerifyObjectTable().
Int_t TSQLFile::GetQuerisCounter | ( | ) | const [inline] |
Definition at line 1244 of file TSQLFile.cxx.
References FindSQLClassInfo(), TClass::GetStreamerInfo(), and ProduceClassSelectQuery().
Bool_t TSQLFile::StartTransaction | ( | ) |
Definition at line 588 of file TSQLFile.cxx.
References TObject::Error(), GetUseTransactions(), kFALSE, kTransactionsUser, and SQLStartTransaction().
Bool_t TSQLFile::Commit | ( | ) |
Definition at line 609 of file TSQLFile.cxx.
References TObject::Error(), GetUseTransactions(), kFALSE, kTransactionsUser, and SQLCommit().
Bool_t TSQLFile::Rollback | ( | ) |
Definition at line 623 of file TSQLFile.cxx.
References TObject::Error(), GetUseTransactions(), kFALSE, kTransactionsUser, and SQLRollback().
void TSQLFile::StartLogFile | ( | const char * | fname | ) |
void TSQLFile::StopLogFile | ( | ) |
Definition at line 494 of file TSQLFile.cxx.
References fLogFile.
Referenced by StartLogFile(), and ~TSQLFile().
void TSQLFile::Close | ( | Option_t * | option = "" |
) | [virtual] |
Reimplemented from TFile.
Definition at line 667 of file TSQLFile.cxx.
References TList::Add(), TDirectoryFile::cd(), TDirectory::cd(), TProcessID::Clear(), TDirectoryFile::Close(), TString::Contains(), TProcessID::DecrementCount(), TList::Delete(), TFile::fClassIndex, TFile::fProcessIDs, TDirectoryFile::fWritable, gDirectory, TDirectory::GetFile(), TROOT::GetListOfFiles(), TProcessID::GetSessionProcessID(), gFile, gROOT, IsOpen(), TDirectoryFile::IsWritable(), kFALSE, kLockFree, TString::Length(), TCollection::Remove(), SaveToDatabase(), SetLocking(), and TString::ToLower().
Referenced by InitSqlDatabase(), and ~TSQLFile().
TKey * TSQLFile::CreateKey | ( | TDirectory * | mother, | |
const TObject * | obj, | |||
const char * | name, | |||
Int_t | bufsize | |||
) | [virtual] |
TKey * TSQLFile::CreateKey | ( | TDirectory * | mother, | |
const void * | obj, | |||
const TClass * | cl, | |||
const char * | name, | |||
Int_t | bufsize | |||
) | [virtual] |
virtual void TSQLFile::DrawMap | ( | const char * | = "*" , |
|
Option_t * | = "" | |||
) | [inline, virtual] |
virtual void TSQLFile::FillBuffer | ( | char *& | ) | [inline, virtual] |
virtual void TSQLFile::Flush | ( | ) | [inline, virtual] |
virtual Long64_t TSQLFile::GetEND | ( | ) | const [inline, virtual] |
virtual Int_t TSQLFile::GetErrno | ( | ) | const [inline, virtual] |
virtual void TSQLFile::ResetErrno | ( | ) | const [inline, virtual] |
const char * TSQLFile::GetDataBaseName | ( | ) | const |
virtual Int_t TSQLFile::GetNfree | ( | ) | const [inline, virtual] |
virtual Int_t TSQLFile::GetNbytesInfo | ( | ) | const [inline, virtual] |
virtual Int_t TSQLFile::GetNbytesFree | ( | ) | const [inline, virtual] |
virtual Long64_t TSQLFile::GetSeekFree | ( | ) | const [inline, virtual] |
virtual Long64_t TSQLFile::GetSeekInfo | ( | ) | const [inline, virtual] |
virtual Long64_t TSQLFile::GetSize | ( | ) | const [inline, virtual] |
TList * TSQLFile::GetStreamerInfoList | ( | ) | [virtual] |
Reimplemented from TFile.
Definition at line 914 of file TSQLFile.cxx.
References gDebug, sqlio::Ids_StreamerInfos, TObject::Info(), list, and ReadSpecialObject().
Bool_t TSQLFile::IsMySQL | ( | ) | const |
Definition at line 504 of file TSQLFile.cxx.
References TObject::ClassName(), fSQL, and kFALSE.
Referenced by AddIdEntry(), TSqlRegistry::ConvertSqlValues(), CreateBasicTables(), CreateClassTable(), CreateRawTable(), and VerifyObjectTable().
Bool_t TSQLFile::IsOpen | ( | ) | const [virtual] |
Bool_t TSQLFile::IsOracle | ( | ) | const |
Definition at line 512 of file TSQLFile.cxx.
References TObject::ClassName(), fSQL, and kFALSE.
Referenced by TSqlRawBuffer::AddLine(), TSqlRegistry::AddRegCmd(), CreateClassTable(), GetDataBaseName(), TSqlRegistry::InsertToNormalTable(), TSqlRegistry::InsertToNormalTableOracle(), and TSqlRawBuffer::~TSqlRawBuffer().
Bool_t TSQLFile::IsODBC | ( | ) | const |
Definition at line 521 of file TSQLFile.cxx.
References TObject::ClassName(), fSQL, and kFALSE.
Referenced by TSqlRawBuffer::AddLine(), TSqlRegistry::AddRegCmd(), and TSqlRegistry::InsertToNormalTable().
virtual void TSQLFile::MakeProject | ( | const char * | , | |
const char * | = "*" , |
|||
Option_t * | = "new" | |||
) | [inline, virtual] |
virtual void TSQLFile::Map | ( | ) | [inline, virtual] |
virtual void TSQLFile::Paint | ( | Option_t * | = "" |
) | [inline, virtual] |
virtual void TSQLFile::Print | ( | Option_t * | = "" |
) | const [inline, virtual] |
virtual void TSQLFile::ReadFree | ( | ) | [inline, virtual] |
virtual Int_t TSQLFile::Recover | ( | ) | [inline, virtual] |
Reimplemented from TFile.
Definition at line 759 of file TSQLFile.cxx.
References TDirectoryFile::cd(), TString::Data(), TObject::Error(), TFile::fOption, IsOpen(), TDirectoryFile::IsWritable(), IsWriteAccess(), kFALSE, kLockBusy, kLockFree, kTRUE, SaveToDatabase(), SetLocking(), TDirectoryFile::SetWritable(), and TString::ToUpper().
virtual void TSQLFile::Seek | ( | Long64_t | , | |
ERelativeTo | = kBeg | |||
) | [inline, virtual] |
virtual void TSQLFile::SetEND | ( | Long64_t | ) | [inline, virtual] |
virtual Int_t TSQLFile::Sizeof | ( | ) | const [inline, virtual] |
virtual void TSQLFile::WriteFree | ( | ) | [inline, virtual] |
void TSQLFile::WriteHeader | ( | ) | [virtual] |
Reimplemented from TFile.
Definition at line 821 of file TSQLFile.cxx.
References TNamed::GetName(), TNamed::GetTitle(), sqlio::Ids_TSQLFile, and WriteSpecialObject().
Referenced by SaveToDatabase().
void TSQLFile::WriteStreamerInfo | ( | ) | [virtual] |
Reimplemented from TFile.
Definition at line 829 of file TSQLFile.cxx.
References TArrayC::fArray, TFile::fClassIndex, gDebug, TROOT::GetListOfStreamerInfo(), gROOT, sqlio::Ids_StreamerInfos, info, TObject::Info(), IsTablesExists(), list, and WriteSpecialObject().
Referenced by SaveToDatabase().
virtual Long64_t TSQLFile::DirCreateEntry | ( | TDirectory * | ) | [protected, virtual] |
Reimplemented from TFile.
virtual Int_t TSQLFile::DirReadKeys | ( | TDirectory * | ) | [protected, virtual] |
Reimplemented from TFile.
virtual void TSQLFile::DirWriteKeys | ( | TDirectory * | ) | [protected, virtual] |
Reimplemented from TFile.
virtual void TSQLFile::DirWriteHeader | ( | TDirectory * | ) | [protected, virtual] |
Reimplemented from TFile.
void TSQLFile::SaveToDatabase | ( | ) | [protected] |
Bool_t TSQLFile::ReadConfigurations | ( | ) | [protected] |
Bool_t TSQLFile::IsTablesExists | ( | ) | [protected] |
void TSQLFile::InitSqlDatabase | ( | Bool_t | create | ) | [protected] |
void TSQLFile::CreateBasicTables | ( | ) | [protected] |
void TSQLFile::IncrementModifyCounter | ( | ) | [protected] |
void TSQLFile::SetLocking | ( | Int_t | mode | ) | [protected] |
Int_t TSQLFile::GetLocking | ( | ) | [protected] |
Bool_t TSQLFile::IsWriteAccess | ( | ) | [protected] |
Bool_t TSQLFile::IsReadAccess | ( | ) | [protected] |
TSQLResult* TSQLFile::SQLQuery | ( | const char * | cmd, | |
Int_t | flag = 0 , |
|||
Bool_t * | res = 0 | |||
) | [protected] |
Bool_t TSQLFile::SQLCanStatement | ( | ) | [protected] |
TSQLStatement* TSQLFile::SQLStatement | ( | const char * | cmd, | |
Int_t | bufsize = 1000 | |||
) | [protected] |
void TSQLFile::SQLDeleteStatement | ( | TSQLStatement * | stmt | ) | [protected] |
Bool_t TSQLFile::SQLTestTable | ( | const char * | tablename | ) | [protected] |
Long64_t TSQLFile::SQLMaximumValue | ( | const char * | tablename, | |
const char * | columnname | |||
) | [protected] |
void TSQLFile::SQLDeleteAllTables | ( | ) | [protected] |
Bool_t TSQLFile::SQLStartTransaction | ( | ) | [protected] |
Bool_t TSQLFile::SQLCommit | ( | ) | [protected] |
Bool_t TSQLFile::SQLRollback | ( | ) | [protected] |
Int_t TSQLFile::SQLMaxIdentifierLength | ( | ) | [protected] |
void TSQLFile::DeleteKeyFromDB | ( | Long64_t | keyid | ) | [protected] |
TKeySQL* TSQLFile::FindSQLKey | ( | TDirectory * | dir, | |
Long64_t | keyid | |||
) | [protected] |
Long64_t TSQLFile::DefineNextKeyId | ( | ) | [protected] |
Int_t TSQLFile::StreamKeysForDirectory | ( | TDirectory * | dir, | |
Bool_t | doupdate, | |||
Long64_t | specialkeyid = -1 , |
|||
TKeySQL ** | specialkey = 0 | |||
) | [protected] |
TSQLClassInfo* TSQLFile::FindSQLClassInfo | ( | const char * | clname, | |
Int_t | version | |||
) | [protected] |
TSQLClassInfo* TSQLFile::FindSQLClassInfo | ( | const TClass * | cl | ) | [protected] |
TSQLClassInfo* TSQLFile::RequestSQLClassInfo | ( | const char * | clname, | |
Int_t | version | |||
) | [protected] |
TSQLClassInfo* TSQLFile::RequestSQLClassInfo | ( | const TClass * | cl | ) | [protected] |
Bool_t TSQLFile::CreateClassTable | ( | TSQLClassInfo * | sqlinfo, | |
TObjArray * | colinfos | |||
) | [protected] |
Bool_t TSQLFile::CreateRawTable | ( | TSQLClassInfo * | sqlinfo | ) | [protected] |
Bool_t TSQLFile::ProduceClassSelectQuery | ( | TVirtualStreamerInfo * | info, | |
TSQLClassInfo * | sqlinfo, | |||
TString & | columns, | |||
TString & | tables, | |||
Int_t & | tablecnt | |||
) | [protected] |
void TSQLFile::AddIdEntry | ( | Long64_t | tableid, | |
Int_t | subid, | |||
Int_t | type, | |||
const char * | name, | |||
const char * | sqlname, | |||
const char * | info | |||
) | [protected] |
void TSQLFile::ReadSQLClassInfos | ( | ) | [protected] |
TString TSQLFile::DefineTableName | ( | const char * | clname, | |
Int_t | version, | |||
Bool_t | rawtable | |||
) | [protected] |
Bool_t TSQLFile::HasTable | ( | const char * | name | ) | [protected] |
Bool_t TSQLFile::VerifyLongStringTable | ( | ) | [protected] |
Long64_t TSQLFile::VerifyObjectTable | ( | ) | [protected] |
Bool_t TSQLFile::SQLObjectInfo | ( | Long64_t | objid, | |
TString & | clname, | |||
Version_t & | version | |||
) | [protected] |
TSQLResult* TSQLFile::GetNormalClassData | ( | Long64_t | objid, | |
TSQLClassInfo * | sqlinfo | |||
) | [protected] |
TSQLResult* TSQLFile::GetNormalClassDataAll | ( | Long64_t | minobjid, | |
Long64_t | maxobjid, | |||
TSQLClassInfo * | sqlinfo | |||
) | [protected] |
TSQLResult* TSQLFile::GetBlobClassData | ( | Long64_t | objid, | |
TSQLClassInfo * | sqlinfo | |||
) | [protected] |
TSQLStatement* TSQLFile::GetBlobClassDataStmt | ( | Long64_t | objid, | |
TSQLClassInfo * | sqlinfo | |||
) | [protected] |
Long64_t TSQLFile::StoreObjectInTables | ( | Long64_t | keyid, | |
const void * | obj, | |||
const TClass * | cl | |||
) | [protected] |
Bool_t TSQLFile::WriteSpecialObject | ( | Long64_t | keyid, | |
TObject * | obj, | |||
const char * | name, | |||
const char * | title | |||
) | [protected] |
const char* TSQLFile::SQLCompatibleType | ( | Int_t | typ | ) | const [protected] |
const char* TSQLFile::SQLIntType | ( | ) | const [protected] |
const char* TSQLFile::SQLSmallTextType | ( | ) | const [inline, protected] |
Int_t TSQLFile::SQLSmallTextTypeLimit | ( | ) | const [inline, protected] |
const char* TSQLFile::SQLBigTextType | ( | ) | const [inline, protected] |
const char* TSQLFile::SQLDatetimeType | ( | ) | const [inline, protected] |
const char* TSQLFile::SQLIdentifierQuote | ( | ) | const [inline, protected] |
const char* TSQLFile::SQLDirIdColumn | ( | ) | const [inline, protected] |
const char* TSQLFile::SQLKeyIdColumn | ( | ) | const [inline, protected] |
const char* TSQLFile::SQLObjectIdColumn | ( | ) | const [inline, protected] |
const char* TSQLFile::SQLRawIdColumn | ( | ) | const [inline, protected] |
const char* TSQLFile::SQLStrIdColumn | ( | ) | const [inline, protected] |
const char* TSQLFile::SQLNameSeparator | ( | ) | const [inline, protected] |
const char* TSQLFile::SQLValueQuote | ( | ) | const [inline, protected] |
const char* TSQLFile::SQLDefaultTableType | ( | ) | const [inline, protected] |
void TSQLFile::operator= | ( | const TSQLFile & | ) | [private] |
count numbers of active statements
Bool_t TSQLFile::GetUseSuffixes | ( | ) | const [inline] |
Int_t TSQLFile::GetArrayLimit | ( | ) | const [inline] |
void TSQLFile::SetArrayLimit | ( | Int_t | limit = 20 |
) |
void TSQLFile::SkipArrayLimit | ( | ) | [inline] |
void TSQLFile::SetTablesType | ( | const char * | table_type | ) |
const char* TSQLFile::GetTablesType | ( | ) | const [inline] |
void TSQLFile::SetUseTransactions | ( | Int_t | mode = kTransactionsAuto |
) |
Int_t TSQLFile::GetUseTransactions | ( | ) | const [inline] |
void TSQLFile::SetUseIndexes | ( | Int_t | use_type = kIndexesBasic |
) |
Int_t TSQLFile::GetUseIndexes | ( | ) | const [inline] |
Int_t TSQLFile::GetQuerisCounter | ( | ) | const [inline] |
Bool_t TSQLFile::StartTransaction | ( | ) |
Bool_t TSQLFile::Commit | ( | ) |
Bool_t TSQLFile::Rollback | ( | ) |
void TSQLFile::StartLogFile | ( | const char * | fname | ) |
void TSQLFile::StopLogFile | ( | ) |
virtual TKey* TSQLFile::CreateKey | ( | TDirectory * | mother, | |
const TObject * | obj, | |||
const char * | name, | |||
Int_t | bufsize | |||
) | [virtual] |
Reimplemented from TFile.
virtual TKey* TSQLFile::CreateKey | ( | TDirectory * | mother, | |
const void * | obj, | |||
const TClass * | cl, | |||
const char * | name, | |||
Int_t | bufsize | |||
) | [virtual] |
Reimplemented from TFile.
virtual void TSQLFile::DrawMap | ( | const char * | = "*" , |
|
Option_t * | = "" | |||
) | [inline, virtual] |
virtual void TSQLFile::FillBuffer | ( | char *& | ) | [inline, virtual] |
virtual void TSQLFile::Flush | ( | ) | [inline, virtual] |
virtual Long64_t TSQLFile::GetEND | ( | ) | const [inline, virtual] |
virtual Int_t TSQLFile::GetErrno | ( | ) | const [inline, virtual] |
virtual void TSQLFile::ResetErrno | ( | ) | const [inline, virtual] |
const char* TSQLFile::GetDataBaseName | ( | ) | const |
virtual Int_t TSQLFile::GetNfree | ( | ) | const [inline, virtual] |
virtual Int_t TSQLFile::GetNbytesInfo | ( | ) | const [inline, virtual] |
virtual Int_t TSQLFile::GetNbytesFree | ( | ) | const [inline, virtual] |
virtual Long64_t TSQLFile::GetSeekFree | ( | ) | const [inline, virtual] |
virtual Long64_t TSQLFile::GetSeekInfo | ( | ) | const [inline, virtual] |
virtual Long64_t TSQLFile::GetSize | ( | ) | const [inline, virtual] |
Bool_t TSQLFile::IsMySQL | ( | ) | const |
Bool_t TSQLFile::IsOracle | ( | ) | const |
Bool_t TSQLFile::IsODBC | ( | ) | const |
virtual void TSQLFile::MakeProject | ( | const char * | , | |
const char * | = "*" , |
|||
Option_t * | = "new" | |||
) | [inline, virtual] |
virtual void TSQLFile::Map | ( | ) | [inline, virtual] |
virtual void TSQLFile::Paint | ( | Option_t * | = "" |
) | [inline, virtual] |
virtual void TSQLFile::Print | ( | Option_t * | = "" |
) | const [inline, virtual] |
virtual void TSQLFile::ReadFree | ( | ) | [inline, virtual] |
virtual Int_t TSQLFile::Recover | ( | ) | [inline, virtual] |
virtual void TSQLFile::Seek | ( | Long64_t | , | |
ERelativeTo | = kBeg | |||
) | [inline, virtual] |
virtual void TSQLFile::SetEND | ( | Long64_t | ) | [inline, virtual] |
virtual Int_t TSQLFile::Sizeof | ( | ) | const [inline, virtual] |
virtual void TSQLFile::WriteFree | ( | ) | [inline, virtual] |
virtual void TSQLFile::WriteHeader | ( | ) | [virtual] |
Reimplemented from TFile.
virtual void TSQLFile::WriteStreamerInfo | ( | ) | [virtual] |
Reimplemented from TFile.
TBufferSQL2 [friend] |
Definition at line 42 of file TSQLFile.h.
TKeySQL [friend] |
Definition at line 43 of file TSQLFile.h.
Referenced by CreateKey(), DirCreateEntry(), StreamKeysForDirectory(), and WriteSpecialObject().
TSQLStructure [friend] |
Definition at line 44 of file TSQLFile.h.
TSQLTableData [friend] |
Definition at line 45 of file TSQLFile.h.
TSqlRegistry [friend] |
Definition at line 46 of file TSQLFile.h.
TSqlRawBuffer [friend] |
Definition at line 47 of file TSQLFile.h.
TSqlCmdsBuffer [friend] |
Definition at line 48 of file TSQLFile.h.
TSQLServer* TSQLFile::fSQL [protected] |
Definition at line 157 of file TSQLFile.h.
Referenced by AddIdEntry(), DeleteKeyFromDB(), InitSqlDatabase(), IsMySQL(), IsODBC(), IsOpen(), IsOracle(), ReadSQLClassInfos(), RequestSQLClassInfo(), SaveToDatabase(), SQLApplyCommands(), SQLCanStatement(), SQLCommit(), SQLDeleteAllTables(), SQLMaxIdentifierLength(), SQLMaximumValue(), SQLObjectInfo(), SQLObjectsInfo(), SQLQuery(), SQLRollback(), SQLStartTransaction(), SQLStatement(), SQLTestTable(), StoreObjectInTables(), TSQLFile(), UpdateKeyData(), VerifyLongStringTable(), VerifyObjectTable(), WriteKeyData(), and ~TSQLFile().
TList* TSQLFile::fSQLClassInfos [protected] |
interface to SQL database
Definition at line 159 of file TSQLFile.h.
Referenced by DeleteKeyFromDB(), FindSQLClassInfo(), HasTable(), ReadSQLClassInfos(), RequestSQLClassInfo(), and ~TSQLFile().
Bool_t TSQLFile::fUseSuffixes [protected] |
list of SQL class infos
Definition at line 161 of file TSQLFile.h.
Referenced by CreateBasicTables(), GetUseSuffixes(), ReadConfigurations(), and SetUseSuffixes().
Int_t TSQLFile::fSQLIOversion [protected] |
use suffixes in column names like fValue:Int_t or fObject:pointer
Definition at line 162 of file TSQLFile.h.
Referenced by CreateBasicTables(), and ReadConfigurations().
Int_t TSQLFile::fArrayLimit [protected] |
version of SQL I/O which is stored in configurations
Definition at line 163 of file TSQLFile.h.
Referenced by CreateBasicTables(), GetArrayLimit(), ReadConfigurations(), SetArrayLimit(), and TSQLFile().
Bool_t TSQLFile::fCanChangeConfig [protected] |
limit for array size. when array bigger, its content converted to raw format
Definition at line 164 of file TSQLFile.h.
Referenced by CreateBasicTables(), SetArrayLimit(), SetTablesType(), SetUseIndexes(), SetUseSuffixes(), and TSQLFile().
TString TSQLFile::fTablesType [protected] |
variable indicates can be basic configuration changed or not
Definition at line 165 of file TSQLFile.h.
Referenced by AddIdEntry(), CreateBasicTables(), CreateClassTable(), CreateRawTable(), GetTablesType(), ReadConfigurations(), SetTablesType(), TSQLFile(), VerifyLongStringTable(), and VerifyObjectTable().
Int_t TSQLFile::fUseTransactions [protected] |
type, used in CREATE TABLE statements
Definition at line 166 of file TSQLFile.h.
Referenced by CreateBasicTables(), GetUseTransactions(), ReadConfigurations(), SetUseTransactions(), and TSQLFile().
Int_t TSQLFile::fUseIndexes [protected] |
use transaction statements for writing data into the tables
Definition at line 167 of file TSQLFile.h.
Referenced by CreateBasicTables(), GetUseIndexes(), ReadConfigurations(), SetUseIndexes(), and TSQLFile().
Int_t TSQLFile::fModifyCounter [protected] |
use indexes for tables: 0 - off, 1 - only for basic tables, 2 + normal class tables, 3 - all tables
Definition at line 168 of file TSQLFile.h.
Referenced by CreateBasicTables(), IncrementModifyCounter(), and ReadConfigurations().
Int_t TSQLFile::fQuerisCounter [protected] |
indicates how many changes was done with database tables
Definition at line 169 of file TSQLFile.h.
Referenced by GetBlobClassDataStmt(), GetQuerisCounter(), SQLObjectsInfo(), SQLQuery(), and SQLStatement().
const char** TSQLFile::fBasicTypes [protected] |
how many query was applied
Definition at line 171 of file TSQLFile.h.
Referenced by SQLCompatibleType(), and TSQLFile().
const char** TSQLFile::fOtherTypes [protected] |
pointer on list of basic types specific for currently connected SQL server
Definition at line 172 of file TSQLFile.h.
Referenced by SQLBigTextType(), SQLDatetimeType(), SQLDefaultTableType(), SQLDirIdColumn(), SQLIdentifierQuote(), SQLKeyIdColumn(), SQLNameSeparator(), SQLObjectIdColumn(), SQLRawIdColumn(), SQLSmallTextType(), SQLSmallTextTypeLimit(), SQLStrIdColumn(), SQLValueQuote(), and TSQLFile().
TString TSQLFile::fUserName [protected] |
std::ofstream* TSQLFile::fLogFile [protected] |
user name, used to access objects from database
Definition at line 176 of file TSQLFile.h.
Referenced by GetBlobClassDataStmt(), SQLObjectsInfo(), SQLQuery(), StartLogFile(), and StopLogFile().
Bool_t TSQLFile::fIdsTableExists [protected] |
log file with SQL statements
Definition at line 178 of file TSQLFile.h.
Referenced by AddIdEntry(), and ReadSQLClassInfos().
Int_t TSQLFile::fStmtCounter [protected] |
indicate if IdsTable exists
Definition at line 179 of file TSQLFile.h.
Referenced by SQLDeleteStatement(), and SQLStatement().
TSQLServer* TSQLFile::fSQL [protected] |
Definition at line 157 of file TSQLFile.h.
TList* TSQLFile::fSQLClassInfos [protected] |
const char** TSQLFile::fBasicTypes [protected] |
const char** TSQLFile::fOtherTypes [protected] |
pointer on list of basic types specific for currently connected SQL server
Definition at line 172 of file TSQLFile.h.
std::ofstream* TSQLFile::fLogFile [protected] |