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

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

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

import android.database.sqlite.SQLiteProgram;
import androidx.sqlite.db.SupportSQLiteProgram;

/**
 * SupportSQLiteProgram implementation that wraps SQLite for Android's
 * implementation
 */
class KriptonSQLiteProgram implements SupportSQLiteProgram {
	private final SQLiteProgram delegate;

	KriptonSQLiteProgram(SQLiteProgram delegate) {
		this.delegate = delegate;
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public void bindNull(int index) {
		delegate.bindNull(index);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public void bindLong(int index, long value) {
		delegate.bindLong(index, value);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public void bindDouble(int index, double value) {
		delegate.bindDouble(index, value);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public void bindString(int index, String value) {
		delegate.bindString(index, value);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public void bindBlob(int index, byte[] value) {
		delegate.bindBlob(index, value);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public void clearBindings() {
		delegate.clearBindings();
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public void close() {
		delegate.close();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy