home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
komix
/
DATA.Z
/
repdbms.tcl
< prev
next >
Wrap
Text File
|
1997-07-22
|
2KB
|
67 lines
#---------------------------------------------------------------------------
#
# (c) Cadre Technologies Inc. 1996
#
# File: %W%
# Author: edri
# Description: RDBMS attributes.
#---------------------------------------------------------------------------
# SccsId = %W% %G% Copyright 1996 Cadre Technologies Inc.
require infdbms.tcl
require ssadbms.tcl
require oradbms.tcl
require defdbms.tcl
proc RepositoryDBMS::setCurrent {corporate} {
if [$corporate isNil] {
set dbms $defaultDBMS
} else {
set vendor [$corporate databaseVendor]
switch $vendor {
informix { set dbms InformixDBMS }
oracle { set dbms OracleDBMS }
sqlany { set dbms SqlAnyDBMS }
default { set dbms $defaultDBMS }
}
}
global RepositoryDBMS::current
set RepositoryDBMS::current $dbms
}
proc RepositoryDBMS::name {} {
global RepositoryDBMS::current
return [${RepositoryDBMS::current}::name]
}
proc RepositoryDBMS::shortName {} {
global RepositoryDBMS::current
return [${RepositoryDBMS::current}::shortName]
}
proc RepositoryDBMS::hasUser {} {
global RepositoryDBMS::current
return [${RepositoryDBMS::current}::hasUser]
}
proc RepositoryDBMS::hasPassword {} {
global RepositoryDBMS::current
return [${RepositoryDBMS::current}::hasPassword]
}
proc RepositoryDBMS::hasDirectory {} {
global RepositoryDBMS::current
return [${RepositoryDBMS::current}::hasDirectory]
}
proc RepositoryDBMS::hasServer {} {
global RepositoryDBMS::current
return [${RepositoryDBMS::current}::hasServer]
}
proc RepositoryDBMS::hasHost {} {
global RepositoryDBMS::current
return [${RepositoryDBMS::current}::hasHost]
}