protected DbQueryBase(final DbOom dbOom) { this.dbOom = dbOom; this.forcePreparedStatement = dbOom.queryConfig().isForcePreparedStatement(); this.type = dbOom.queryConfig().getType(); this.concurrencyType = dbOom.queryConfig().getConcurrencyType(); this.holdability = dbOom.queryConfig().getHoldability(); this.debug = dbOom.queryConfig().isDebug(); this.fetchSize = dbOom.queryConfig().getFetchSize(); this.maxRows = dbOom.queryConfig().getMaxRows(); }
/** * Creates new DbOom. */ public DbOom( final ConnectionProvider connectionProvider, final DbSessionProvider dbSessionProvider, final QueryMap queryMap) { this.connectionProvider = connectionProvider; this.dbSessionProvider = dbSessionProvider; this.queryMap = queryMap; this.dbOomConfig = new DbOomConfig(); this.dbQueryConfig = new DbQueryConfig(); this.dbEntityManager = new DbEntityManager(dbOomConfig); this.dbEntitySql = new DbEntitySql(this); // static init if (defaultDbOom == null) { log.info("Default DbOom is created."); defaultDbOom = this; } else { log.warn("Multiple DbOom detected."); defaultDbOom = null; } }
/** * Creates new DbOom. */ public DbOom( final ConnectionProvider connectionProvider, final DbSessionProvider dbSessionProvider, final QueryMap queryMap) { this.connectionProvider = connectionProvider; this.dbSessionProvider = dbSessionProvider; this.queryMap = queryMap; this.dbOomConfig = new DbOomConfig(); this.dbQueryConfig = new DbQueryConfig(); this.dbEntityManager = new DbEntityManager(dbOomConfig); this.dbEntitySql = new DbEntitySql(this); // static init if (defaultDbOom == null) { log.info("Default DbOom is created."); defaultDbOom = this; } else { log.warn("Multiple DbOom detected."); defaultDbOom = null; } }
protected DbQueryBase(final DbOom dbOom) { this.dbOom = dbOom; this.forcePreparedStatement = dbOom.queryConfig().isForcePreparedStatement(); this.type = dbOom.queryConfig().getType(); this.concurrencyType = dbOom.queryConfig().getConcurrencyType(); this.holdability = dbOom.queryConfig().getHoldability(); this.debug = dbOom.queryConfig().isDebug(); this.fetchSize = dbOom.queryConfig().getFetchSize(); this.maxRows = dbOom.queryConfig().getMaxRows(); }