/* (non-Javadoc) * * Close the underlying cursor and dereference it. * * @see android.database.Cursor#close() */ @Override public void close() { if (mClosed.compareAndSet(false, true)) { mCursor.close(); Log.d(K9.LOG_TAG, "Cursor closed, null'ing & releasing semaphore"); mCursor = null; mSemaphore.release(); } }
@Override public boolean onMove(int oldPosition, int newPosition) { checkClosed(); return mCursor.onMove(oldPosition, newPosition); }
@Override public void unregisterDataSetObserver(DataSetObserver observer) { checkClosed(); mCursor.unregisterDataSetObserver(observer); }
@Override public void setNotificationUri(ContentResolver cr, Uri uri) { checkClosed(); mCursor.setNotificationUri(cr, uri); }
@Override public boolean requery() { checkClosed(); return mCursor.requery(); }
@Override public boolean moveToPosition(int position) { checkClosed(); return mCursor.moveToPosition(position); }
@Override public boolean move(int offset) { checkClosed(); return mCursor.move(offset); }
public boolean isLast() { checkClosed(); return mCursor.isLast(); }
@Override public int getCount() { checkClosed(); return mCursor.getCount(); }
@Override public String[] getColumnNames() { checkClosed(); return mCursor.getColumnNames(); }
@Override public int getColumnIndexOrThrow(String columnName) throws IllegalArgumentException { checkClosed(); return mCursor.getColumnIndexOrThrow(columnName); }
@Override public int getColumnIndex(String columnName) { checkClosed(); return mCursor.getColumnIndex(columnName); }
@Override public byte[] getBlob(int columnIndex) { checkClosed(); return mCursor.getBlob(columnIndex); }
@Override public void deactivate() { checkClosed(); mCursor.deactivate(); }
@Override public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) { checkClosed(); mCursor.copyStringToBuffer(columnIndex, buffer); }
@Override public boolean getWantsAllOnMoveCalls() { checkClosed(); return mCursor.getWantsAllOnMoveCalls(); }
@Override public boolean isFirst() { checkClosed(); return mCursor.isFirst(); }
@Override public double getDouble(int columnIndex) { checkClosed(); return mCursor.getDouble(columnIndex); }
@Override public boolean isNull(int columnIndex) { checkClosed(); return mCursor.isNull(columnIndex); }
@Override public Bundle getExtras() { checkClosed(); return mCursor.getExtras(); }
@Override public boolean moveToNext() { checkClosed(); return mCursor.moveToNext(); }
@Override public float getFloat(int columnIndex) { checkClosed(); return mCursor.getFloat(columnIndex); }
@Override public boolean moveToPrevious() { checkClosed(); return mCursor.moveToPrevious(); }
@Override public int getInt(int columnIndex) { checkClosed(); return mCursor.getInt(columnIndex); }
@Override public Bundle respond(Bundle extras) { checkClosed(); return mCursor.respond(extras); }
@Override public int getPosition() { checkClosed(); return mCursor.getPosition(); }
@Override public void unregisterContentObserver(ContentObserver observer) { checkClosed(); mCursor.unregisterContentObserver(observer); }
@Override public short getShort(int columnIndex) { checkClosed(); return mCursor.getShort(columnIndex); }
@Override public void fillWindow(int pos, CursorWindow window) { ((CrossProcessCursor) mCursor).fillWindow(pos, window); }
@Override public String getString(int columnIndex) { checkClosed(); return mCursor.getString(columnIndex); }