public final String toRawSql(CompileContext compileContext) { return buildSql(compileContext, false, false).getSqlString(); }
@Deprecated public final String toRawSql(VersionCode sqliteVersion) { return buildSql(CompileContext.defaultContextForVersionCode(sqliteVersion), false, false).getSqlString(); }
/** * @return the expression for the function as it would be compiled with the given CompileContext */ public String getExpression(CompileContext forCompileContext) { SqlBuilder builder = new SqlBuilder(forCompileContext, false); appendQualifiedExpression(builder, false); return builder.getSqlString(); }
public CompiledArgumentResolver(SqlBuilder builder) { this.compiledSql = builder.getSqlString(); this.sqlArgs = builder.getBoundArguments(); this.compileContext = builder.compileContext; this.needsValidation = builder.needsValidation(); if (compiledSql.contains(SqlStatement.REPLACEABLE_ARRAY_PARAMETER)) { collectionArgs = new ArrayList<>(); findCollectionArgs(); compiledSqlCache = new SimpleLruCache<>(CACHE_SIZE); argArrayCache = new SimpleLruCache<>(CACHE_SIZE); } }
public final String toRawSql(CompileContext compileContext) { return buildSql(compileContext, false, false).getSqlString(); }
@Deprecated public final String toRawSql(VersionCode sqliteVersion) { return buildSql(CompileContext.defaultContextForVersionCode(sqliteVersion), false, false).getSqlString(); }
/** * @return the expression for the function as it would be compiled with the given CompileContext */ public String getExpression(CompileContext forCompileContext) { SqlBuilder builder = new SqlBuilder(forCompileContext, false); appendQualifiedExpression(builder, false); return builder.getSqlString(); }
public CompiledArgumentResolver(SqlBuilder builder) { this.compiledSql = builder.getSqlString(); this.sqlArgs = builder.getBoundArguments(); this.compileContext = builder.compileContext; this.needsValidation = builder.needsValidation(); if (compiledSql.contains(SqlStatement.REPLACEABLE_ARRAY_PARAMETER)) { collectionArgs = new ArrayList<>(); findCollectionArgs(); compiledSqlCache = new SimpleLruCache<>(CACHE_SIZE); argArrayCache = new SimpleLruCache<>(CACHE_SIZE); } }