@@ -488,146 +488,6 @@ public interface ISession : IDisposable
488
488
/// <param name="obj">the instance to be removed </param>
489
489
void Delete ( string entityName , object obj ) ;
490
490
491
- /// <summary>
492
- /// Execute a query
493
- /// </summary>
494
- /// <param name="query">A query expressed in Hibernate's query language</param>
495
- /// <returns>A distinct list of instances</returns>
496
- /// <remarks>See <see cref="IQuery.List()"/> for implications of <c>cache</c> usage.</remarks>
497
- [ Obsolete ( "Use ISession.CreateQuery().List()" ) ]
498
- IList Find ( string query ) ;
499
-
500
- /// <summary>
501
- /// Execute a query, binding a value to a "?" parameter in the query string.
502
- /// </summary>
503
- /// <param name="query">The query string</param>
504
- /// <param name="value">A value to be bound to a "?" placeholder</param>
505
- /// <param name="type">The Hibernate type of the value</param>
506
- /// <returns>A distinct list of instances</returns>
507
- /// <remarks>See <see cref="IQuery.List()"/> for implications of <c>cache</c> usage.</remarks>
508
- [ Obsolete ( "Use ISession.CreateQuery().SetXYZ().List()" ) ]
509
- IList Find ( string query , object value , IType type ) ;
510
-
511
- /// <summary>
512
- /// Execute a query, binding an array of values to a "?" parameters in the query string.
513
- /// </summary>
514
- /// <param name="query">The query string</param>
515
- /// <param name="values">An array of values to be bound to the "?" placeholders</param>
516
- /// <param name="types">An array of Hibernate types of the values</param>
517
- /// <returns>A distinct list of instances</returns>
518
- /// <remarks>See <see cref="IQuery.List()"/> for implications of <c>cache</c> usage.</remarks>
519
- [ Obsolete ( "Use ISession.CreateQuery().SetXYZ().List()" ) ]
520
- IList Find ( string query , object [ ] values , IType [ ] types ) ;
521
-
522
- /// <summary>
523
- /// Execute a query and return the results in an interator.
524
- /// </summary>
525
- /// <remarks>
526
- /// <para>
527
- /// If the query has multiple return values, values will be returned in an array of
528
- /// type <c>object[]</c>.
529
- /// </para>
530
- /// <para>
531
- /// Entities returned as results are initialized on demand. The first SQL query returns
532
- /// identifiers only. So <c>Enumerator()</c> is usually a less efficient way to retrieve
533
- /// object than <c>List()</c>.
534
- /// </para>
535
- /// </remarks>
536
- /// <param name="query">The query string</param>
537
- /// <returns>An enumerator</returns>
538
- [ Obsolete ( "Use ISession.CreateQuery().Enumerable()" ) ]
539
- IEnumerable Enumerable ( string query ) ;
540
-
541
- /// <summary>
542
- /// Execute a query and return the results in an interator,
543
- /// binding a value to a "?" parameter in the query string.
544
- /// </summary>
545
- /// <remarks>
546
- /// <para>
547
- /// If the query has multiple return values, values will be returned in an array of
548
- /// type <c>object[]</c>.
549
- /// </para>
550
- /// <para>
551
- /// Entities returned as results are initialized on demand. The first SQL query returns
552
- /// identifiers only. So <c>Enumerator()</c> is usually a less efficient way to retrieve
553
- /// object than <c>List()</c>.
554
- /// </para>
555
- /// </remarks>
556
- /// <param name="query">The query string</param>
557
- /// <param name="value">A value to be written to a "?" placeholder in the query string</param>
558
- /// <param name="type">The hibernate type of the value</param>
559
- /// <returns>An enumerator</returns>
560
- [ Obsolete ( "Use ISession.CreateQuery().SetXYZ().Enumerable()" ) ]
561
- IEnumerable Enumerable ( string query , object value , IType type ) ;
562
-
563
- /// <summary>
564
- /// Execute a query and return the results in an interator,
565
- /// binding the values to "?"s parameters in the query string.
566
- /// </summary>
567
- /// <remarks>
568
- /// <para>
569
- /// If the query has multiple return values, values will be returned in an array of
570
- /// type <c>object[]</c>.
571
- /// </para>
572
- /// <para>
573
- /// Entities returned as results are initialized on demand. The first SQL query returns
574
- /// identifiers only. So <c>Enumerator()</c> is usually a less efficient way to retrieve
575
- /// object than <c>List()</c>.
576
- /// </para>
577
- /// </remarks>
578
- /// <param name="query">The query string</param>
579
- /// <param name="values">A list of values to be written to "?" placeholders in the query</param>
580
- /// <param name="types">A list of hibernate types of the values</param>
581
- /// <returns>An enumerator</returns>
582
- [ Obsolete ( "Use ISession.CreateQuery().SetXYZ().Enumerable()" ) ]
583
- IEnumerable Enumerable ( string query , object [ ] values , IType [ ] types ) ;
584
-
585
- /// <summary>
586
- /// Apply a filter to a persistent collection.
587
- /// </summary>
588
- /// <remarks>
589
- /// A filter is a Hibernate query that may refer to <c>this</c>, the collection element.
590
- /// Filters allow efficient access to very large lazy collections. (Executing the filter
591
- /// does not initialize the collection.)
592
- /// </remarks>
593
- /// <param name="collection">A persistent collection to filter</param>
594
- /// <param name="filter">A filter query string</param>
595
- /// <returns>The resulting collection</returns>
596
- [ Obsolete ( "Use ISession.CreateFilter().List()" ) ]
597
- ICollection Filter ( object collection , string filter ) ;
598
-
599
- /// <summary>
600
- /// Apply a filter to a persistent collection, binding the given parameter to a "?" placeholder
601
- /// </summary>
602
- /// <remarks>
603
- /// A filter is a Hibernate query that may refer to <c>this</c>, the collection element.
604
- /// Filters allow efficient access to very large lazy collections. (Executing the filter
605
- /// does not initialize the collection.)
606
- /// </remarks>
607
- /// <param name="collection">A persistent collection to filter</param>
608
- /// <param name="filter">A filter query string</param>
609
- /// <param name="value">A value to be written to a "?" placeholder in the query</param>
610
- /// <param name="type">The hibernate type of value</param>
611
- /// <returns>A collection</returns>
612
- [ Obsolete ( "Use ISession.CreateFilter().SetXYZ().List()" ) ]
613
- ICollection Filter ( object collection , string filter , object value , IType type ) ;
614
-
615
- /// <summary>
616
- /// Apply a filter to a persistent collection, binding the given parameters to "?" placeholders.
617
- /// </summary>
618
- /// <remarks>
619
- /// A filter is a Hibernate query that may refer to <c>this</c>, the collection element.
620
- /// Filters allow efficient access to very large lazy collections. (Executing the filter
621
- /// does not initialize the collection.)
622
- /// </remarks>
623
- /// <param name="collection">A persistent collection to filter</param>
624
- /// <param name="filter">A filter query string</param>
625
- /// <param name="values">The values to be written to "?" placeholders in the query</param>
626
- /// <param name="types">The hibernate types of the values</param>
627
- /// <returns>A collection</returns>
628
- [ Obsolete ( "Use ISession.CreateFilter().SetXYZ().List()" ) ]
629
- ICollection Filter ( object collection , string filter , object [ ] values , IType [ ] types ) ;
630
-
631
491
/// <summary>
632
492
/// Delete all objects returned by the query.
633
493
/// </summary>
@@ -830,26 +690,6 @@ public interface ISession : IDisposable
830
690
/// </remarks>
831
691
IQuery GetNamedQuery ( string queryName ) ;
832
692
833
- /// <summary>
834
- /// Create a new instance of <c>IQuery</c> for the given SQL string.
835
- /// </summary>
836
- /// <param name="sql">a query expressed in SQL</param>
837
- /// <param name="returnAlias">a table alias that appears inside <c>{}</c> in the SQL string</param>
838
- /// <param name="returnClass">the returned persistent class</param>
839
- /// <returns>An <see cref="IQuery"/> from the SQL string</returns>
840
- [ Obsolete ( "Use CreateSQLQuery().AddEntity()" ) ]
841
- IQuery CreateSQLQuery ( string sql , string returnAlias , System . Type returnClass ) ;
842
-
843
- /// <summary>
844
- /// Create a new instance of <see cref="IQuery" /> for the given SQL string.
845
- /// </summary>
846
- /// <param name="sql">a query expressed in SQL</param>
847
- /// <param name="returnAliases">an array of table aliases that appear inside <c>{}</c> in the SQL string</param>
848
- /// <param name="returnClasses">the returned persistent classes</param>
849
- /// <returns>An <see cref="IQuery"/> from the SQL string</returns>
850
- [ Obsolete ( "Use CreateSQLQuery().AddEntity()" ) ]
851
- IQuery CreateSQLQuery ( string sql , string [ ] returnAliases , System . Type [ ] returnClasses ) ;
852
-
853
693
/// <summary>
854
694
/// Create a new instance of <see cref="ISQLQuery" /> for the given SQL query string.
855
695
/// </summary>
0 commit comments