ibatis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gba...@apache.org
Subject svn commit: r501527 - in /ibatis/trunk/cs/mapper: IBatisNet.Common/Utilities/Objects/Members/GetAccessorFactory.cs IBatisNet.Common/Utilities/Objects/Members/SetAccessorFactory.cs IBatisNet.DataMapper/TypeHandlers/TypeHandlerFactory.cs
Date Tue, 30 Jan 2007 19:32:12 GMT
Author: gbayon
Date: Tue Jan 30 11:32:11 2007
New Revision: 501527

URL: http://svn.apache.org/viewvc?view=rev&rev=501527
Log:
- Cosmetic change

Modified:
    ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/Members/GetAccessorFactory.cs
    ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/Members/SetAccessorFactory.cs
    ibatis/trunk/cs/mapper/IBatisNet.DataMapper/TypeHandlers/TypeHandlerFactory.cs

Modified: ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/Members/GetAccessorFactory.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/Members/GetAccessorFactory.cs?view=diff&rev=501527&r1=501526&r2=501527
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/Members/GetAccessorFactory.cs
(original)
+++ ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/Members/GetAccessorFactory.cs
Tue Jan 30 11:32:11 2007
@@ -29,6 +29,7 @@
 using System.Reflection;
 using System.Reflection.Emit;
 using System.Runtime.CompilerServices;
+using System.Text;
 using IBatisNet.Common.Exceptions;
 
 namespace IBatisNet.Common.Utilities.Objects.Members
@@ -241,7 +242,7 @@
         [MethodImpl(MethodImplOptions.Synchronized)]
         public IGetAccessor CreateGetAccessor(Type targetType, string name)
         {
-            string key = targetType.FullName + "." + name;
+            string key = new StringBuilder(targetType.FullName).Append(".").Append(name).ToString();
 
             if (_cachedIGetAccessor.Contains(key))
             {

Modified: ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/Members/SetAccessorFactory.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/Members/SetAccessorFactory.cs?view=diff&rev=501527&r1=501526&r2=501527
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/Members/SetAccessorFactory.cs
(original)
+++ ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/Members/SetAccessorFactory.cs
Tue Jan 30 11:32:11 2007
@@ -29,6 +29,7 @@
 using System.Reflection;
 using System.Reflection.Emit;
 using System.Runtime.CompilerServices;
+using System.Text;
 using IBatisNet.Common.Exceptions;
 
 namespace IBatisNet.Common.Utilities.Objects.Members
@@ -240,7 +241,7 @@
         [MethodImpl(MethodImplOptions.Synchronized)]
         public ISetAccessor CreateSetAccessor(Type targetType, string name)
         {
-            string key = targetType.FullName + "." + name;
+            string key = new StringBuilder(targetType.FullName).Append(".").Append(name).ToString();
 
             if (_cachedISetAccessor.Contains(key))
             {

Modified: ibatis/trunk/cs/mapper/IBatisNet.DataMapper/TypeHandlers/TypeHandlerFactory.cs
URL: http://svn.apache.org/viewvc/ibatis/trunk/cs/mapper/IBatisNet.DataMapper/TypeHandlers/TypeHandlerFactory.cs?view=diff&rev=501527&r1=501526&r2=501527
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.DataMapper/TypeHandlers/TypeHandlerFactory.cs (original)
+++ ibatis/trunk/cs/mapper/IBatisNet.DataMapper/TypeHandlers/TypeHandlerFactory.cs Tue Jan
30 11:32:11 2007
@@ -224,7 +224,7 @@
 		/// <returns>the handler</returns>
 		private ITypeHandler GetPrivateTypeHandler(Type type, string dbType) 
 		{
-			IDictionary dbTypeHandlerMap = (HybridDictionary) _typeHandlerMap[ type ];
+            IDictionary dbTypeHandlerMap = (IDictionary)_typeHandlerMap[type];
 			ITypeHandler handler = null;
 
 			if (dbTypeHandlerMap != null) 



Mime
View raw message