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

de.greenrobot.dao.InternalQueryDaoAccess Maven / Gradle / Ivy

There is a newer version: 3.0.0-beta3
Show newest version
package de.greenrobot.dao;

import java.util.List;

import android.database.Cursor;
import de.greenrobot.dao.internal.TableStatements;

/** For internal use by greenDAO only. */
public final class InternalQueryDaoAccess {
    private final AbstractDao dao;

    public InternalQueryDaoAccess(AbstractDao abstractDao) {
        dao = abstractDao;
    }

    public T loadCurrent(Cursor cursor, int offset, boolean lock) {
        return dao.loadCurrent(cursor, offset, lock);
    }

    public List loadAllAndCloseCursor(Cursor cursor) {
        return dao.loadAllAndCloseCursor(cursor);
    }

    public T loadUniqueAndCloseCursor(Cursor cursor) {
        return dao.loadUniqueAndCloseCursor(cursor);
    }

    public TableStatements getStatements() {
        return dao.getStatements();
    }

    public static  TableStatements getStatements(AbstractDao dao) {
        return dao.getStatements();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy