public static String stringForQuery(SQLiteDatabase paramSQLiteDatabase, String paramString, String[] paramArrayOfString) { paramSQLiteDatabase = paramSQLiteDatabase.compileStatement(paramString); try { paramString = stringForQuery(paramSQLiteDatabase, paramArrayOfString); return paramString; } finally { paramSQLiteDatabase.close(); } }
public static ParcelFileDescriptor blobFileDescriptorForQuery(SQLiteDatabase paramSQLiteDatabase, String paramString, String[] paramArrayOfString) { paramSQLiteDatabase = paramSQLiteDatabase.compileStatement(paramString); try { paramString = blobFileDescriptorForQuery(paramSQLiteDatabase, paramArrayOfString); return paramString; } finally { paramSQLiteDatabase.close(); } }
private SQLiteStatement getStatement(boolean paramBoolean) { if (paramBoolean) { if (mReplaceStatement == null) { if (mInsertSQL == null) { buildSQL(); } String str = "INSERT OR REPLACE" + mInsertSQL.substring(6); mReplaceStatement = mDb.compileStatement(str); } return mReplaceStatement; } if (mInsertStatement == null) { if (mInsertSQL == null) { buildSQL(); } mInsertStatement = mDb.compileStatement(mInsertSQL); } return mInsertStatement; }