All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.abubusoft.kripton.android.sqlite.database.KriptonSQLiteStatement Maven / Gradle / Ivy

The newest version!
package com.abubusoft.kripton.android.sqlite.database;

import android.database.sqlite.SQLiteStatement;
import androidx.sqlite.db.SupportSQLiteStatement;

/**
 * SupportSQLiteStatement implementation that wraps SQLite for Android's
 * SQLiteStatement
 */
class KriptonSQLiteStatement extends KriptonSQLiteProgram implements SupportSQLiteStatement {
	private final SQLiteStatement safeStatement;

	KriptonSQLiteStatement(SQLiteStatement safeStatement) {
		super(safeStatement);
		this.safeStatement = safeStatement;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public void execute() {
		safeStatement.execute();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public int executeUpdateDelete() {
		return safeStatement.executeUpdateDelete();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public long executeInsert() {
		return safeStatement.executeInsert();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public long simpleQueryForLong() {
		return safeStatement.simpleQueryForLong();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public String simpleQueryForString() {
		return safeStatement.simpleQueryForString();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy