com.abubusoft.kripton.android.sqlite.database.KriptonSQLiteStatement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kripton-orm Show documentation
Show all versions of kripton-orm Show documentation
Kripton Persistence Library - ORM module
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