Methods Summary |
---|
public boolean | absolute(int row)
if (tr == null) {
return false;
}
if (row < 0) {
row = tr.nrows + 1 + row;
}
row--;
if (row < 0 || row > tr.nrows) {
return false;
}
this.row = row;
return true;
|
public void | afterLast()
if (tr == null) {
return;
}
row = tr.nrows;
|
public void | beforeFirst()
if (tr == null) {
return;
}
row = -1;
|
public void | cancelRowUpdates()
throw new SQLException("not supported");
|
public void | clearWarnings()
throw new SQLException("not supported");
|
public void | close()
s = null;
tr = null;
lastg = null;
row = -1;
|
public void | deleteRow()
throw new SQLException("not supported");
|
public int | findColumn(java.lang.String columnName)
JDBCResultSetMetaData m = (JDBCResultSetMetaData) getMetaData();
return m.findColByName(columnName);
|
public boolean | first()
if (tr == null || tr.nrows <= 0) {
return false;
}
row = 0;
return true;
|
public java.sql.Array | getArray(int columnIndex)
throw new SQLException("not supported");
|
public java.sql.Array | getArray(java.lang.String columnIndex)
throw new SQLException("not supported");
|
public java.io.InputStream | getAsciiStream(java.lang.String columnName)
throw new SQLException("not supported");
|
public java.io.InputStream | getAsciiStream(int columnIndex)
throw new SQLException("not supported");
|
public java.math.BigDecimal | getBigDecimal(java.lang.String columnName)
throw new SQLException("not supported");
|
public java.math.BigDecimal | getBigDecimal(java.lang.String columnName, int scale)
throw new SQLException("not supported");
|
public java.math.BigDecimal | getBigDecimal(int columnIndex)
throw new SQLException("not supported");
|
public java.math.BigDecimal | getBigDecimal(int columnIndex, int scale)
throw new SQLException("not supported");
|
public java.io.InputStream | getBinaryStream(int columnIndex)
throw new SQLException("not supported");
|
public java.io.InputStream | getBinaryStream(java.lang.String columnName)
throw new SQLException("not supported");
|
public java.sql.Blob | getBlob(int columnIndex)
throw new SQLException("not supported");
|
public java.sql.Blob | getBlob(java.lang.String columnIndex)
throw new SQLException("not supported");
|
public boolean | getBoolean(int columnIndex)
throw new SQLException("not supported");
|
public boolean | getBoolean(java.lang.String columnName)
throw new SQLException("not supported");
|
public byte | getByte(int columnIndex)
throw new SQLException("not supported");
|
public byte | getByte(java.lang.String columnName)
throw new SQLException("not supported");
|
public byte[] | getBytes(int columnIndex)
if (tr == null || columnIndex < 1 || columnIndex > tr.ncolumns) {
throw new SQLException("column " + columnIndex + " not found");
}
byte ret[] = null;
String rd[] = (String []) tr.rows.elementAt(row);
lastg = rd[columnIndex - 1];
if (lastg != null) {
ret = SQLite.StringEncoder.decode(lastg);
}
return ret;
|
public byte[] | getBytes(java.lang.String columnName)
int col = findColumn(columnName);
return getBytes(col);
|
public java.io.Reader | getCharacterStream(int columnIndex)
throw new SQLException("not supported");
|
public java.io.Reader | getCharacterStream(java.lang.String columnName)
throw new SQLException("not supported");
|
public java.sql.Clob | getClob(int columnIndex)
throw new SQLException("not supported");
|
public java.sql.Clob | getClob(java.lang.String columnIndex)
throw new SQLException("not supported");
|
public int | getConcurrency()
return CONCUR_READ_ONLY;
|
public java.lang.String | getCursorName()
return null;
|
public java.sql.Date | getDate(int columnIndex)
return internalGetDate(columnIndex, null);
|
public java.sql.Date | getDate(java.lang.String columnName)
int col = findColumn(columnName);
return getDate(col);
|
public java.sql.Date | getDate(int columnIndex, java.util.Calendar cal)
return internalGetDate(columnIndex, cal);
|
public java.sql.Date | getDate(java.lang.String columnName, java.util.Calendar cal)
int col = findColumn(columnName);
return getDate(col, cal);
|
public double | getDouble(int columnIndex)
Double d = internalGetDouble(columnIndex);
if (d != null) {
return d.doubleValue();
}
return 0;
|
public double | getDouble(java.lang.String columnName)
int col = findColumn(columnName);
return getDouble(col);
|
public int | getFetchDirection()
throw new SQLException("not supported");
|
public int | getFetchSize()
throw new SQLException("not supported");
|
public float | getFloat(int columnIndex)
Float f = internalGetFloat(columnIndex);
if (f != null) {
return f.floatValue();
}
return 0;
|
public float | getFloat(java.lang.String columnName)
int col = findColumn(columnName);
return getFloat(col);
|
public int | getInt(int columnIndex)
Integer i = internalGetInt(columnIndex);
if (i != null) {
return i.intValue();
}
return 0;
|
public int | getInt(java.lang.String columnName)
int col = findColumn(columnName);
return getInt(col);
|
public long | getLong(int columnIndex)
Long l = internalGetLong(columnIndex);
if (l != null) {
return l.longValue();
}
return 0;
|
public long | getLong(java.lang.String columnName)
int col = findColumn(columnName);
return getLong(col);
|
public java.sql.ResultSetMetaData | getMetaData()
if (m == null) {
m = new JDBCResultSetMetaData(this);
}
return m;
|
public java.lang.Object | getObject(int columnIndex)
if (tr == null || columnIndex < 1 || columnIndex > tr.ncolumns) {
throw new SQLException("column " + columnIndex + " not found");
}
String rd[] = (String []) tr.rows.elementAt(row);
lastg = rd[columnIndex - 1];
Object ret = lastg;
if (tr instanceof TableResultX) {
switch (((TableResultX) tr).sql_type[columnIndex - 1]) {
case Types.SMALLINT:
ret = internalGetShort(columnIndex);
break;
case Types.INTEGER:
ret = internalGetInt(columnIndex);
break;
case Types.DOUBLE:
ret = internalGetDouble(columnIndex);
break;
case Types.FLOAT:
ret = internalGetFloat(columnIndex);
break;
case Types.BIGINT:
ret = internalGetLong(columnIndex);
break;
case Types.BINARY:
case Types.VARBINARY:
case Types.LONGVARBINARY:
ret = getBytes(columnIndex);
break;
case Types.NULL:
ret = null;
break;
/* defaults to String below */
}
}
return ret;
|
public java.lang.Object | getObject(java.lang.String columnName)
int col = findColumn(columnName);
return getObject(col);
|
public java.lang.Object | getObject(int columnIndex, java.util.Map map)
throw new SQLException("not supported");
|
public java.lang.Object | getObject(java.lang.String columnIndex, java.util.Map map)
throw new SQLException("not supported");
|
public java.sql.Ref | getRef(int columnIndex)
throw new SQLException("not supported");
|
public java.sql.Ref | getRef(java.lang.String columnIndex)
throw new SQLException("not supported");
|
public int | getRow()
if (tr == null) {
throw new SQLException("no rows");
}
return row + 1;
|
public short | getShort(int columnIndex)
Short s = internalGetShort(columnIndex);
if (s != null) {
return s.shortValue();
}
return 0;
|
public short | getShort(java.lang.String columnName)
int col = findColumn(columnName);
return getShort(col);
|
public java.sql.Statement | getStatement()
if (s == null) {
throw new SQLException("stale result set");
}
return s;
|
public java.lang.String | getString(int columnIndex)
if (tr == null || columnIndex < 1 || columnIndex > tr.ncolumns) {
throw new SQLException("column " + columnIndex + " not found");
}
String rd[] = (String []) tr.rows.elementAt(row);
lastg = rd[columnIndex - 1];
return lastg;
|
public java.lang.String | getString(java.lang.String columnName)
int col = findColumn(columnName);
return getString(col);
|
public java.sql.Time | getTime(int columnIndex)
return internalGetTime(columnIndex, null);
|
public java.sql.Time | getTime(java.lang.String columnName)
int col = findColumn(columnName);
return getTime(col);
|
public java.sql.Time | getTime(int columnIndex, java.util.Calendar cal)
return internalGetTime(columnIndex, cal);
|
public java.sql.Time | getTime(java.lang.String columnName, java.util.Calendar cal)
int col = findColumn(columnName);
return getTime(col, cal);
|
public java.sql.Timestamp | getTimestamp(int columnIndex)
return internalGetTimestamp(columnIndex, null);
|
public java.sql.Timestamp | getTimestamp(java.lang.String columnName)
int col = findColumn(columnName);
return getTimestamp(col);
|
public java.sql.Timestamp | getTimestamp(int columnIndex, java.util.Calendar cal)
return internalGetTimestamp(columnIndex, cal);
|
public java.sql.Timestamp | getTimestamp(java.lang.String columnName, java.util.Calendar cal)
int col = findColumn(columnName);
return getTimestamp(col, cal);
|
public int | getType()
return TYPE_SCROLL_INSENSITIVE;
|
public java.net.URL | getURL(int colIndex)
if (tr == null || colIndex < 1 || colIndex > tr.ncolumns) {
throw new SQLException("column " + colIndex + " not found");
}
String rd[] = (String []) tr.rows.elementAt(row);
lastg = rd[colIndex - 1];
java.net.URL url = null;
if (lastg == null) {
return url;
}
try {
url = new java.net.URL(lastg);
} catch (java.lang.Exception e) {
url = null;
}
return url;
|
public java.net.URL | getURL(java.lang.String colIndex)
int col = findColumn(colIndex);
return getURL(col);
|
public java.io.InputStream | getUnicodeStream(int columnIndex)
throw new SQLException("not supported");
|
public java.io.InputStream | getUnicodeStream(java.lang.String columnName)
throw new SQLException("not supported");
|
public java.sql.SQLWarning | getWarnings()
throw new SQLException("not supported");
|
public void | insertRow()
throw new SQLException("not supported");
|
private java.sql.Date | internalGetDate(int columnIndex, java.util.Calendar cal)
if (tr == null || columnIndex < 1 || columnIndex > tr.ncolumns) {
throw new SQLException("column " + columnIndex + " not found");
}
String rd[] = (String []) tr.rows.elementAt(row);
lastg = rd[columnIndex - 1];
try {
return java.sql.Date.valueOf(lastg);
} catch (java.lang.Exception e) {
lastg = null;
}
return null;
|
private java.lang.Double | internalGetDouble(int columnIndex)
if (tr == null || columnIndex < 1 || columnIndex > tr.ncolumns) {
throw new SQLException("column " + columnIndex + " not found");
}
String rd[] = (String []) tr.rows.elementAt(row);
lastg = rd[columnIndex - 1];
try {
return Double.valueOf(lastg);
} catch (java.lang.Exception e) {
lastg = null;
}
return null;
|
private java.lang.Float | internalGetFloat(int columnIndex)
if (tr == null || columnIndex < 1 || columnIndex > tr.ncolumns) {
throw new SQLException("column " + columnIndex + " not found");
}
String rd[] = (String []) tr.rows.elementAt(row);
lastg = rd[columnIndex - 1];
try {
return Float.valueOf(lastg);
} catch (java.lang.Exception e) {
lastg = null;
}
return null;
|
private java.lang.Integer | internalGetInt(int columnIndex)
if (tr == null || columnIndex < 1 || columnIndex > tr.ncolumns) {
throw new SQLException("column " + columnIndex + " not found");
}
String rd[] = (String []) tr.rows.elementAt(row);
lastg = rd[columnIndex - 1];
try {
return Integer.valueOf(lastg);
} catch (java.lang.Exception e) {
lastg = null;
}
return null;
|
private java.lang.Long | internalGetLong(int columnIndex)
if (tr == null || columnIndex < 1 || columnIndex > tr.ncolumns) {
throw new SQLException("column " + columnIndex + " not found");
}
String rd[] = (String []) tr.rows.elementAt(row);
lastg = rd[columnIndex - 1];
try {
return Long.valueOf(lastg);
} catch (java.lang.Exception e) {
lastg = null;
}
return null;
|
private java.lang.Short | internalGetShort(int columnIndex)
if (tr == null || columnIndex < 1 || columnIndex > tr.ncolumns) {
throw new SQLException("column " + columnIndex + " not found");
}
String rd[] = (String []) tr.rows.elementAt(row);
lastg = rd[columnIndex - 1];
try {
return Short.valueOf(lastg);
} catch (java.lang.Exception e) {
lastg = null;
}
return null;
|
private java.sql.Time | internalGetTime(int columnIndex, java.util.Calendar cal)
if (tr == null || columnIndex < 1 || columnIndex > tr.ncolumns) {
throw new SQLException("column " + columnIndex + " not found");
}
String rd[] = (String []) tr.rows.elementAt(row);
lastg = rd[columnIndex - 1];
try {
return java.sql.Time.valueOf(lastg);
} catch (java.lang.Exception e) {
lastg = null;
}
return null;
|
private java.sql.Timestamp | internalGetTimestamp(int columnIndex, java.util.Calendar cal)
if (tr == null || columnIndex < 1 || columnIndex > tr.ncolumns) {
throw new SQLException("column " + columnIndex + " not found");
}
String rd[] = (String []) tr.rows.elementAt(row);
lastg = rd[columnIndex - 1];
try {
return java.sql.Timestamp.valueOf(lastg);
} catch (java.lang.Exception e) {
lastg = null;
}
return null;
|
public boolean | isAfterLast()
if (tr == null || tr.nrows <= 0) {
return false;
}
return row >= tr.nrows;
|
public boolean | isBeforeFirst()
if (tr == null || tr.nrows <= 0) {
return false;
}
return row < 0;
|
public boolean | isFirst()
if (tr == null) {
return true;
}
return row == 0;
|
public boolean | isLast()
if (tr == null) {
return true;
}
return row == tr.nrows - 1;
|
public boolean | last()
if (tr == null || tr.nrows <= 0) {
return false;
}
row = tr.nrows -1;
return true;
|
public void | moveToCurrentRow()
throw new SQLException("not supported");
|
public void | moveToInsertRow()
throw new SQLException("not supported");
|
public boolean | next()
if (tr == null) {
return false;
}
row++;
return row < tr.nrows;
|
public boolean | previous()
if (tr == null) {
return false;
}
if (row >= 0) {
row--;
}
return row >= 0;
|
public void | refreshRow()
throw new SQLException("not supported");
|
public boolean | relative(int row)
if (tr == null) {
return false;
}
if (this.row + row < 0 || this.row + row >= tr.nrows) {
return false;
}
this.row += row;
return true;
|
public boolean | rowDeleted()
throw new SQLException("not supported");
|
public boolean | rowInserted()
throw new SQLException("not supported");
|
public boolean | rowUpdated()
throw new SQLException("not supported");
|
public void | setFetchDirection(int dir)
throw new SQLException("not supported");
|
public void | setFetchSize(int fsize)
throw new SQLException("not supported");
|
public void | updateArray(int colIndex, java.sql.Array x)
throw new SQLException("not supported");
|
public void | updateArray(java.lang.String colIndex, java.sql.Array x)
throw new SQLException("not supported");
|
public void | updateAsciiStream(int colIndex, java.io.InputStream in, int s)
throw new SQLException("not supported");
|
public void | updateAsciiStream(java.lang.String colIndex, java.io.InputStream in, int s)
throw new SQLException("not supported");
|
public void | updateBigDecimal(int colIndex, java.math.BigDecimal f)
throw new SQLException("not supported");
|
public void | updateBigDecimal(java.lang.String colIndex, java.math.BigDecimal f)
throw new SQLException("not supported");
|
public void | updateBinaryStream(int colIndex, java.io.InputStream in, int s)
throw new SQLException("not supported");
|
public void | updateBinaryStream(java.lang.String colIndex, java.io.InputStream in, int s)
throw new SQLException("not supported");
|
public void | updateBlob(int colIndex, java.sql.Blob x)
throw new SQLException("not supported");
|
public void | updateBlob(java.lang.String colIndex, java.sql.Blob x)
throw new SQLException("not supported");
|
public void | updateBoolean(int colIndex, boolean b)
throw new SQLException("not supported");
|
public void | updateBoolean(java.lang.String colIndex, boolean b)
throw new SQLException("not supported");
|
public void | updateByte(int colIndex, byte b)
throw new SQLException("not supported");
|
public void | updateByte(java.lang.String colIndex, byte b)
throw new SQLException("not supported");
|
public void | updateBytes(int colIndex, byte[] s)
throw new SQLException("not supported");
|
public void | updateBytes(java.lang.String colIndex, byte[] s)
throw new SQLException("not supported");
|
public void | updateCharacterStream(int colIndex, java.io.Reader in, int s)
throw new SQLException("not supported");
|
public void | updateCharacterStream(java.lang.String colIndex, java.io.Reader in, int s)
throw new SQLException("not supported");
|
public void | updateClob(int colIndex, java.sql.Clob x)
throw new SQLException("not supported");
|
public void | updateClob(java.lang.String colIndex, java.sql.Clob x)
throw new SQLException("not supported");
|
public void | updateDate(int colIndex, java.sql.Date d)
throw new SQLException("not supported");
|
public void | updateDate(java.lang.String colIndex, java.sql.Date d)
throw new SQLException("not supported");
|
public void | updateDouble(int colIndex, double f)
throw new SQLException("not supported");
|
public void | updateDouble(java.lang.String colIndex, double f)
throw new SQLException("not supported");
|
public void | updateFloat(int colIndex, float f)
throw new SQLException("not supported");
|
public void | updateFloat(java.lang.String colIndex, float f)
throw new SQLException("not supported");
|
public void | updateInt(int colIndex, int b)
throw new SQLException("not supported");
|
public void | updateInt(java.lang.String colIndex, int b)
throw new SQLException("not supported");
|
public void | updateLong(int colIndex, long b)
throw new SQLException("not supported");
|
public void | updateLong(java.lang.String colIndex, long b)
throw new SQLException("not supported");
|
public void | updateNull(java.lang.String colIndex)
throw new SQLException("not supported");
|
public void | updateNull(int colIndex)
throw new SQLException("not supported");
|
public void | updateObject(int colIndex, java.lang.Object obj)
throw new SQLException("not supported");
|
public void | updateObject(int colIndex, java.lang.Object obj, int s)
throw new SQLException("not supported");
|
public void | updateObject(java.lang.String colIndex, java.lang.Object obj)
throw new SQLException("not supported");
|
public void | updateObject(java.lang.String colIndex, java.lang.Object obj, int s)
throw new SQLException("not supported");
|
public void | updateRef(int colIndex, java.sql.Ref x)
throw new SQLException("not supported");
|
public void | updateRef(java.lang.String colIndex, java.sql.Ref x)
throw new SQLException("not supported");
|
public void | updateRow()
throw new SQLException("not supported");
|
public void | updateShort(int colIndex, short b)
throw new SQLException("not supported");
|
public void | updateShort(java.lang.String colIndex, short b)
throw new SQLException("not supported");
|
public void | updateString(int colIndex, java.lang.String s)
throw new SQLException("not supported");
|
public void | updateString(java.lang.String colIndex, java.lang.String s)
throw new SQLException("not supported");
|
public void | updateTime(int colIndex, java.sql.Time t)
throw new SQLException("not supported");
|
public void | updateTime(java.lang.String colIndex, java.sql.Time t)
throw new SQLException("not supported");
|
public void | updateTimestamp(int colIndex, java.sql.Timestamp t)
throw new SQLException("not supported");
|
public void | updateTimestamp(java.lang.String colIndex, java.sql.Timestamp t)
throw new SQLException("not supported");
|
public boolean | wasNull()
return lastg == null;
|