/** * Content values. * * @param compiledStatement * the compiled statement * @return the kripton content values */ protected KriptonContentValues contentValues(SQLiteStatement compiledStatement) { return context.contentValues(compiledStatement); }
/** * Content values for content provider. * * @param values * the values * @return the kripton content values */ protected KriptonContentValues contentValuesForContentProvider(ContentValues values) { return context.contentValuesForContentProvider(values); }
/** * Content values for update. * * @param compiledStatement * the compiled statement * @return the kripton content values */ protected KriptonContentValues contentValuesForUpdate(SQLiteStatement compiledStatement) { return context.contentValuesForUpdate(compiledStatement); }
/** * On session opened. */ protected void onSessionOpened() { this.context.onSessionOpened(); }
/** * On session closed. * * @return the sets the */ protected Set<Integer> onSessionClosed() { return this.context.onSessionClosed(); }
/** * Checks if is log enabled. * * @return true, if is log enabled */ public boolean isLogEnabled() { return context.isLogEnabled(); }
/** * Sql builder. * * @return the string builder */ protected StringBuilder sqlBuilder() { return context.sqlBuilder(); }
/** * 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; }
/** * On session opened. */ protected void onSessionOpened() { this.context.onSessionOpened(); }
/** * On session closed. * * @return the sets the */ protected Set<Integer> onSessionClosed() { return this.context.onSessionClosed(); }
/** * Checks if is log enabled. * * @return true, if is log enabled */ public boolean isLogEnabled() { return context.isLogEnabled(); }
/** * Sql builder. * * @return the string builder */ protected StringBuilder sqlBuilder() { return context.sqlBuilder(); }
/** * 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; }
/** * Content values for content provider. * * @param values * the values * @return the kripton content values */ protected KriptonContentValues contentValuesForContentProvider(ContentValues values) { return context.contentValuesForContentProvider(values); }
/** * Content values. * * @param compiledStatement * the compiled statement * @return the kripton content values */ protected KriptonContentValues contentValues(SQLiteStatement compiledStatement) { return context.contentValues(compiledStatement); }
/** * Content values for update. * * @param compiledStatement * the compiled statement * @return the kripton content values */ protected KriptonContentValues contentValuesForUpdate(SQLiteStatement compiledStatement) { return context.contentValuesForUpdate(compiledStatement); }