|
From: <fab...@us...> - 2009-04-29 22:09:11
|
Revision: 4216
http://nhibernate.svn.sourceforge.net/nhibernate/?rev=4216&view=rev
Author: fabiomaulo
Date: 2009-04-29 22:09:01 +0000 (Wed, 29 Apr 2009)
Log Message:
-----------
Starting executable HQL
Modified Paths:
--------------
trunk/nhibernate/src/NHibernate/NHibernate.csproj
Added Paths:
-----------
trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/Exec/
trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/Exec/IStatementExecutor.cs
Added: trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/Exec/IStatementExecutor.cs
===================================================================
--- trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/Exec/IStatementExecutor.cs (rev 0)
+++ trunk/nhibernate/src/NHibernate/Hql/Ast/ANTLR/Exec/IStatementExecutor.cs 2009-04-29 22:09:01 UTC (rev 4216)
@@ -0,0 +1,23 @@
+using NHibernate.Engine;
+using NHibernate.SqlCommand;
+
+namespace NHibernate.Hql.Ast.ANTLR.Exec
+{
+ /// <summary>
+ /// Encapsulates the strategy required to execute various types of update, delete,
+ /// and insert statements issued through HQL.
+ /// </summary>
+ public interface IStatementExecutor
+ {
+ SqlString[] SqlStatements { get; }
+
+ /// <summary>
+ /// Execute the sql managed by this executor using the given parameters.
+ /// </summary>
+ /// <param name="parameters">Essentially bind information for this processing. </param>
+ /// <param name="session">The session originating the request. </param>
+ /// <returns> The number of entities updated/deleted. </returns>
+ /// <exception cref="HibernateException"/>
+ int Execute(QueryParameters parameters, ISessionImplementor session);
+ }
+}
\ No newline at end of file
Modified: trunk/nhibernate/src/NHibernate/NHibernate.csproj
===================================================================
--- trunk/nhibernate/src/NHibernate/NHibernate.csproj 2009-04-29 21:10:10 UTC (rev 4215)
+++ trunk/nhibernate/src/NHibernate/NHibernate.csproj 2009-04-29 22:09:01 UTC (rev 4216)
@@ -480,6 +480,7 @@
<Compile Include="Hql\Ast\ANTLR\CollectionProperties.cs" />
<Compile Include="Hql\Ast\ANTLR\DetailedSemanticException.cs" />
<Compile Include="Hql\Ast\ANTLR\ErrorCounter.cs" />
+ <Compile Include="Hql\Ast\ANTLR\Exec\IStatementExecutor.cs" />
<Compile Include="Hql\Ast\ANTLR\Generated\HqlLexer.cs" />
<Compile Include="Hql\Ast\ANTLR\Generated\HqlParser.cs" />
<Compile Include="Hql\Ast\ANTLR\Generated\HqlSqlWalker.cs" />
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|