From: Michael D. <mik...@us...> - 2004-11-04 04:46:33
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31543/NHibernate Modified Files: IQuery.cs Log Message: NH-143: QueryImpl can now guess type correctly when passing an enum into SetParamater(..., value) Index: IQuery.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/IQuery.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** IQuery.cs 4 Oct 2004 21:15:34 -0000 1.9 --- IQuery.cs 4 Nov 2004 04:46:13 -0000 1.10 *************** *** 3,12 **** using NHibernate.Type; ! namespace NHibernate { /// <summary> ! /// An object-oriented representation of a Hibernate query. /// </summary> /// <remarks> ! /// A <c>Query</c> instance is obtained by calling <c>ISession.CreateQuery()</c>. This interface /// exposes some extra functionality beyond that provided by <c>ISession.Iterate()</c> and /// <c>ISession.Find()</c>; --- 3,13 ---- using NHibernate.Type; ! namespace NHibernate ! { /// <summary> ! /// An object-oriented representation of a NHibernate query. /// </summary> /// <remarks> ! /// An <c>IQuery</c> instance is obtained by calling <c>ISession.CreateQuery()</c>. This interface /// exposes some extra functionality beyond that provided by <c>ISession.Iterate()</c> and /// <c>ISession.Find()</c>; *************** *** 15,28 **** /// <c>SetMaxResults()</c>, <c>SetFirstResult</c></item> /// <item>Named query parameters may be used</item> - /// <item>The results may be returned as an instance of <c>ScrollableResults</c></item> /// </list> /// <para> - /// Use of <c>SetFirstResult()</c> requires that the ADO driver implements scrollable record sets - /// </para> - /// <para> /// Named query parameters are tokens of the form <c>:name</c> in the query string. A value is bound ! /// to the <c>integer</c> parameter <c>:foo</c> by calling /// <code> ! /// SetParameter("foo", foo, Hibernate.Int32); /// </code> /// for example. A name may appear multiple times in the query string. --- 16,25 ---- /// <c>SetMaxResults()</c>, <c>SetFirstResult</c></item> /// <item>Named query parameters may be used</item> /// </list> /// <para> /// Named query parameters are tokens of the form <c>:name</c> in the query string. A value is bound ! /// to the <c>Int32</c> parameter <c>:foo</c> by calling /// <code> ! /// SetParameter("foo", foo, NHibernate.Int32); /// </code> /// for example. A name may appear multiple times in the query string. *************** *** 30,35 **** /// <para> /// JDBC-stype <c>?</c> parameters are also supported. To bind a value to a JDBC-style ! /// parameter use a set method that accepts an <c>int</c> positional argument (numbered from ! /// zero, contrary to JDBC). /// </para> /// <para> --- 27,32 ---- /// <para> /// JDBC-stype <c>?</c> parameters are also supported. To bind a value to a JDBC-style ! /// parameter use a set method that accepts an <c>int</c> positional argument - numbered from ! /// zero. /// </para> /// <para> *************** *** 37,41 **** /// </para> /// <para> ! /// Queries are executed by calling <c>List()</c>, <c>Scroll()</c>, or <c>Iterate()</c>. A query /// may be re-executed by subsequent invocations. Its lifespan is, however, bounded by the lifespan /// of the <c>ISession</c> that created it. --- 34,38 ---- /// </para> /// <para> ! /// Queries are executed by calling <c>List()</c> or <c>Iterate()</c>. A query /// may be re-executed by subsequent invocations. Its lifespan is, however, bounded by the lifespan /// of the <c>ISession</c> that created it. *************** *** 45,64 **** /// </para> /// </remarks> ! public interface IQuery { ! ! /// <summary> /// The query string /// </summary> ! string QueryString { ! get; ! } /// <summary> /// The Hibernate types of the query result set. /// </summary> ! IType[] ReturnTypes { ! get; ! } /// <summary> --- 42,56 ---- /// </para> /// </remarks> ! public interface IQuery ! { /// <summary> /// The query string /// </summary> ! string QueryString { get; } /// <summary> /// The Hibernate types of the query result set. /// </summary> ! IType[] ReturnTypes { get; } /// <summary> *************** *** 66,72 **** /// </summary> /// <value>The parameter names, in no particular order</value> ! string[] NamedParameters { ! get; ! } /// <summary> --- 58,62 ---- /// </summary> /// <value>The parameter names, in no particular order</value> ! string[] NamedParameters { get; } /// <summary> *************** *** 81,94 **** /// <summary> - /// Return the query results as <c>ScrollableResults</c>. The scrollability of the returned - /// results depends upon the ADO support for scrollable <c>ResultSet</c> - /// </summary> - /// <remarks> - /// Entities returned as results are initialized on demand. The first SQL query returns - /// identifier only. - /// </remarks> - //IScrollableResults GetScrollableResults(); - - /// <summary> /// Return the query results as a <c>IList</c>. If the query contains multiple results per row, /// the results are returned in an instance of <c>object[]</c>. --- 71,74 ---- |