de.greenrobot.dao.InternalQueryDaoAccess Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greendao-encryption Show documentation
Show all versions of greendao-encryption Show documentation
greenDAO is a light and fast ORM for Android
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();
}
}