
com.j256.ormlite.android.AndroidCompiledStatement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ormlite-android Show documentation
Show all versions of ormlite-android Show documentation
Lightweight Object Relational Model (ORM) Android classes
The newest version!
package com.j256.ormlite.android;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import com.j256.ormlite.android.compat.ApiCompatibility;
import com.j256.ormlite.android.compat.ApiCompatibility.CancellationHook;
import com.j256.ormlite.android.compat.ApiCompatibilityUtils;
import com.j256.ormlite.dao.ObjectCache;
import com.j256.ormlite.field.SqlType;
import com.j256.ormlite.logger.Logger;
import com.j256.ormlite.logger.LoggerFactory;
import com.j256.ormlite.stmt.StatementBuilder.StatementType;
import com.j256.ormlite.support.CompiledStatement;
import com.j256.ormlite.support.DatabaseResults;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteStatement;
/**
* Android implementation of the compiled statement.
*
* @author kevingalligan, graywatson
*/
public class AndroidCompiledStatement implements CompiledStatement {
private static Logger logger = LoggerFactory.getLogger(AndroidCompiledStatement.class);
private static final String[] NO_STRING_ARGS = new String[0];
private static final ApiCompatibility apiCompatibility = ApiCompatibilityUtils.getCompatibility();
private final String sql;
private final SQLiteDatabase db;
private final StatementType type;
private final boolean cancelQueriesEnabled;
private final boolean cacheStore;
private Cursor cursor;
private List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy