4
4
5
5
namespace NHibernate . Type
6
6
{
7
- /// <summary></summary>
7
+ /// <summary>
8
+ /// An <see cref="IType"/> that maps an <see cref="IList"/> collection
9
+ /// using list semantics to the database.
10
+ /// </summary>
8
11
public class ListType : PersistentCollectionType
9
12
{
10
13
/// <summary>
11
- ///
14
+ /// Initializes a new instance of a <see cref="ListType"/> class for
15
+ /// a specific role.
12
16
/// </summary>
13
- /// <param name="role"></param>
14
- public ListType ( string role ) : base ( role )
17
+ /// <param name="role">The role the persistent collection is in.</param>
18
+ public ListType ( string role )
19
+ : base ( role )
15
20
{
16
21
}
17
22
18
23
/// <summary>
19
- ///
24
+ /// Instantiates a new <see cref="IPersistentCollection"/> for the bag.
20
25
/// </summary>
21
- /// <param name="session"></param>
26
+ /// <param name="session">The current <see cref="ISessionImplementor"/> for the bag. </param>
22
27
/// <param name="persister"></param>
23
- /// <returns></returns>
24
- public override IPersistentCollection Instantiate ( ISessionImplementor session , ICollectionPersister persister )
28
+ /// <returns>A new <see cref="NHibernate.Collections.List"/>. </returns>
29
+ public override IPersistentCollection Instantiate ( ISessionImplementor session , ICollectionPersister persister )
25
30
{
26
31
return new List ( session ) ;
27
32
}
@@ -33,12 +38,14 @@ public override System.Type ReturnedClass
33
38
}
34
39
35
40
/// <summary>
36
- ///
41
+ /// Wraps an exist <see cref="IList"/> in a NHibernate <see cref="List"/>.
37
42
/// </summary>
38
- /// <param name="session"></param>
39
- /// <param name="collection"></param>
40
- /// <returns></returns>
41
- public override IPersistentCollection Wrap ( ISessionImplementor session , object collection )
43
+ /// <param name="session">The <see cref="ISessionImplementor"/> for the collection to be a part of.</param>
44
+ /// <param name="collection">The unwrapped <see cref="IList"/>.</param>
45
+ /// <returns>
46
+ /// An <see cref="List"/> that wraps the non NHibernate <see cref="IList"/>.
47
+ /// </returns>
48
+ public override IPersistentCollection Wrap ( ISessionImplementor session , object collection )
42
49
{
43
50
return new List ( session , ( IList ) collection ) ;
44
51
}
0 commit comments