private static int getSqlInLimit ( ) { try { PersistenceBrokerConfiguration config = ( PersistenceBrokerConfiguration ) PersistenceBrokerFactory . getConfigurator ( ) . getConfigurationFor ( null ) ; return config . getSqlInLimit ( ) ; } catch ( ConfigurationException e ) { return 200 ; } }
read the prefetchInLimit from Config based on OJB . properties