コード例 #1
0
 public override void Set(IPlatformDatabaseConfiguration conf)
 {
     if (conf != null)
     {
         var other = (PlatformDatabaseConfiguration)conf;
         this.AdminPassword             = other.AdminPassword;
         this.AdminTablespace           = other.AdminTablespace;
         this.AdminUser                 = other.AdminUser;
         this.AdvancedConfigurationMode = other.AdvancedConfigurationMode;
         this.AuthenticationMode        = other.AuthenticationMode;
         this.CI_AI                   = other.CI_AI;
         this.DateFunction            = other.DateFunction;
         this.DDLLockTimeout          = other.DDLLockTimeout;
         this.Host                    = other.Host;
         this.IndexTablespace         = other.IndexTablespace;
         this.IntrospectionMethod     = other.IntrospectionMethod;
         this.NamingType              = (NamingMethod)other.NamingType;
         this.NLS_Language            = other.NLS_Language;
         this.NLS_Territory           = other.NLS_Territory;
         this.Port                    = other.Port;
         this.RuntimeAdvancedSettings = other.RuntimeAdvancedSettings;
         this.RuntimePassword         = other.RuntimePassword;
         this.RuntimeTablespace       = other.RuntimeTablespace;
         this.RuntimeUser             = other.RuntimeUser;
         this.ServiceName             = other.ServiceName;
         this.TNSName                 = other.TNSName;
     }
 }
        public PlatformConfigurationManager(IPlatformDatabaseConfiguration uiConfiguration)
            : base(uiConfiguration)
        {
            var config = (PlatformDatabaseConfiguration)uiConfiguration;

            config.SqlEngineEdition = ConfigurationManagerUtils.GetSqlEngineEdition(uiConfiguration);
        }
        public override bool Equals(IPlatformDatabaseConfiguration obj)
        {
            if ((object)this == (object)obj)
            {
                return(true);
            }

            if (obj == null)
            {
                return(false);
            }

            if (GetType() != obj.GetType())
            {
                return(false);
            }

            var other = (PlatformDatabaseConfiguration)obj;

            return(Server == other.Server &&
                   Catalog == other.Catalog &&
                   Unicode == other.Unicode &&
                   ImplementsElevatedPrivilegesOperations == other.ImplementsElevatedPrivilegesOperations &&
                   AuthenticationMode == other.AuthenticationMode &&
                   RuntimeUser == other.RuntimeUser &&
                   RuntimePassword == other.RuntimePassword &&
                   AdminUser == other.AdminUser &&
                   AdminPassword == other.AdminPassword &&
                   LogUser == other.LogUser &&
                   LogPassword == other.LogPassword &&
                   RuntimeAdvancedSettings == other.RuntimeAdvancedSettings &&
                   ServicesAdvancedSettings == other.ServicesAdvancedSettings);
        }
コード例 #4
0
        public SessionConfigurationManager(ISessionDatabaseConfiguration sessionConfiguration, IPlatformDatabaseConfiguration platformConfiguration)
            : base(sessionConfiguration)
        {
            PreProcessedStatements     = new ArrayList();
            this.platformConfiguration = platformConfiguration;

            var config = (SessionDatabaseConfiguration)sessionConfiguration;

            config.SqlEngineEdition = ConfigurationManagerUtils.GetSqlEngineEdition(sessionConfiguration);
        }
コード例 #5
0
        public override void Set(IPlatformDatabaseConfiguration conf)
        {
            if (conf != null)
            {
                var other = (MySQLPlatformDatabaseConfiguration)conf;

                Server                    = other.Server;
                Schema                    = other.Schema;
                AdminUser                 = other.AdminUser;
                AdminPassword             = other.AdminPassword;
                RuntimeUser               = other.LogUser;
                RuntimePassword           = other.LogPassword;
                RuntimeAdvancedSettings   = other.RuntimeAdvancedSettings;
                AdvancedConfigurationMode = other.AdvancedConfigurationMode;
                AuthenticationMode        = other.AuthenticationMode;
            }
        }
コード例 #6
0
        public override bool Equals(IPlatformDatabaseConfiguration obj)
        {
            if (this == obj)
            {
                return(true);
            }

            if (obj == null)
            {
                return(false);
            }

            if (GetType() != obj.GetType())
            {
                return(false);
            }

            var other = (PlatformDatabaseConfiguration)obj;

            return(AdminTablespace == other.AdminTablespace &&
                   RuntimeTablespace == other.RuntimeTablespace &&
                   LogTablespace == other.LogTablespace &&
                   Host == other.Host &&
                   Port == other.Port &&
                   ServiceName == other.ServiceName &&
                   ImplementsElevatedPrivilegesOperations == other.ImplementsElevatedPrivilegesOperations &&
                   AuthenticationMode == other.AuthenticationMode &&
                   RuntimeUser == other.RuntimeUser &&
                   RuntimePassword == other.RuntimePassword &&
                   AdminUser == other.AdminUser &&
                   AdminPassword == other.AdminPassword &&
                   LogUser == other.LogUser &&
                   LogPassword == other.LogPassword &&
                   RuntimeAdvancedSettings == other.RuntimeAdvancedSettings &&
                   ServicesAdvancedSettings == other.ServicesAdvancedSettings &&
                   IntrospectionMethod == other.IntrospectionMethod &&
                   CI_AI == other.CI_AI &&
                   DateFunction == other.DateFunction &&
                   DDLLockTimeout == other.DDLLockTimeout &&
                   NLS_Language == other.NLS_Language &&
                   NLS_Territory == other.NLS_Territory);
        }
コード例 #7
0
        public override void Set(IPlatformDatabaseConfiguration conf)
        {
            if (conf != null)
            {
                var other = (PlatformDatabaseConfiguration)conf;

                Server                           = other.Server;
                Catalog                          = other.Catalog;
                Unicode                          = other.Unicode;
                AuthenticationMode               = other.AuthenticationMode;
                RuntimeUser                      = other.RuntimeUser;
                RuntimePassword                  = other.RuntimePassword;
                AdminUser                        = other.AdminUser;
                AdminPassword                    = other.AdminPassword;
                RuntimeAdvancedSettings          = other.RuntimeAdvancedSettings;
                ElevatedAuthenticationCredential = other.ElevatedAuthenticationCredential;
                SqlEngineEdition                 = other.SqlEngineEdition;
                UsedAuthenticationMode           = other.UsedAuthenticationMode;
                ElevatedUserAuthenticationMode   = other.ElevatedUserAuthenticationMode;
            }
        }
コード例 #8
0
 public abstract void Set(IPlatformDatabaseConfiguration conf);
コード例 #9
0
 public abstract bool Equals(IPlatformDatabaseConfiguration other);
 public TwoUserDatabaseConfigurationManager(ISettableTwoUserDatabaseConfiguration uiConfiguration, IPlatformDatabaseConfiguration systemDatabaseConfig) : base(uiConfiguration)
 {
     this.systemDatabaseServiceName = ((PlatformDatabaseConfiguration)systemDatabaseConfig).AdminUser;
 }
 public BasePlatformConfigurationManager(IPlatformDatabaseConfiguration uiConfiguration)
 {
     this.uiConfiguration = uiConfiguration;
 }
        // TODO jmt: remove the systemDatabaseName parameter after we don't need synonyms anymore.
        public TwoUserDatabaseConfigurationManager(ISettableTwoUserDatabaseConfiguration uiConfiguration, IPlatformDatabaseConfiguration systemDatabaseconfig)
            : base(uiConfiguration)
        {
            extraTokens.Add("[SYSTEM_DB]", ((IDatabaseConfiguration)systemDatabaseconfig).Catalog);

            var config = (TwoUserDatabaseConfiguration)uiConfiguration;

            config.SqlEngineEdition = ConfigurationManagerUtils.GetSqlEngineEdition(uiConfiguration);
        }
コード例 #13
0
 public BasePlatformConfigurationManager(IPlatformDatabaseConfiguration uiConfiguration) : base(uiConfiguration)
 {
 }
 public BusinessDatabaseConfigurationManager(ISettableTwoUserDatabaseConfiguration uiConfiguration, IPlatformDatabaseConfiguration systemDatabaseConfig) : base(uiConfiguration, systemDatabaseConfig)
 {
 }
コード例 #15
0
 public IPlatformConfigurationManager GetPlatformConfigurationManager(IPlatformDatabaseConfiguration uiConfiguration)
 {
     return(new PlatformConfigurationManager(uiConfiguration));
 }
コード例 #16
0
 // TODO jmt: remove the systemDatabaseName parameter after we don't need synonyms anymore.
 public LoggingDatabaseConfigurationManager(ISettableTwoUserDatabaseConfiguration uiConfiguration, IPlatformDatabaseConfiguration systemDatabaseconfig)
     : base(uiConfiguration, systemDatabaseconfig)
 {
 }
コード例 #17
0
 public ITwoUserDatabaseConfigurationManager GetBusinessConfigurationManager(ISettableTwoUserDatabaseConfiguration uiConfiguration, IPlatformDatabaseConfiguration systemDatabaseConfig)
 {
     return(new BusinessDatabaseConfigurationManager(uiConfiguration, systemDatabaseConfig));
 }
コード例 #18
0
 public ISessionConfigurationManager GetSessionConfigurationManager(ISessionDatabaseConfiguration uiConfiguration, IPlatformDatabaseConfiguration platformConfiguration)
 {
     return(new SessionConfigurationManager(uiConfiguration));
 }
コード例 #19
0
 public ITwoUserDatabaseConfigurationManager GetLoggingConfigurationManager(ISettableTwoUserDatabaseConfiguration uiConfiguration, IPlatformDatabaseConfiguration systemDatabaseConfig)
 {
     return(new LoggingDatabaseConfigurationManager(uiConfiguration, systemDatabaseConfig));
 }