예제 #1
0
        /// <summary>
        /// Returns true if OrgApacheSlingDatasourceJNDIDataSourceFactoryProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingDatasourceJNDIDataSourceFactoryProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingDatasourceJNDIDataSourceFactoryProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     DatasourceName == other.DatasourceName ||
                     DatasourceName != null &&
                     DatasourceName.Equals(other.DatasourceName)
                     ) &&
                 (
                     DatasourceSvcPropName == other.DatasourceSvcPropName ||
                     DatasourceSvcPropName != null &&
                     DatasourceSvcPropName.Equals(other.DatasourceSvcPropName)
                 ) &&
                 (
                     DatasourceJndiName == other.DatasourceJndiName ||
                     DatasourceJndiName != null &&
                     DatasourceJndiName.Equals(other.DatasourceJndiName)
                 ) &&
                 (
                     JndiProperties == other.JndiProperties ||
                     JndiProperties != null &&
                     JndiProperties.Equals(other.JndiProperties)
                 ));
        }
예제 #2
0
        /// <summary>
        /// Returns true if OrgApacheSlingDatasourceDataSourceFactoryProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of OrgApacheSlingDatasourceDataSourceFactoryProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(OrgApacheSlingDatasourceDataSourceFactoryProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     DatasourceName == other.DatasourceName ||
                     DatasourceName != null &&
                     DatasourceName.Equals(other.DatasourceName)
                     ) &&
                 (
                     DatasourceSvcPropName == other.DatasourceSvcPropName ||
                     DatasourceSvcPropName != null &&
                     DatasourceSvcPropName.Equals(other.DatasourceSvcPropName)
                 ) &&
                 (
                     DriverClassName == other.DriverClassName ||
                     DriverClassName != null &&
                     DriverClassName.Equals(other.DriverClassName)
                 ) &&
                 (
                     Url == other.Url ||
                     Url != null &&
                     Url.Equals(other.Url)
                 ) &&
                 (
                     Username == other.Username ||
                     Username != null &&
                     Username.Equals(other.Username)
                 ) &&
                 (
                     Password == other.Password ||
                     Password != null &&
                     Password.Equals(other.Password)
                 ) &&
                 (
                     DefaultAutoCommit == other.DefaultAutoCommit ||
                     DefaultAutoCommit != null &&
                     DefaultAutoCommit.Equals(other.DefaultAutoCommit)
                 ) &&
                 (
                     DefaultReadOnly == other.DefaultReadOnly ||
                     DefaultReadOnly != null &&
                     DefaultReadOnly.Equals(other.DefaultReadOnly)
                 ) &&
                 (
                     DefaultTransactionIsolation == other.DefaultTransactionIsolation ||
                     DefaultTransactionIsolation != null &&
                     DefaultTransactionIsolation.Equals(other.DefaultTransactionIsolation)
                 ) &&
                 (
                     DefaultCatalog == other.DefaultCatalog ||
                     DefaultCatalog != null &&
                     DefaultCatalog.Equals(other.DefaultCatalog)
                 ) &&
                 (
                     MaxActive == other.MaxActive ||
                     MaxActive != null &&
                     MaxActive.Equals(other.MaxActive)
                 ) &&
                 (
                     MaxIdle == other.MaxIdle ||
                     MaxIdle != null &&
                     MaxIdle.Equals(other.MaxIdle)
                 ) &&
                 (
                     MinIdle == other.MinIdle ||
                     MinIdle != null &&
                     MinIdle.Equals(other.MinIdle)
                 ) &&
                 (
                     InitialSize == other.InitialSize ||
                     InitialSize != null &&
                     InitialSize.Equals(other.InitialSize)
                 ) &&
                 (
                     MaxWait == other.MaxWait ||
                     MaxWait != null &&
                     MaxWait.Equals(other.MaxWait)
                 ) &&
                 (
                     MaxAge == other.MaxAge ||
                     MaxAge != null &&
                     MaxAge.Equals(other.MaxAge)
                 ) &&
                 (
                     TestOnBorrow == other.TestOnBorrow ||
                     TestOnBorrow != null &&
                     TestOnBorrow.Equals(other.TestOnBorrow)
                 ) &&
                 (
                     TestOnReturn == other.TestOnReturn ||
                     TestOnReturn != null &&
                     TestOnReturn.Equals(other.TestOnReturn)
                 ) &&
                 (
                     TestWhileIdle == other.TestWhileIdle ||
                     TestWhileIdle != null &&
                     TestWhileIdle.Equals(other.TestWhileIdle)
                 ) &&
                 (
                     ValidationQuery == other.ValidationQuery ||
                     ValidationQuery != null &&
                     ValidationQuery.Equals(other.ValidationQuery)
                 ) &&
                 (
                     ValidationQueryTimeout == other.ValidationQueryTimeout ||
                     ValidationQueryTimeout != null &&
                     ValidationQueryTimeout.Equals(other.ValidationQueryTimeout)
                 ) &&
                 (
                     TimeBetweenEvictionRunsMillis == other.TimeBetweenEvictionRunsMillis ||
                     TimeBetweenEvictionRunsMillis != null &&
                     TimeBetweenEvictionRunsMillis.Equals(other.TimeBetweenEvictionRunsMillis)
                 ) &&
                 (
                     MinEvictableIdleTimeMillis == other.MinEvictableIdleTimeMillis ||
                     MinEvictableIdleTimeMillis != null &&
                     MinEvictableIdleTimeMillis.Equals(other.MinEvictableIdleTimeMillis)
                 ) &&
                 (
                     ConnectionProperties == other.ConnectionProperties ||
                     ConnectionProperties != null &&
                     ConnectionProperties.Equals(other.ConnectionProperties)
                 ) &&
                 (
                     InitSQL == other.InitSQL ||
                     InitSQL != null &&
                     InitSQL.Equals(other.InitSQL)
                 ) &&
                 (
                     JdbcInterceptors == other.JdbcInterceptors ||
                     JdbcInterceptors != null &&
                     JdbcInterceptors.Equals(other.JdbcInterceptors)
                 ) &&
                 (
                     ValidationInterval == other.ValidationInterval ||
                     ValidationInterval != null &&
                     ValidationInterval.Equals(other.ValidationInterval)
                 ) &&
                 (
                     LogValidationErrors == other.LogValidationErrors ||
                     LogValidationErrors != null &&
                     LogValidationErrors.Equals(other.LogValidationErrors)
                 ) &&
                 (
                     DatasourceSvcProperties == other.DatasourceSvcProperties ||
                     DatasourceSvcProperties != null &&
                     DatasourceSvcProperties.Equals(other.DatasourceSvcProperties)
                 ));
        }