Beispiel #1
0
 /* (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();
   }
 }
Beispiel #2
0
 @Override
 public boolean onMove(int oldPosition, int newPosition) {
   checkClosed();
   return mCursor.onMove(oldPosition, newPosition);
 }
Beispiel #3
0
 @Override
 public void unregisterDataSetObserver(DataSetObserver observer) {
   checkClosed();
   mCursor.unregisterDataSetObserver(observer);
 }
Beispiel #4
0
 @Override
 public void setNotificationUri(ContentResolver cr, Uri uri) {
   checkClosed();
   mCursor.setNotificationUri(cr, uri);
 }
Beispiel #5
0
 @Override
 public boolean requery() {
   checkClosed();
   return mCursor.requery();
 }
Beispiel #6
0
 @Override
 public boolean moveToPosition(int position) {
   checkClosed();
   return mCursor.moveToPosition(position);
 }
Beispiel #7
0
 @Override
 public boolean move(int offset) {
   checkClosed();
   return mCursor.move(offset);
 }
Beispiel #8
0
 public boolean isLast() {
   checkClosed();
   return mCursor.isLast();
 }
Beispiel #9
0
 @Override
 public int getCount() {
   checkClosed();
   return mCursor.getCount();
 }
Beispiel #10
0
 @Override
 public String[] getColumnNames() {
   checkClosed();
   return mCursor.getColumnNames();
 }
Beispiel #11
0
 @Override
 public int getColumnIndexOrThrow(String columnName) throws IllegalArgumentException {
   checkClosed();
   return mCursor.getColumnIndexOrThrow(columnName);
 }
Beispiel #12
0
 @Override
 public int getColumnIndex(String columnName) {
   checkClosed();
   return mCursor.getColumnIndex(columnName);
 }
Beispiel #13
0
 @Override
 public byte[] getBlob(int columnIndex) {
   checkClosed();
   return mCursor.getBlob(columnIndex);
 }
Beispiel #14
0
 @Override
 public void deactivate() {
   checkClosed();
   mCursor.deactivate();
 }
Beispiel #15
0
 @Override
 public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) {
   checkClosed();
   mCursor.copyStringToBuffer(columnIndex, buffer);
 }
Beispiel #16
0
 @Override
 public boolean getWantsAllOnMoveCalls() {
   checkClosed();
   return mCursor.getWantsAllOnMoveCalls();
 }
Beispiel #17
0
 @Override
 public boolean isFirst() {
   checkClosed();
   return mCursor.isFirst();
 }
Beispiel #18
0
 @Override
 public double getDouble(int columnIndex) {
   checkClosed();
   return mCursor.getDouble(columnIndex);
 }
Beispiel #19
0
 @Override
 public boolean isNull(int columnIndex) {
   checkClosed();
   return mCursor.isNull(columnIndex);
 }
Beispiel #20
0
 @Override
 public Bundle getExtras() {
   checkClosed();
   return mCursor.getExtras();
 }
Beispiel #21
0
 @Override
 public boolean moveToNext() {
   checkClosed();
   return mCursor.moveToNext();
 }
Beispiel #22
0
 @Override
 public float getFloat(int columnIndex) {
   checkClosed();
   return mCursor.getFloat(columnIndex);
 }
Beispiel #23
0
 @Override
 public boolean moveToPrevious() {
   checkClosed();
   return mCursor.moveToPrevious();
 }
Beispiel #24
0
 @Override
 public int getInt(int columnIndex) {
   checkClosed();
   return mCursor.getInt(columnIndex);
 }
Beispiel #25
0
 @Override
 public Bundle respond(Bundle extras) {
   checkClosed();
   return mCursor.respond(extras);
 }
Beispiel #26
0
 @Override
 public int getPosition() {
   checkClosed();
   return mCursor.getPosition();
 }
Beispiel #27
0
 @Override
 public void unregisterContentObserver(ContentObserver observer) {
   checkClosed();
   mCursor.unregisterContentObserver(observer);
 }
Beispiel #28
0
 @Override
 public short getShort(int columnIndex) {
   checkClosed();
   return mCursor.getShort(columnIndex);
 }
 @Override
 public void fillWindow(int pos, CursorWindow window) {
   ((CrossProcessCursor) mCursor).fillWindow(pos, window);
 }
Beispiel #30
0
 @Override
 public String getString(int columnIndex) {
   checkClosed();
   return mCursor.getString(columnIndex);
 }