From: Kevin W. <kev...@us...> - 2004-12-31 21:49:44
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3522 Modified Files: IClassPersister.cs ILoadable.cs Log Message: fixing xml comments and letting ReSharper do reformatting Index: IClassPersister.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister/IClassPersister.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** IClassPersister.cs 2 Sep 2004 15:11:01 -0000 1.7 --- IClassPersister.cs 31 Dec 2004 21:49:35 -0000 1.8 *************** *** 1,11 **** - using System; using System.Reflection; - using NHibernate.Type; using NHibernate.Cache; using NHibernate.Engine; using NHibernate.Id; using NHibernate.Metadata; ! namespace NHibernate.Persister { /// <summary> --- 1,10 ---- using System.Reflection; using NHibernate.Cache; using NHibernate.Engine; using NHibernate.Id; using NHibernate.Metadata; + using NHibernate.Type; ! namespace NHibernate.Persister { /// <summary> *************** *** 16,22 **** /// (PersistentClass, SessionFactoryImplementor) /// </remarks> ! public interface IClassPersister { - /// <summary> /// Finish the initialization of this object, once all <c>ClassPersisters</c> have been --- 15,20 ---- /// (PersistentClass, SessionFactoryImplementor) /// </remarks> ! public interface IClassPersister { /// <summary> /// Finish the initialization of this object, once all <c>ClassPersisters</c> have been *************** *** 24,28 **** /// </summary> /// <param name="factory"></param> ! void PostInstantiate(ISessionFactoryImplementor factory); /// <summary> --- 22,26 ---- /// </summary> /// <param name="factory"></param> ! void PostInstantiate( ISessionFactoryImplementor factory ); /// <summary> *************** *** 36,42 **** /// instance are persisted. eg. table names. /// </summary> - /// <param name="instance"></param> /// <returns></returns> ! object[] PropertySpaces { get; } /// <summary> --- 34,39 ---- /// instance are persisted. eg. table names. /// </summary> /// <returns></returns> ! object[ ] PropertySpaces { get; } /// <summary> *************** *** 69,73 **** /// proxy interfaces for all subclasses /// </summary> ! System.Type[] ProxyInterfaces { get; } /// <summary> --- 66,70 ---- /// proxy interfaces for all subclasses /// </summary> ! System.Type[ ] ProxyInterfaces { get; } /// <summary> *************** *** 105,109 **** /// <param name="id"></param> /// <returns></returns> ! bool IsUnsaved(object id); /// <summary> --- 102,106 ---- /// <param name="id"></param> /// <returns></returns> ! bool IsUnsaved( object id ); /// <summary> *************** *** 112,116 **** /// <param name="obj"></param> /// <param name="values"></param> ! void SetPropertyValues(object obj, object[] values); /// <summary> --- 109,113 ---- /// <param name="obj"></param> /// <param name="values"></param> ! void SetPropertyValues( object obj, object[ ] values ); /// <summary> *************** *** 119,123 **** /// <param name="obj"></param> /// <returns></returns> ! object[] GetPropertyValues(object obj); /// <summary> --- 116,120 ---- /// <param name="obj"></param> /// <returns></returns> ! object[ ] GetPropertyValues( object obj ); /// <summary> *************** *** 127,131 **** /// <param name="i"></param> /// <param name="value"></param> ! void SetPropertyValue(object obj, int i, object value); /// <summary> --- 124,128 ---- /// <param name="i"></param> /// <param name="value"></param> ! void SetPropertyValue( object obj, int i, object value ); /// <summary> *************** *** 135,139 **** /// <param name="i"></param> /// <returns></returns> ! object GetPropertyValue(object obj, int i); /// <summary> --- 132,136 ---- /// <param name="i"></param> /// <returns></returns> ! object GetPropertyValue( object obj, int i ); /// <summary> *************** *** 146,150 **** /// <param name="session"></param> /// <returns><c>null</c> or the indices of the dirty properties</returns> ! int[] FindDirty(object[] x, object[] y, object owner, ISessionImplementor session); /// <summary> --- 143,147 ---- /// <param name="session"></param> /// <returns><c>null</c> or the indices of the dirty properties</returns> ! int[ ] FindDirty( object[ ] x, object[ ] y, object owner, ISessionImplementor session ); /// <summary> *************** *** 158,162 **** /// </summary> /// <returns><c>true if there is a Identifier Property or Composite Identifier.</c></returns> ! bool HasIdentifierPropertyOrEmbeddedCompositeIdentifier{get;} /// <summary> --- 155,159 ---- /// </summary> /// <returns><c>true if there is a Identifier Property or Composite Identifier.</c></returns> ! bool HasIdentifierPropertyOrEmbeddedCompositeIdentifier { get; } /// <summary> *************** *** 165,169 **** /// <param name="obj"></param> /// <returns></returns> ! object GetIdentifier(object obj); /// <summary> --- 162,166 ---- /// <param name="obj"></param> /// <returns></returns> ! object GetIdentifier( object obj ); /// <summary> *************** *** 172,176 **** /// <param name="obj">The object to set the Id property on.</param> /// <param name="id">The value to set the Id property to.</param> ! void SetIdentifier(object obj, object id); /// <summary> --- 169,173 ---- /// <param name="obj">The object to set the Id property on.</param> /// <param name="id">The value to set the Id property to.</param> ! void SetIdentifier( object obj, object id ); /// <summary> *************** *** 199,203 **** /// <param name="obj"></param> /// <returns></returns> ! object GetVersion(object obj); /// <summary> --- 196,200 ---- /// <param name="obj"></param> /// <returns></returns> ! object GetVersion( object obj ); /// <summary> *************** *** 206,210 **** /// <param name="id"></param> /// <returns></returns> ! object Instantiate(object id); /// <summary> --- 203,207 ---- /// <param name="id"></param> /// <returns></returns> ! object Instantiate( object id ); /// <summary> *************** *** 221,226 **** /// <param name="session"></param> /// <returns></returns> ! object Load(object id, object optionalObject, LockMode lockMode, ISessionImplementor session); ! /// <summary> /// Do a version check (optional operation) --- 218,223 ---- /// <param name="session"></param> /// <returns></returns> ! object Load( object id, object optionalObject, LockMode lockMode, ISessionImplementor session ); ! /// <summary> /// Do a version check (optional operation) *************** *** 231,236 **** /// <param name="lockMode"></param> /// <param name="session"></param> ! void Lock(object id, object version, object obj, LockMode lockMode, ISessionImplementor session); ! /// <summary> /// Persist an instance --- 228,233 ---- /// <param name="lockMode"></param> /// <param name="session"></param> ! void Lock( object id, object version, object obj, LockMode lockMode, ISessionImplementor session ); ! /// <summary> /// Persist an instance *************** *** 240,244 **** /// <param name="obj"></param> /// <param name="session"></param> ! void Insert(object id, object[] fields, object obj, ISessionImplementor session); /// <summary> --- 237,241 ---- /// <param name="obj"></param> /// <param name="session"></param> ! void Insert( object id, object[ ] fields, object obj, ISessionImplementor session ); /// <summary> *************** *** 249,253 **** /// <param name="session"></param> /// <returns></returns> ! object Insert(object[] fields, object obj, ISessionImplementor session); /// <summary> --- 246,250 ---- /// <param name="session"></param> /// <returns></returns> ! object Insert( object[ ] fields, object obj, ISessionImplementor session ); /// <summary> *************** *** 258,262 **** /// <param name="obj"></param> /// <param name="session"></param> ! void Delete(object id, object version, object obj, ISessionImplementor session); /// <summary> --- 255,259 ---- /// <param name="obj"></param> /// <param name="session"></param> ! void Delete( object id, object version, object obj, ISessionImplementor session ); /// <summary> *************** *** 269,278 **** /// <param name="obj"></param> /// <param name="session"></param> ! void Update(object id, object[] fields, int[] dirtyFields, object oldVersion, object obj, ISessionImplementor session); ! /// <summary> /// Get the Hibernate types of the class properties /// </summary> ! IType[] PropertyTypes { get; } /// <summary> --- 266,275 ---- /// <param name="obj"></param> /// <param name="session"></param> ! void Update( object id, object[ ] fields, int[ ] dirtyFields, object oldVersion, object obj, ISessionImplementor session ); ! /// <summary> /// Get the Hibernate types of the class properties /// </summary> ! IType[ ] PropertyTypes { get; } /// <summary> *************** *** 280,284 **** /// .NET properties (used for XML generation only) /// </summary> ! string[] PropertyNames { get; } /// <summary> --- 277,281 ---- /// .NET properties (used for XML generation only) /// </summary> ! string[ ] PropertyNames { get; } /// <summary> *************** *** 289,293 **** /// This is for formula columns and if the user sets the update attribute on the <property> element. /// </remarks> ! bool[] PropertyUpdateability { get; } /// <summary> --- 286,290 ---- /// This is for formula columns and if the user sets the update attribute on the <property> element. /// </remarks> ! bool[ ] PropertyUpdateability { get; } /// <summary> *************** *** 298,307 **** /// This is for formula columns and if the user sets the insert attribute on the <property> element. /// </remarks> ! bool[] PropertyInsertability { get; } /// <summary> /// Get the cascade styles of the properties (optional operation) /// </summary> ! Cascades.CascadeStyle[] PropertyCascadeStyles { get; } /// <summary> --- 295,304 ---- /// This is for formula columns and if the user sets the insert attribute on the <property> element. /// </remarks> ! bool[ ] PropertyInsertability { get; } /// <summary> /// Get the cascade styles of the properties (optional operation) /// </summary> ! Cascades.CascadeStyle[ ] PropertyCascadeStyles { get; } /// <summary> *************** *** 330,335 **** /// </summary> IClassMetadata ClassMetadata { get; } ! ! } ! } --- 327,332 ---- /// </summary> IClassMetadata ClassMetadata { get; } ! ! } ! } \ No newline at end of file Index: ILoadable.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister/ILoadable.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** ILoadable.cs 16 Aug 2004 05:22:56 -0000 1.7 --- ILoadable.cs 31 Dec 2004 21:49:35 -0000 1.8 *************** *** 1,9 **** - using System; - using NHibernate.Loader; using NHibernate.SqlCommand; using NHibernate.Type; ! namespace NHibernate.Persister { /// <summary> --- 1,7 ---- using NHibernate.Loader; using NHibernate.SqlCommand; using NHibernate.Type; ! namespace NHibernate.Persister { /// <summary> *************** *** 11,15 **** /// operations used only by loaders that inherit <c>OuterJoinLoader</c> /// </summary> ! public interface ILoadable : IClassPersister { /// <summary> --- 9,13 ---- /// operations used only by loaders that inherit <c>OuterJoinLoader</c> /// </summary> ! public interface ILoadable : IClassPersister { /// <summary> *************** *** 22,30 **** /// </summary> string TableName { get; } ! /// <summary> /// The names of columns used to persist the identifier /// </summary> ! string[] IdentifierColumnNames { get; } /// <summary> --- 20,28 ---- /// </summary> string TableName { get; } ! /// <summary> /// The names of columns used to persist the identifier /// </summary> ! string[ ] IdentifierColumnNames { get; } /// <summary> *************** *** 43,47 **** /// <param name="value"></param> /// <returns></returns> ! System.Type GetSubclassForDiscriminatorValue(object value); /// <summary> --- 41,45 ---- /// <param name="value"></param> /// <returns></returns> ! System.Type GetSubclassForDiscriminatorValue( object value ); /// <summary> *************** *** 50,58 **** /// <param name="i"></param> /// <returns></returns> ! string[] GetPropertyColumnNames(int i); - //USED BY OuterJoinLoader + subclasses ! /// <summary> /// How many properties are there, for this class and all subclasses? (optional operation) --- 48,56 ---- /// <param name="i"></param> /// <returns></returns> ! string[ ] GetPropertyColumnNames( int i ); ! //USED BY OuterJoinLoader + subclasses ! /// <summary> /// How many properties are there, for this class and all subclasses? (optional operation) *************** *** 66,70 **** /// <param name="i"></param> /// <returns></returns> ! OuterJoinLoaderType EnableJoinedFetch(int i); /// <summary> --- 64,68 ---- /// <param name="i"></param> /// <returns></returns> ! OuterJoinLoaderType EnableJoinedFetch( int i ); /// <summary> *************** *** 73,77 **** /// <param name="i"></param> /// <returns></returns> ! bool IsDefinedOnSubclass(int i); /// <summary> --- 71,75 ---- /// <param name="i"></param> /// <returns></returns> ! bool IsDefinedOnSubclass( int i ); /// <summary> *************** *** 80,84 **** /// <param name="i"></param> /// <returns></returns> ! IType GetSubclassPropertyType(int i); /// <summary> --- 78,82 ---- /// <param name="i"></param> /// <returns></returns> ! IType GetSubclassPropertyType( int i ); /// <summary> *************** *** 88,92 **** /// <param name="i"></param> /// <returns></returns> ! string GetSubclassPropertyName(int i); /// <summary> --- 86,90 ---- /// <param name="i"></param> /// <returns></returns> ! string GetSubclassPropertyName( int i ); /// <summary> *************** *** 94,98 **** /// (optional operation) /// </summary> ! string[] GetSubclassPropertyColumnNames(int i); /// <summary> --- 92,96 ---- /// (optional operation) /// </summary> ! string[ ] GetSubclassPropertyColumnNames( int i ); /// <summary> *************** *** 101,105 **** /// (optional operation) /// </summary> ! string GetSubclassPropertyTableName(int i); /// <summary> --- 99,103 ---- /// (optional operation) /// </summary> ! string GetSubclassPropertyTableName( int i ); /// <summary> *************** *** 110,115 **** /// <param name="i"></param> /// <returns></returns> ! string[] ToColumns(string name, int i); ! /// <summary> /// Given a query alias and an identifying suffix, render the identifier select fragment --- 108,113 ---- /// <param name="i"></param> /// <returns></returns> ! string[ ] ToColumns( string name, int i ); ! /// <summary> /// Given a query alias and an identifying suffix, render the identifier select fragment *************** *** 118,122 **** /// <param name="suffix"></param> /// <returns></returns> ! SqlString IdentifierSelectFragment(string name, string suffix); /// <summary> --- 116,120 ---- /// <param name="suffix"></param> /// <returns></returns> ! SqlString IdentifierSelectFragment( string name, string suffix ); /// <summary> *************** *** 127,131 **** /// <param name="suffix"></param> /// <returns></returns> ! SqlString PropertySelectFragment(string alias, string suffix); /// <summary> --- 125,129 ---- /// <param name="suffix"></param> /// <returns></returns> ! SqlString PropertySelectFragment( string alias, string suffix ); /// <summary> *************** *** 134,139 **** /// <param name="alias"></param> /// <returns></returns> ! SqlString FromTableFragment(string alias); ! /// <summary> /// Get the where clause part of any joins (optional operation) --- 132,137 ---- /// <param name="alias"></param> /// <returns></returns> ! SqlString FromTableFragment( string alias ); ! /// <summary> /// Get the where clause part of any joins (optional operation) *************** *** 143,147 **** /// <param name="includeSubclasses"></param> /// <returns></returns> ! SqlString WhereJoinFragment(string alias, bool innerJoin, bool includeSubclasses); /// <summary> --- 141,145 ---- /// <param name="includeSubclasses"></param> /// <returns></returns> ! SqlString WhereJoinFragment( string alias, bool innerJoin, bool includeSubclasses ); /// <summary> *************** *** 152,157 **** /// <param name="includeSubclasses"></param> /// <returns></returns> ! SqlString FromJoinFragment(string alias, bool innerJoin, bool includeSubclasses); } ! } --- 150,155 ---- /// <param name="includeSubclasses"></param> /// <returns></returns> ! SqlString FromJoinFragment( string alias, bool innerJoin, bool includeSubclasses ); } ! } \ No newline at end of file |