/** * Retrieve from a raw resource a list of comma separated sql commands * to execute. File can contains -- or multiline comments. * * @param currentVersion the current version * @param context the context * @param resRawId the res raw id * @return the builder */ public Builder addUpdateTask(int currentVersion, Context context, int resRawId) { return addUpdateTask(currentVersion, context.getResources().openRawResource(resRawId)); }
/** * 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; }
/** * Builder. * * @return the builder */ public static Builder builder() { return new Builder(); }
/** * Builder. * * @return the builder */ public static Builder builder() { return new Builder(); }
/** * Retrieve from a raw resource a list of comma separated sql commands * to execute. File can contains -- or multiline comments. * * @param currentVersion the current version * @param context the context * @param resRawId the res raw id * @return the builder */ public Builder addUpdateTask(int currentVersion, Context context, int resRawId) { return addUpdateTask(currentVersion, context.getResources().openRawResource(resRawId)); }