ibatis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gba...@apache.org
Subject svn commit: r703678 [3/3] - in /ibatis/trunk/cs/V3/src: Apache.Ibatis.Common/Contracts/Constraints/ Apache.Ibatis.Common/Data/ Apache.Ibatis.Common/Logging/ Apache.Ibatis.Common/Utilities/ Apache.Ibatis.Common/Utilities/Objects/ Apache.Ibatis.Common/Ut...
Date Sat, 11 Oct 2008 16:07:47 GMT
Modified: ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableSingleTypeHandler.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableSingleTypeHandler.cs?rev=703678&r1=703677&r2=703678&view=diff
==============================================================================
--- ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableSingleTypeHandler.cs
(original)
+++ ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableSingleTypeHandler.cs
Sat Oct 11 09:07:44 2008
@@ -23,14 +23,10 @@
  ********************************************************************************/
 #endregion
 
-#region Using
 using System;
 using System.Data;
 
-using System.Collections.Generic;
-using Apache.Ibatis.DataMapper.Model.ParameterMapping;
 using Apache.Ibatis.DataMapper.Model.ResultMapping;
-#endregion
 
 namespace Apache.Ibatis.DataMapper.TypeHandlers.Nullables
 {
@@ -71,14 +67,11 @@
         {
             int index = dataReader.GetOrdinal(mapping.ColumnName);
 
-            if (dataReader.IsDBNull(index) == true)
+            if (dataReader.IsDBNull(index))
             {
                 return DBNull.Value;
             }
-            else
-            {
-                return new Single?(dataReader.GetFloat(index));
-            }
+            return new Single?(dataReader.GetFloat(index));
         }
 
         /// <summary>
@@ -89,14 +82,11 @@
         /// <returns></returns>
         public override object GetValueByIndex(ResultProperty mapping, IDataReader dataReader)
         {
-            if (dataReader.IsDBNull(mapping.ColumnIndex) == true)
+            if (dataReader.IsDBNull(mapping.ColumnIndex))
             {
                 return DBNull.Value;
             }
-            else
-            {
-                return new Single?(dataReader.GetFloat(mapping.ColumnIndex));
-            }
+            return new Single?(dataReader.GetFloat(mapping.ColumnIndex));
         }
 
         /// <summary>

Modified: ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableTimeSpanTypeHandler.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableTimeSpanTypeHandler.cs?rev=703678&r1=703677&r2=703678&view=diff
==============================================================================
--- ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableTimeSpanTypeHandler.cs
(original)
+++ ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableTimeSpanTypeHandler.cs
Sat Oct 11 09:07:44 2008
@@ -23,11 +23,9 @@
  ********************************************************************************/
 #endregion
 
-#region Using
 using System;
 using System.Data;
 using Apache.Ibatis.DataMapper.Model.ResultMapping;
-#endregion
 
 namespace Apache.Ibatis.DataMapper.TypeHandlers.Nullables
 {
@@ -68,14 +66,11 @@
         {
             int index = dataReader.GetOrdinal(mapping.ColumnName);
 
-            if (dataReader.IsDBNull(index) == true)
+            if (dataReader.IsDBNull(index))
             {
                 return DBNull.Value;
             }
-            else
-            {
-                return new TimeSpan?(new TimeSpan(Convert.ToInt64(dataReader.GetValue(index))));
-            }
+            return new TimeSpan?(new TimeSpan(Convert.ToInt64(dataReader.GetValue(index))));
         }
 
 
@@ -87,14 +82,11 @@
         /// <returns></returns>
         public override object GetValueByIndex(ResultProperty mapping, IDataReader dataReader)
         {
-            if (dataReader.IsDBNull(mapping.ColumnIndex) == true)
+            if (dataReader.IsDBNull(mapping.ColumnIndex))
             {
                 return DBNull.Value;
             }
-            else
-            {
-                return new TimeSpan?(new TimeSpan(Convert.ToInt64(dataReader.GetValue(mapping.ColumnIndex))));
-            }
+            return new TimeSpan?(new TimeSpan(Convert.ToInt64(dataReader.GetValue(mapping.ColumnIndex))));
         }
 
         /// <summary>

Modified: ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableUInt16TypeHandler.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableUInt16TypeHandler.cs?rev=703678&r1=703677&r2=703678&view=diff
==============================================================================
--- ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableUInt16TypeHandler.cs
(original)
+++ ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableUInt16TypeHandler.cs
Sat Oct 11 09:07:44 2008
@@ -23,15 +23,9 @@
  ********************************************************************************/
 #endregion
 
-
-#region Using
 using System;
 using System.Data;
-
-using System.Collections.Generic;
-using Apache.Ibatis.DataMapper.Model.ParameterMapping;
 using Apache.Ibatis.DataMapper.Model.ResultMapping;
-#endregion
 
 namespace Apache.Ibatis.DataMapper.TypeHandlers.Nullables
 {
@@ -73,14 +67,11 @@
         {
             int index = dataReader.GetOrdinal(mapping.ColumnName);
 
-            if (dataReader.IsDBNull(index) == true)
+            if (dataReader.IsDBNull(index))
             {
                 return DBNull.Value;
             }
-            else
-            {
-                return new UInt16?(Convert.ToUInt16(dataReader.GetValue(index)));
-            }
+            return new UInt16?(Convert.ToUInt16(dataReader.GetValue(index)));
         }
 
         /// <summary>
@@ -91,14 +82,11 @@
         /// <returns></returns>
         public override object GetValueByIndex(ResultProperty mapping, IDataReader dataReader)
         {
-            if (dataReader.IsDBNull(mapping.ColumnIndex) == true)
+            if (dataReader.IsDBNull(mapping.ColumnIndex))
             {
                 return DBNull.Value;
             }
-            else
-            {
-                return new UInt16?(Convert.ToUInt16(dataReader.GetValue(mapping.ColumnIndex)));
-            }
+            return new UInt16?(Convert.ToUInt16(dataReader.GetValue(mapping.ColumnIndex)));
         }
 
         /// <summary>

Modified: ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableUInt32TypeHandler.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableUInt32TypeHandler.cs?rev=703678&r1=703677&r2=703678&view=diff
==============================================================================
--- ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableUInt32TypeHandler.cs
(original)
+++ ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableUInt32TypeHandler.cs
Sat Oct 11 09:07:44 2008
@@ -23,15 +23,9 @@
  ********************************************************************************/
 #endregion
 
-
-#region Using
 using System;
 using System.Data;
-
-using System.Collections.Generic;
-using Apache.Ibatis.DataMapper.Model.ParameterMapping;
 using Apache.Ibatis.DataMapper.Model.ResultMapping;
-#endregion
 
 namespace Apache.Ibatis.DataMapper.TypeHandlers.Nullables
 {
@@ -72,14 +66,11 @@
         {
             int index = dataReader.GetOrdinal(mapping.ColumnName);
 
-            if (dataReader.IsDBNull(index) == true)
+            if (dataReader.IsDBNull(index))
             {
                 return DBNull.Value;
             }
-            else
-            {
-                return new UInt32?(Convert.ToUInt32(dataReader.GetValue(index)));
-            }
+            return new UInt32?(Convert.ToUInt32(dataReader.GetValue(index)));
         }
 
         /// <summary>
@@ -90,17 +81,14 @@
         /// <returns></returns>
         public override object GetValueByIndex(ResultProperty mapping, IDataReader dataReader)
         {
-            if (dataReader.IsDBNull(mapping.ColumnIndex) == true)
+            if (dataReader.IsDBNull(mapping.ColumnIndex))
             {
                 return DBNull.Value;
             }
-            else
-            {
-                return new UInt32?(Convert.ToUInt32(dataReader.GetValue(mapping.ColumnIndex)));
-            }
+            return new UInt32?(Convert.ToUInt32(dataReader.GetValue(mapping.ColumnIndex)));
         }
 
-        /// <summary>
+	    /// <summary>
         /// Retrieve ouput database value of an output parameter
         /// </summary>
         /// <param name="outputValue">ouput database value</param>

Modified: ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableUInt64TypeHandler.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableUInt64TypeHandler.cs?rev=703678&r1=703677&r2=703678&view=diff
==============================================================================
--- ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableUInt64TypeHandler.cs
(original)
+++ ibatis/trunk/cs/V3/src/Apache.Ibatis.DataMapper/TypeHandlers/Nullables/NullableUInt64TypeHandler.cs
Sat Oct 11 09:07:44 2008
@@ -23,14 +23,9 @@
  ********************************************************************************/
 #endregion
 
-#region Using
 using System;
 using System.Data;
-
-using System.Collections.Generic;
-using Apache.Ibatis.DataMapper.Model.ParameterMapping;
 using Apache.Ibatis.DataMapper.Model.ResultMapping;
-#endregion
 
 namespace Apache.Ibatis.DataMapper.TypeHandlers.Nullables
 {
@@ -71,14 +66,11 @@
         {
             int index = dataReader.GetOrdinal(mapping.ColumnName);
 
-            if (dataReader.IsDBNull(index) == true)
+            if (dataReader.IsDBNull(index))
             {
                 return DBNull.Value;
             }
-            else
-            {
-                return new UInt64?(Convert.ToUInt64(dataReader.GetValue(index)));
-            }
+            return new UInt64?(Convert.ToUInt64(dataReader.GetValue(index)));
         }
 
         /// <summary>
@@ -89,14 +81,11 @@
         /// <returns></returns>
         public override object GetValueByIndex(ResultProperty mapping, IDataReader dataReader)
         {
-            if (dataReader.IsDBNull(mapping.ColumnIndex) == true)
+            if (dataReader.IsDBNull(mapping.ColumnIndex))
             {
                 return DBNull.Value;
             }
-            else
-            {
-                return new UInt64?(Convert.ToUInt64(dataReader.GetValue(mapping.ColumnIndex)));
-            }
+            return new UInt64?(Convert.ToUInt64(dataReader.GetValue(mapping.ColumnIndex)));
         }
 
         /// <summary>



Mime
View raw message