From: Paul H. <pha...@us...> - 2005-03-06 12:44:59
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21577/nhibernate/src/NHibernate/Persister Modified Files: AbstractEntityPersister.cs IClassPersister.cs Log Message: Refactored SessionImpl as per 2.1 for Save/Update Index: IClassPersister.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister/IClassPersister.cs,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** IClassPersister.cs 1 Mar 2005 16:24:49 -0000 1.9 --- IClassPersister.cs 6 Mar 2005 12:44:45 -0000 1.10 *************** *** 296,299 **** --- 296,304 ---- /// <summary> + /// Get the nullability of the properties of this class + /// </summary> + bool[ ] PropertyNullability { get; } + + /// <summary> /// Gets if the Property is insertable. /// </summary> *************** *** 335,339 **** IClassMetadata ClassMetadata { get; } ! /* Hibernate 2.1 features - not sure if we need for SQL loading /// <summary> --- 340,349 ---- IClassMetadata ClassMetadata { get; } ! /// <summary> ! /// Is batch loading enabled? ! /// </summary> ! bool IsBatchLoadable { get; } ! ! /* TODO : 2.1 features - not sure if we need for SQL loading /// <summary> Index: AbstractEntityPersister.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Persister/AbstractEntityPersister.cs,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** AbstractEntityPersister.cs 1 Mar 2005 16:24:49 -0000 1.33 --- AbstractEntityPersister.cs 6 Mar 2005 12:44:45 -0000 1.34 *************** *** 144,147 **** --- 144,155 ---- } + /// <summary> + /// + /// </summary> + public bool IsBatchLoadable + { + get { return batchSize > 1; } + } + /// <summary></summary> public string Name *************** *** 1137,1140 **** --- 1145,1154 ---- /// <summary></summary> + public virtual bool[ ] PropertyNullability + { + get { return propertyNullability; } + } + + /// <summary></summary> protected virtual bool UseDynamicUpdate { *************** *** 1287,1291 **** uniqueKeyType = factory.GetPersister( clazz ).IdentifierType; } ! // TODO: Change EntityLoader to handle this //uniqueKeyLoaders.Add( propertyNames[ i ], new EntityLoader( this, columns, uniqueKeyType, factory ) ); //uniqueKeyLoaders.Add( propertyNames[ i ], new EntityLoader( this, columns, uniqueKeyType, factory ) ); --- 1301,1305 ---- uniqueKeyType = factory.GetPersister( clazz ).IdentifierType; } ! // TODO: 2.1 - Change EntityLoader to handle this //uniqueKeyLoaders.Add( propertyNames[ i ], new EntityLoader( this, columns, uniqueKeyType, factory ) ); //uniqueKeyLoaders.Add( propertyNames[ i ], new EntityLoader( this, columns, uniqueKeyType, factory ) ); |