Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Type In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20103/NHibernate/Type Modified Files: ArrayType.cs BagType.cs IdentifierBagType.cs MapType.cs PersistentCollectionType.cs SetType.cs SortedMapType.cs SortedSetType.cs Log Message: Added documentation to Wrap method. Index: BagType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/BagType.cs,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** BagType.cs 7 Feb 2005 01:34:41 -0000 1.5 --- BagType.cs 14 Feb 2005 03:39:31 -0000 1.6 *************** *** 34,42 **** /// <summary> ! /// /// </summary> ! /// <param name="session"></param> ! /// <param name="collection"></param> ! /// <returns></returns> public override PersistentCollection Wrap( ISessionImplementor session, object collection ) { --- 34,44 ---- /// <summary> ! /// Wraps an <see cref="IList"/> in a <see cref="Bag"/>. /// </summary> ! /// <param name="session">The <see cref="ISessionImplementor"/> for the collection to be a part of.</param> ! /// <param name="collection">The unwrapped <see cref="IList"/>.</param> ! /// <returns> ! /// An <see cref="Bag"/> that wraps the non NHibernate <see cref="IList"/>. ! /// </returns> public override PersistentCollection Wrap( ISessionImplementor session, object collection ) { Index: IdentifierBagType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/IdentifierBagType.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** IdentifierBagType.cs 7 Feb 2005 01:34:41 -0000 1.3 --- IdentifierBagType.cs 14 Feb 2005 03:39:31 -0000 1.4 *************** *** 36,44 **** /// <summary> ! /// /// </summary> ! /// <param name="session"></param> ! /// <param name="collection"></param> ! /// <returns></returns> public override PersistentCollection Wrap( ISessionImplementor session, object collection ) { --- 36,46 ---- /// <summary> ! /// Wraps an <see cref="IList"/> in a <see cref="IdentifierBag"/>. /// </summary> ! /// <param name="session">The <see cref="ISessionImplementor"/> for the collection to be a part of.</param> ! /// <param name="collection">The unwrapped <see cref="IList"/>.</param> ! /// <returns> ! /// An <see cref="IdentifierBag"/> that wraps the non NHibernate <see cref="IList"/>. ! /// </returns> public override PersistentCollection Wrap( ISessionImplementor session, object collection ) { Index: ArrayType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/ArrayType.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ArrayType.cs 7 Feb 2005 01:34:41 -0000 1.8 --- ArrayType.cs 14 Feb 2005 03:39:31 -0000 1.9 *************** *** 78,86 **** /// <summary> ! /// /// </summary> ! /// <param name="session"></param> ! /// <param name="array"></param> ! /// <returns></returns> public override PersistentCollection Wrap( ISessionImplementor session, object array ) { --- 78,88 ---- /// <summary> ! /// Wraps a <see cref="System.Array"/> in a <see cref="ArrayHolder"/>. /// </summary> ! /// <param name="session">The <see cref="ISessionImplementor"/> for the collection to be a part of.</param> ! /// <param name="array">The unwrapped array.</param> ! /// <returns> ! /// An <see cref="ArrayHolder"/> that wraps the non NHibernate <see cref="System.Array"/>. ! /// </returns> public override PersistentCollection Wrap( ISessionImplementor session, object array ) { Index: MapType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/MapType.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** MapType.cs 7 Feb 2005 01:34:41 -0000 1.6 --- MapType.cs 14 Feb 2005 03:39:31 -0000 1.7 *************** *** 44,52 **** /// <summary> ! /// /// </summary> ! /// <param name="session"></param> ! /// <param name="collection"></param> ! /// <returns></returns> public override PersistentCollection Wrap( ISessionImplementor session, object collection ) { --- 44,54 ---- /// <summary> ! /// Wraps an <see cref="IDictionary"/> in a <see cref="Map"/>. /// </summary> ! /// <param name="session">The <see cref="ISessionImplementor"/> for the collection to be a part of.</param> ! /// <param name="collection">The unwrapped <see cref="IDictionary"/>.</param> ! /// <returns> ! /// An <see cref="Map"/> that wraps the non NHibernate <see cref="IDictionary"/>. ! /// </returns> public override PersistentCollection Wrap( ISessionImplementor session, object collection ) { Index: SortedMapType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/SortedMapType.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** SortedMapType.cs 7 Feb 2005 01:34:41 -0000 1.4 --- SortedMapType.cs 14 Feb 2005 03:39:31 -0000 1.5 *************** *** 39,47 **** /// <summary> ! /// /// </summary> ! /// <param name="session"></param> ! /// <param name="collection"></param> ! /// <returns></returns> public override PersistentCollection Wrap( ISessionImplementor session, object collection ) { --- 39,49 ---- /// <summary> ! /// Wraps an <see cref="IDictionary"/> in a <see cref="SortedMap"/>. /// </summary> ! /// <param name="session">The <see cref="ISessionImplementor"/> for the collection to be a part of.</param> ! /// <param name="collection">The unwrapped <see cref="IDictionary"/>.</param> ! /// <returns> ! /// An <see cref="SortedMap"/> that wraps the non NHibernate <see cref="IDictionary"/>. ! /// </returns> public override PersistentCollection Wrap( ISessionImplementor session, object collection ) { Index: SetType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/SetType.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** SetType.cs 7 Feb 2005 01:34:41 -0000 1.6 --- SetType.cs 14 Feb 2005 03:39:31 -0000 1.7 *************** *** 1,7 **** using System.Collections; - using Iesi.Collections; using NHibernate.Collection; using NHibernate.Engine; - using Set = NHibernate.Collection.Set; namespace NHibernate.Type --- 1,5 ---- *************** *** 35,49 **** public override System.Type ReturnedClass { ! get { return typeof( ISet ); } } /// <summary> ! /// <see cref="PersistentCollectionType.Wrap"/> /// </summary> ! /// <param name="collection"></param> ! /// <param name="session"></param> public override PersistentCollection Wrap( ISessionImplementor session, object collection ) { ! return new Set( session, ( ISet ) collection ); } --- 33,50 ---- public override System.Type ReturnedClass { ! get { return typeof( Iesi.Collections.ISet ); } } /// <summary> ! /// Wraps an <see cref="Iesi.Collections.ISet"/> in a <see cref="Set"/>. /// </summary> ! /// <param name="session">The <see cref="ISessionImplementor"/> for the collection to be a part of.</param> ! /// <param name="collection">The unwrapped <see cref="Iesi.Collections.ISet"/>.</param> ! /// <returns> ! /// An <see cref="Set"/> that wraps the non NHibernate <see cref="Iesi.Collections.ISet"/>. ! /// </returns> public override PersistentCollection Wrap( ISessionImplementor session, object collection ) { ! return new Set( session, ( Iesi.Collections.ISet ) collection ); } Index: PersistentCollectionType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/PersistentCollectionType.cs,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** PersistentCollectionType.cs 7 Feb 2005 01:34:41 -0000 1.20 --- PersistentCollectionType.cs 14 Feb 2005 03:39:31 -0000 1.21 *************** *** 229,237 **** /// <summary> ! /// /// </summary> ! /// <param name="session"></param> ! /// <param name="collection"></param> ! /// <returns></returns> public abstract PersistentCollection Wrap( ISessionImplementor session, object collection ); --- 229,240 ---- /// <summary> ! /// Wraps a collection from System.Collections or Iesi.Collections inside one of the ! /// NHibernate collections. /// </summary> ! /// <param name="session">The <see cref="ISessionImplementor"/> for the collection to be a part of.</param> ! /// <param name="collection">The unwrapped collection.</param> ! /// <returns> ! /// A subclass of <see cref="PersistentCollection"/> that wraps the non NHibernate collection. ! /// </returns> public abstract PersistentCollection Wrap( ISessionImplementor session, object collection ); Index: SortedSetType.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/SortedSetType.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** SortedSetType.cs 7 Feb 2005 01:34:41 -0000 1.7 --- SortedSetType.cs 14 Feb 2005 03:39:31 -0000 1.8 *************** *** 1,7 **** using System.Collections; ! using Iesi.Collections; using NHibernate.Collection; using NHibernate.Engine; - using SortedSet = NHibernate.Collection.SortedSet; namespace NHibernate.Type --- 1,6 ---- using System.Collections; ! using NHibernate.Collection; using NHibernate.Engine; namespace NHibernate.Type *************** *** 41,52 **** /// <summary> ! /// /// </summary> ! /// <param name="session"></param> ! /// <param name="collection"></param> ! /// <returns></returns> public override PersistentCollection Wrap( ISessionImplementor session, object collection ) { ! return new SortedSet( session, ( ISet ) collection, comparer ); } --- 40,53 ---- /// <summary> ! /// Wraps an <see cref="Iesi.Collections.ISet"/> in a <see cref="SortedSet"/>. /// </summary> ! /// <param name="session">The <see cref="ISessionImplementor"/> for the collection to be a part of.</param> ! /// <param name="collection">The unwrapped <see cref="Iesi.Collections.ISet"/>.</param> ! /// <returns> ! /// An <see cref="SortedSet"/> that wraps the non NHibernate <see cref="Iesi.Collections.ISet"/>. ! /// </returns> public override PersistentCollection Wrap( ISessionImplementor session, object collection ) { ! return new SortedSet( session, ( Iesi.Collections.ISet ) collection, comparer ); } |