From: Michael D. <mik...@us...> - 2004-07-12 01:31:18
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8238/Impl Modified Files: SessionFactoryImpl.cs Log Message: Changed method name in PropertiesHelper from GetInt() to GetInt32() Index: SessionFactoryImpl.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Impl/SessionFactoryImpl.cs,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** SessionFactoryImpl.cs 18 Jun 2004 14:14:29 -0000 1.20 --- SessionFactoryImpl.cs 12 Jul 2004 01:31:10 -0000 1.21 *************** *** 135,143 **** // TODO: DESIGNQUESTION: There are other points in the application that have questions about the // statementCache - I just don't see this as being needed yet. ! int cacheSize = PropertiesHelper.GetInt( Cfg.Environment.StatementCacheSize, properties, 0); statementCache = ( cacheSize<1 || connectionProvider.IsStatementCache ) ? null : new PreparedStatementCache(cacheSize); //statementCache = null; ! statementFetchSize = PropertiesHelper.GetInt( Cfg.Environment.StatementFetchSize, properties, -1); if((int)statementFetchSize==-1) statementFetchSize = null; if (statementFetchSize!=null) log.Info("ado result set fetch size: " + statementFetchSize); --- 135,143 ---- // TODO: DESIGNQUESTION: There are other points in the application that have questions about the // statementCache - I just don't see this as being needed yet. ! int cacheSize = PropertiesHelper.GetInt32( Cfg.Environment.StatementCacheSize, properties, 0); statementCache = ( cacheSize<1 || connectionProvider.IsStatementCache ) ? null : new PreparedStatementCache(cacheSize); //statementCache = null; ! statementFetchSize = PropertiesHelper.GetInt32( Cfg.Environment.StatementFetchSize, properties, -1); if((int)statementFetchSize==-1) statementFetchSize = null; if (statementFetchSize!=null) log.Info("ado result set fetch size: " + statementFetchSize); *************** *** 147,151 **** bool usrs = PropertiesHelper.GetBoolean(Cfg.Environment.UseScrollableResultSet, properties); ! int batchSize = PropertiesHelper.GetInt(Cfg.Environment.StatementBatchSize, properties, 0); try --- 147,151 ---- bool usrs = PropertiesHelper.GetBoolean(Cfg.Environment.UseScrollableResultSet, properties); ! int batchSize = PropertiesHelper.GetInt32(Cfg.Environment.StatementBatchSize, properties, 0); try |