sqlIfParams.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 
00008 
00009 #pragma once
00010 
00011 #include "databaseParameters.h"
00012 #include <vlutil/vlString.h>
00013 
00014 //
00015 // class DtSqlIfParameters:
00016 //
00017 // To make most ODBC interface calls, it is necessary to first allocation an SQL
00018 // environment object.  This class allocates an environment, and uses
00019 // DtSqlIfErrorHandler to process any errors.
00020 //
00021 class DT_DLL_VLDB DtSqlDatabaseParameters : public DtDatabaseParameters
00022 {
00023 public:
00024    // Default constructor
00025    DtSqlDatabaseParameters();
00026    // Destructor
00027    virtual ~DtSqlDatabaseParameters();
00028 
00029 private:
00031    DtSqlDatabaseParameters(const DtSqlDatabaseParameters&);
00032    DtSqlDatabaseParameters& operator=(const DtSqlDatabaseParameters&);
00034 public:
00035 
00036    // Set/Get the Driver command
00037    virtual const DtString& driver() const;
00038 
00039    // ! \brief Keywords
00041 
00042    // Set/Get the DSN keyword
00043    virtual const DtString& DSNKeyword() const;
00044 
00045    // Set/Get the Database keyword
00046    virtual const DtString& DBKeyword() const;
00047 
00048    // Set/Get the Server keyword
00049    virtual const DtString& serverKeyword() const;
00050 
00051    // Set/Get the User keyword
00052    virtual const DtString& userKeyword() const;
00053 
00054    // Set/Get the Password keyword
00055    virtual const DtString& passwordKeyword() const;
00056 
00058 
00059    // Set/Get the DSN name
00060    virtual void setDataSourceName( const DtString& cmd );
00061    virtual const DtString& dataSourceName() const;
00062 
00063    // Set/Get the Master DSN name
00064    virtual void setMasterDataSourceName( const DtString& cmd );
00065    virtual const DtString& masterDataSourceName() const;
00066 
00067    // Set/Get the Database name
00068    virtual void setDatabaseName( const DtString& cmd );
00069    virtual const DtString& databaseName() const;
00070 
00071    // Set/Get the "Original" Database name
00072    virtual void setOrigDBName( const DtString& cmd );
00073    virtual const DtString& origDBName() const;
00074 
00075    // Set/Get the Master Database name
00076    virtual void setMasterDatabaseName( const DtString& cmd );
00077    virtual const DtString& masterDatabaseName() const;
00078 
00079    // Set/Get the Server name
00080    virtual void setServerName( const DtString& cmd );
00081    virtual const DtString& serverName() const;
00082 
00083    // Set/Get the User ID
00084    virtual void setUserID( const DtString& cmd );
00085    virtual const DtString& userID() const;
00086 
00087    // Set/Get the Password string
00088    virtual void setPassword( const DtString& cmd );
00089    virtual const DtString& password() const;
00090 
00091    // Set/Get the Other arguments
00092    virtual void setOtherArgs( const DtString& cmd );
00093    virtual const DtString& otherArgs() const;
00094 
00095    // Set/Get the User-defined parameters string
00096    virtual void setUserParametersString( const DtString& cmd );
00097    virtual const DtString& userParametersString() const;
00098 
00099    // Set/Get the Map Datum string
00100    virtual void setMapDatumString( const DtString& cmd );
00101    virtual const DtString& mapDatumString() const;
00102 
00103    static void initValue( const DtString& srcStr, DtString& valStr );
00104 
00105 protected:
00106    virtual void setDriver( const DtString& cmd );
00107    virtual void setDSNKeyword( const DtString& cmd );
00108    virtual void setDBKeyword( const DtString& cmd );
00109    virtual void setServerKeyword( const DtString& cmd );
00110    virtual void setUserKeyword( const DtString& cmd );
00111    virtual void setPasswdKeyword( const DtString& cmd );
00112 
00113    DtString myDriverName;
00114    DtString myDSNKeyword;
00115    DtString myDSNName;
00116    DtString myMasterDSNName;
00117    DtString myDBKeyword;
00118    DtString myDBName;
00119    DtString myOrigDBName;
00120    DtString myMasterDBName;
00121    DtString myServerKeyword;
00122    DtString myServerName;
00123    DtString myUserKeyword;
00124    DtString myUserID;
00125    DtString myPasswdKeyword;
00126    DtString myPasswd;
00127    DtString myOtherArgs;
00128    DtString myUsrParams;
00129    DtString myMapDatum;
00130 };

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)