Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl
In directory sc8-pr-cvs1:/tmp/cvs-serv31984/impl
Modified Files:
SessionFactoryImpl.java
Log Message:
added option to disable reflection optimizer
Index: SessionFactoryImpl.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/impl/SessionFactoryImpl.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** SessionFactoryImpl.java 2 Apr 2003 01:06:52 -0000 1.16
--- SessionFactoryImpl.java 8 Apr 2003 14:26:40 -0000 1.17
***************
*** 97,100 ****
--- 97,101 ----
private transient final boolean showSql;
private transient final boolean useOuterJoin;
+ private transient final boolean useReflectionOptimizer;
private transient final boolean supportsLocking;
private transient final Templates templates;
***************
*** 132,135 ****
--- 133,137 ----
//temp.putAll( Environment.getProperties() );
temp.putAll( dl.getDefaultProperties() );
+ temp.put(Environment.USE_REFLECTION_OPTIMIZER, Boolean.TRUE);
temp.putAll(properties);
properties = temp; // add the dialects default properties
***************
*** 150,156 ****
if (statementFetchSize!=null) log.info("JDBC result set fetch size: " + statementFetchSize);
! useOuterJoin = PropertiesHelper.getBoolean(Environment.OUTER_JOIN, properties);
log.info("Use outer join fetching: " + useOuterJoin);
boolean usrs = PropertiesHelper.getBoolean(Environment.USE_SCROLLABLE_RESULTSET, properties);
int batchSize = PropertiesHelper.getInt(Environment.STATEMENT_BATCH_SIZE, properties, 0);
--- 152,160 ----
if (statementFetchSize!=null) log.info("JDBC result set fetch size: " + statementFetchSize);
! useOuterJoin = PropertiesHelper.getBoolean(Environment.USE_OUTER_JOIN, properties);
log.info("Use outer join fetching: " + useOuterJoin);
+ useReflectionOptimizer = PropertiesHelper.getBoolean(Environment.USE_REFLECTION_OPTIMIZER, properties);
+
boolean usrs = PropertiesHelper.getBoolean(Environment.USE_SCROLLABLE_RESULTSET, properties);
int batchSize = PropertiesHelper.getInt(Environment.STATEMENT_BATCH_SIZE, properties, 0);
***************
*** 693,696 ****
--- 697,704 ----
if (statementCache!=null) statementCache.close();
connections.close();
+ }
+
+ public boolean useReflectionOptimizer() {
+ return useReflectionOptimizer;
}
|