示例#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);
 }