public Database(Configuration configuration) { this.configuration = configuration; this.compareMode = CompareMode.getInstance(null, 0); this.dbSettings = getDbSettings(configuration.settings); this.mode = Mode.getInstance(dbSettings.sqlMode); this.traceSystem = new TraceSystem(); this.trace = traceSystem.getTrace(Trace.DATABASE); this.queryExecutor = createQueryExecutor(); this.repository = bindRepository(); this.executorFactory = new ExecutorFactoryImpl(); openDatabase(); }
Mode mode = Mode.getInstance(stringValue); if (mode == null) { throw DbException.get(ErrorCode.UNKNOWN_MODE_1, stringValue);