From: Michael D. <mik...@us...> - 2004-04-26 03:45:18
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Engine In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1793/NHibernate/Engine Modified Files: ISessionImplementor.cs Log Message: Fixes for the problem of a Component containing a Collection causing multi data readers to be open. Fixed minor java-.net port bug with getting a range from a collection. Index: ISessionImplementor.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Engine/ISessionImplementor.cs,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** ISessionImplementor.cs 28 Mar 2004 06:02:55 -0000 1.17 --- ISessionImplementor.cs 26 Apr 2004 03:45:08 -0000 1.18 *************** *** 354,357 **** --- 354,382 ---- ICollection GetOrphans(PersistentCollection coll); + + /// <summary> + /// Adds a PersistentCollection to the Session that a Component needs to Resolve. + /// </summary> + /// <param name="id">The Id of the Entity that contains the Component.</param> + /// <param name="role">The role that Identifies the PersistentCollection.</param> + /// <param name="collection">The PersistentCollection to add to the Session.</param> + void AddUnresolvedComponentCollection(object id, string role, PersistentCollection collection); + + /// <summary> + /// Returns the PersistentCollection from the Session that a Component needs to Resolve. + /// </summary> + /// <param name="id">The Id of the Entity that contains the Component.</param> + /// <param name="role">The role that Identifies the PersistentCollection.</param> + /// <returns>The PersistentCollection that has not been resolved.</returns> + PersistentCollection GetUnresolvedComponentCollection(object id, string role); + + /// <summary> + /// Removes the PersistentCollection from the Session because the Component has + /// Resolved the Identifier for it. + /// </summary> + /// <param name="id">The Id of the Entity that contains the Component.</param> + /// <param name="role">The role that Identifiers the PersistentCollection.</param> + void RemoveUnresolvedComponentCollection(object id, string role); + } } |