Methods Summary |
---|
public void | close()
int length = mCursors.length;
for (int i = 0 ; i < length ; i++) {
if (mCursors[i] == null) continue;
mCursors[i].close();
}
|
public boolean | commitUpdates()
int length = mCursors.length;
for (int i = 0 ; i < length ; i++) {
if (mCursors[i] != null) {
mCursors[i].commitUpdates();
}
}
onChange(true);
return true;
|
public void | deactivate()
int length = mCursors.length;
for (int i = 0 ; i < length ; i++) {
if (mCursors[i] != null) {
mCursors[i].deactivate();
}
}
|
public boolean | deleteRow()
return mCursor.deleteRow();
|
public byte[] | getBlob(int column)
return mCursor.getBlob(column);
|
public java.lang.String[] | getColumnNames()
if (mCursor != null) {
return mCursor.getColumnNames();
} else {
return new String[0];
}
|
public int | getCount()
int count = 0;
int length = mCursors.length;
for (int i = 0 ; i < length ; i++) {
if (mCursors[i] != null) {
count += mCursors[i].getCount();
}
}
return count;
|
public double | getDouble(int column)
return mCursor.getDouble(column);
|
public float | getFloat(int column)
return mCursor.getFloat(column);
|
public int | getInt(int column)
return mCursor.getInt(column);
|
public long | getLong(int column)
return mCursor.getLong(column);
|
public short | getShort(int column)
return mCursor.getShort(column);
|
public java.lang.String | getString(int column)
return mCursor.getString(column);
|
public boolean | isNull(int column)
return mCursor.isNull(column);
|
public boolean | onMove(int oldPosition, int newPosition)
/* Find the right cursor */
mCursor = null;
int cursorStartPos = 0;
int length = mCursors.length;
for (int i = 0 ; i < length; i++) {
if (mCursors[i] == null) {
continue;
}
if (newPosition < (cursorStartPos + mCursors[i].getCount())) {
mCursor = mCursors[i];
break;
}
cursorStartPos += mCursors[i].getCount();
}
/* Move it to the right position */
if (mCursor != null) {
boolean ret = mCursor.moveToPosition(newPosition - cursorStartPos);
return ret;
}
return false;
|
public void | registerContentObserver(ContentObserver observer)
int length = mCursors.length;
for (int i = 0 ; i < length ; i++) {
if (mCursors[i] != null) {
mCursors[i].registerContentObserver(observer);
}
}
|
public void | registerDataSetObserver(DataSetObserver observer)
int length = mCursors.length;
for (int i = 0 ; i < length ; i++) {
if (mCursors[i] != null) {
mCursors[i].registerDataSetObserver(observer);
}
}
|
public boolean | requery()
int length = mCursors.length;
for (int i = 0 ; i < length ; i++) {
if (mCursors[i] == null) {
continue;
}
if (mCursors[i].requery() == false) {
return false;
}
}
return true;
|
public void | unregisterContentObserver(ContentObserver observer)
int length = mCursors.length;
for (int i = 0 ; i < length ; i++) {
if (mCursors[i] != null) {
mCursors[i].unregisterContentObserver(observer);
}
}
|
public void | unregisterDataSetObserver(DataSetObserver observer)
int length = mCursors.length;
for (int i = 0 ; i < length ; i++) {
if (mCursors[i] != null) {
mCursors[i].unregisterDataSetObserver(observer);
}
}
|