Methods Summary |
---|
protected void | checkPosition()
super.checkPosition();
if (mWindow == null) {
throw new StaleDataException("Access closed cursor");
}
|
public void | copyStringToBuffer(int columnIndex, CharArrayBuffer buffer)
checkPosition();
synchronized(mUpdatedRows) {
if (isFieldUpdated(columnIndex)) {
super.copyStringToBuffer(columnIndex, buffer);
}
}
mWindow.copyStringToBuffer(mPos, columnIndex, buffer);
|
public byte[] | getBlob(int columnIndex)
checkPosition();
synchronized(mUpdatedRows) {
if (isFieldUpdated(columnIndex)) {
return (byte[])getUpdatedField(columnIndex);
}
}
return mWindow.getBlob(mPos, columnIndex);
|
public double | getDouble(int columnIndex)
checkPosition();
synchronized(mUpdatedRows) {
if (isFieldUpdated(columnIndex)) {
Number value = (Number)getUpdatedField(columnIndex);
return value.doubleValue();
}
}
return mWindow.getDouble(mPos, columnIndex);
|
public float | getFloat(int columnIndex)
checkPosition();
synchronized(mUpdatedRows) {
if (isFieldUpdated(columnIndex)) {
Number value = (Number)getUpdatedField(columnIndex);
return value.floatValue();
}
}
return mWindow.getFloat(mPos, columnIndex);
|
public int | getInt(int columnIndex)
checkPosition();
synchronized(mUpdatedRows) {
if (isFieldUpdated(columnIndex)) {
Number value = (Number)getUpdatedField(columnIndex);
return value.intValue();
}
}
return mWindow.getInt(mPos, columnIndex);
|
public long | getLong(int columnIndex)
checkPosition();
synchronized(mUpdatedRows) {
if (isFieldUpdated(columnIndex)) {
Number value = (Number)getUpdatedField(columnIndex);
return value.longValue();
}
}
return mWindow.getLong(mPos, columnIndex);
|
public short | getShort(int columnIndex)
checkPosition();
synchronized(mUpdatedRows) {
if (isFieldUpdated(columnIndex)) {
Number value = (Number)getUpdatedField(columnIndex);
return value.shortValue();
}
}
return mWindow.getShort(mPos, columnIndex);
|
public java.lang.String | getString(int columnIndex)
checkPosition();
synchronized(mUpdatedRows) {
if (isFieldUpdated(columnIndex)) {
return (String)getUpdatedField(columnIndex);
}
}
return mWindow.getString(mPos, columnIndex);
|
public CursorWindow | getWindow()
return mWindow;
|
public boolean | hasWindow()
return mWindow != null;
|
public boolean | isBlob(int columnIndex)
checkPosition();
synchronized(mUpdatedRows) {
if (isFieldUpdated(columnIndex)) {
Object object = getUpdatedField(columnIndex);
return object == null || object instanceof byte[];
}
}
return mWindow.isBlob(mPos, columnIndex);
|
public boolean | isNull(int columnIndex)
checkPosition();
synchronized(mUpdatedRows) {
if (isFieldUpdated(columnIndex)) {
return getUpdatedField(columnIndex) == null;
}
}
return mWindow.isNull(mPos, columnIndex);
|
public void | setWindow(CursorWindow window)Set a new cursor window to cursor, usually set a remote cursor window
if (mWindow != null) {
mWindow.close();
}
mWindow = window;
|