From: Michael D. <mik...@us...> - 2004-09-13 04:47:54
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Engine In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22676/NHibernate/Engine Modified Files: ISessionFactoryImplementor.cs Log Message: Fixed up interface to GetPersister(string) so it behaives just like h2.0.3 - added an overload to allows the caller to control wether or not throw an exception and instead return null Index: ISessionFactoryImplementor.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Engine/ISessionFactoryImplementor.cs,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** ISessionFactoryImplementor.cs 31 Aug 2004 13:14:24 -0000 1.8 --- ISessionFactoryImplementor.cs 13 Sep 2004 04:47:45 -0000 1.9 *************** *** 37,45 **** /// Get the persister for the named class /// </summary> ! /// <param name="className"></param> ! /// <returns></returns> IClassPersister GetPersister(string className); /// <summary> /// Get the persister object for a collection role /// </summary> --- 37,55 ---- /// Get the persister for the named class /// </summary> ! /// <param name="className">The name of the class that is persisted.</param> ! /// <returns>The <see cref="IClassPersister"/> for the class.</returns> ! /// <exception cref="MappingException">If no <see cref="IClassPersister"/> can be found.</exception> IClassPersister GetPersister(string className); /// <summary> + /// Get the persister for the named class + /// </summary> + /// <param name="className">The name of the class that is persisted.</param> + /// <param name="throwException"><c>true</c> if the exception should be thrown if no <see cref="IClassPersister"/> is found.</param> + /// <returns>The <see cref="IClassPersister"/> for the class.</returns> + /// <exception cref="MappingException">If no <see cref="IClassPersister"/> can be found and throwException is <c>true</c>.</exception> + IClassPersister GetPersister(string className, bool throwException); + + /// <summary> /// Get the persister object for a collection role /// </summary> |