public void bind(int paramInt, String paramString) { if (paramString == null) { mPreparedStatement.bindNull(paramInt); return; } mPreparedStatement.bindString(paramInt, paramString); }
public void bind(int paramInt, byte[] paramArrayOfByte) { if (paramArrayOfByte == null) { mPreparedStatement.bindNull(paramInt); return; } mPreparedStatement.bindBlob(paramInt, paramArrayOfByte); }
public void bind(int paramInt, boolean paramBoolean) { SQLiteStatement localSQLiteStatement = mPreparedStatement; if (paramBoolean) {} for (long l = 1L;; l = 0L) { localSQLiteStatement.bindLong(paramInt, l); return; } }
public void close() { if (mInsertStatement != null) { mInsertStatement.close(); mInsertStatement = null; } if (mReplaceStatement != null) { mReplaceStatement.close(); mReplaceStatement = null; } mInsertSQL = null; mColumns = null; }
public long execute() { if (mPreparedStatement == null) { throw new IllegalStateException("you must prepare this inserter before calling execute"); } try { long l = mPreparedStatement.executeInsert(); return l; } catch (SQLException localSQLException) { Log.e("DatabaseUtils", "Error executing InsertHelper with table " + mTableName, new Object[] { localSQLException }); return -1L; } finally { mPreparedStatement = null; } }
public static String stringForQuery(SQLiteStatement paramSQLiteStatement, String[] paramArrayOfString) { paramSQLiteStatement.bindAllArgsAsStrings(paramArrayOfString); return paramSQLiteStatement.simpleQueryForString(); }
public static ParcelFileDescriptor blobFileDescriptorForQuery(SQLiteStatement paramSQLiteStatement, String[] paramArrayOfString) { paramSQLiteStatement.bindAllArgsAsStrings(paramArrayOfString); return paramSQLiteStatement.simpleQueryForBlobFileDescriptor(); }
public void prepareForReplace() { mPreparedStatement = getStatement(true); mPreparedStatement.clearBindings(); }
public void prepareForInsert() { mPreparedStatement = getStatement(false); mPreparedStatement.clearBindings(); }
public void bindNull(int paramInt) { mPreparedStatement.bindNull(paramInt); }
public void bind(int paramInt, long paramLong) { mPreparedStatement.bindLong(paramInt, paramLong); }
public void bind(int paramInt1, int paramInt2) { mPreparedStatement.bindLong(paramInt1, paramInt2); }
public void bind(int paramInt, float paramFloat) { mPreparedStatement.bindDouble(paramInt, paramFloat); }
public void bind(int paramInt, double paramDouble) { mPreparedStatement.bindDouble(paramInt, paramDouble); }