|
From: <fab...@us...> - 2009-06-16 14:25:55
|
Revision: 4486
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4486&view=rev
Author: fabiomaulo
Date: 2009-06-16 14:25:52 +0000 (Tue, 16 Jun 2009)
Log Message:
-----------
Minor refactoring
Modified Paths:
--------------
trunk/nhibernate/src/NHibernate/Action/BulkOperationCleanupAction.cs
trunk/nhibernate/src/NHibernate/Action/CollectionAction.cs
trunk/nhibernate/src/NHibernate/Action/EntityAction.cs
trunk/nhibernate/src/NHibernate/Action/IExecutable.cs
trunk/nhibernate/src/NHibernate/Engine/ActionQueue.cs
Modified: trunk/nhibernate/src/NHibernate/Action/BulkOperationCleanupAction.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Action/BulkOperationCleanupAction.cs 2009-06-16 05:35:24 UTC (rev 4485)
+++ trunk/nhibernate/src/NHibernate/Action/BulkOperationCleanupAction.cs 2009-06-16 14:25:52 UTC (rev 4486)
@@ -97,7 +97,7 @@
#region IExecutable Members
- public object[] PropertySpaces
+ public string[] PropertySpaces
{
get { return spaces.ToArray(); }
}
Modified: trunk/nhibernate/src/NHibernate/Action/CollectionAction.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Action/CollectionAction.cs 2009-06-16 05:35:24 UTC (rev 4485)
+++ trunk/nhibernate/src/NHibernate/Action/CollectionAction.cs 2009-06-16 14:25:52 UTC (rev 4486)
@@ -79,7 +79,7 @@
/// <summary>
/// What spaces (tables) are affected by this action?
/// </summary>
- public object[] PropertySpaces
+ public string[] PropertySpaces
{
get { return Persister.CollectionSpaces; }
}
Modified: trunk/nhibernate/src/NHibernate/Action/EntityAction.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Action/EntityAction.cs 2009-06-16 05:35:24 UTC (rev 4485)
+++ trunk/nhibernate/src/NHibernate/Action/EntityAction.cs 2009-06-16 14:25:52 UTC (rev 4486)
@@ -90,7 +90,7 @@
#region IExecutable Members
- public object[] PropertySpaces
+ public string[] PropertySpaces
{
get { return persister.PropertySpaces; }
}
Modified: trunk/nhibernate/src/NHibernate/Action/IExecutable.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Action/IExecutable.cs 2009-06-16 05:35:24 UTC (rev 4485)
+++ trunk/nhibernate/src/NHibernate/Action/IExecutable.cs 2009-06-16 14:25:52 UTC (rev 4486)
@@ -10,7 +10,7 @@
/// <summary>
/// What spaces (tables) are affected by this action?
/// </summary>
- object[] PropertySpaces { get;}
+ string[] PropertySpaces { get;}
/// <summary> Called before executing any actions</summary>
void BeforeExecutions();
Modified: trunk/nhibernate/src/NHibernate/Engine/ActionQueue.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Engine/ActionQueue.cs 2009-06-16 05:35:24 UTC (rev 4485)
+++ trunk/nhibernate/src/NHibernate/Engine/ActionQueue.cs 2009-06-16 14:25:52 UTC (rev 4486)
@@ -228,11 +228,11 @@
get { return (insertions.Count > 0 || deletions.Count > 0); }
}
- private static bool AreTablesToUpdated(IList executables, ISet<string> tablespaces)
+ private static bool AreTablesToUpdated(IList executables, ICollection<string> tablespaces)
{
foreach (IExecutable exec in executables)
{
- object[] spaces = exec.PropertySpaces;
+ var spaces = exec.PropertySpaces;
foreach (string o in spaces)
{
if(tablespaces.Contains(o))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|