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