/** * Builds the. * * @return the data source options */ public DataSourceOptions build() { return new DataSourceOptions(factory, errorHandler, databaseLifecycleHandler, updateTasks, logEnabled, populator, inMemory); } }
/** * Instantiates a new abstract data source. * * @param name * the name * @param version * the version * @param options * the options */ protected AbstractDataSource(String name, int version, DataSourceOptions options) { DataSourceOptions optionsValue = (options == null) ? DataSourceOptions.builder().build() : options; this.name = options.inMemory ? null : name; this.version = version; // create new SQLContext this.context = new SQLContextImpl(this); this.options = optionsValue; this.logEnabled = optionsValue.logEnabled; }
/** * Instantiates a new abstract data source. * * @param name * the name * @param version * the version * @param options * the options */ protected AbstractDataSource(String name, int version, DataSourceOptions options) { DataSourceOptions optionsValue = (options == null) ? DataSourceOptions.builder().build() : options; this.name = options.inMemory ? null : name; this.version = version; // create new SQLContext this.context = new SQLContextImpl(this); this.options = optionsValue; this.logEnabled = optionsValue.logEnabled; }
/** * Builds the. * * @return the data source options */ public DataSourceOptions build() { return new DataSourceOptions(factory, errorHandler, databaseLifecycleHandler, updateTasks, logEnabled, populator, inMemory); } }