Code example for SQLiteStatement

Methods: bindNull

0
   * Bind null to an index. A prepareForInsert() or prepareForReplace() 
   * without a matching execute() must have already have been called. 
   * @param index the index of the slot to which to bind 
   */ 
  public void bindNull(final int index) {
    mPreparedStatement.bindNull(index);
  } 
 
  /** 
   * Bind the value to an index. A prepareForInsert() or prepareForReplace() 
   * without a matching execute() must have already have been called. 
   * @param index the index of the slot to which to bind 
   * @param value the value to bind 
   */ 
  public void bind(final int index, final byte[] value) {
    if (value == null) {
      mPreparedStatement.bindNull(index);
    } else { 
      mPreparedStatement.bindBlob(index, value);
    } 
  }