Lines Matching defs:sql

566      * @param sql The SQL statement to prepare.
576 public void prepare(String sql, int connectionFlags, CancellationSignal cancellationSignal,
578 if (sql == null) {
579 throw new IllegalArgumentException("sql must not be null.");
586 acquireConnection(sql, connectionFlags, cancellationSignal); // might throw
588 mConnection.prepare(sql, outStatementInfo); // might throw
597 * @param sql The SQL statement to execute.
607 public void execute(String sql, Object[] bindArgs, int connectionFlags,
609 if (sql == null) {
610 throw new IllegalArgumentException("sql must not be null.");
613 if (executeSpecial(sql, bindArgs, connectionFlags, cancellationSignal)) {
617 acquireConnection(sql, connectionFlags, cancellationSignal); // might throw
619 mConnection.execute(sql, bindArgs, cancellationSignal); // might throw
628 * @param sql The SQL statement to execute.
640 public long executeForLong(String sql, Object[] bindArgs, int connectionFlags,
642 if (sql == null) {
643 throw new IllegalArgumentException("sql must not be null.");
646 if (executeSpecial(sql, bindArgs, connectionFlags, cancellationSignal)) {
650 acquireConnection(sql, connectionFlags, cancellationSignal); // might throw
652 return mConnection.executeForLong(sql, bindArgs, cancellationSignal); // might throw
661 * @param sql The SQL statement to execute.
673 public String executeForString(String sql, Object[] bindArgs, int connectionFlags,
675 if (sql == null) {
676 throw new IllegalArgumentException("sql must not be null.");
679 if (executeSpecial(sql, bindArgs, connectionFlags, cancellationSignal)) {
683 acquireConnection(sql, connectionFlags, cancellationSignal); // might throw
685 return mConnection.executeForString(sql, bindArgs, cancellationSignal); // might throw
695 * @param sql The SQL statement to execute.
708 public ParcelFileDescriptor executeForBlobFileDescriptor(String sql, Object[] bindArgs,
710 if (sql == null) {
711 throw new IllegalArgumentException("sql must not be null.");
714 if (executeSpecial(sql, bindArgs, connectionFlags, cancellationSignal)) {
718 acquireConnection(sql, connectionFlags, cancellationSignal); // might throw
720 return mConnection.executeForBlobFileDescriptor(sql, bindArgs,
731 * @param sql The SQL statement to execute.
742 public int executeForChangedRowCount(String sql, Object[] bindArgs, int connectionFlags,
744 if (sql == null) {
745 throw new IllegalArgumentException("sql must not be null.");
748 if (executeSpecial(sql, bindArgs, connectionFlags, cancellationSignal)) {
752 acquireConnection(sql, connectionFlags, cancellationSignal); // might throw
754 return mConnection.executeForChangedRowCount(sql, bindArgs,
765 * @param sql The SQL statement to execute.
776 public long executeForLastInsertedRowId(String sql, Object[] bindArgs, int connectionFlags,
778 if (sql == null) {
779 throw new IllegalArgumentException("sql must not be null.");
782 if (executeSpecial(sql, bindArgs, connectionFlags, cancellationSignal)) {
786 acquireConnection(sql, connectionFlags, cancellationSignal); // might throw
788 return mConnection.executeForLastInsertedRowId(sql, bindArgs,
800 * @param sql The SQL statement to execute.
819 public int executeForCursorWindow(String sql, Object[] bindArgs,
822 if (sql == null) {
823 throw new IllegalArgumentException("sql must not be null.");
829 if (executeSpecial(sql, bindArgs, connectionFlags, cancellationSignal)) {
834 acquireConnection(sql, connectionFlags, cancellationSignal); // might throw
836 return mConnection.executeForCursorWindow(sql, bindArgs,
853 * @param sql The SQL statement to execute.
865 private boolean executeSpecial(String sql, Object[] bindArgs, int connectionFlags,
871 final int type = DatabaseUtils.getSqlStatementType(sql);
890 private void acquireConnection(String sql, int connectionFlags,
894 mConnection = mConnectionPool.acquireConnection(sql, connectionFlags,