public class SelectResult
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
close() |
static SelectResult |
create(Expr[] exprs,
com.caucho.db.sql.Order order) |
int |
findColumnIndex(java.lang.String name)
Returns the column index with the given name.
|
java.io.InputStream |
getBinaryStream(int index)
Returns the blob value of the given index.
|
java.sql.Blob |
getBlob(int index)
Returns the blob value of the given index.
|
byte[] |
getBytes(int index)
Returns the string value of the given index.
|
java.sql.Clob |
getClob(int index)
Returns the clob value of the given index.
|
long |
getDate(int index) |
double |
getDouble(int index)
Returns a double value from this column.
|
Expr[] |
getExprs()
Returns the expressions.
|
int |
getInt(int index)
Returns the integer value of the column.
|
long |
getLong(int index)
Returns the long value of the column.
|
java.lang.String |
getString(int index)
Returns the string value of the given index.
|
boolean |
next()
Moves to the next row, returning true if the row has data.
|
void |
startRow()
Starts a row
|
boolean |
wasNull()
Returns true if the last column read was null.
|
void |
write(byte[] buffer,
int offset,
int length)
Writes a buffer
|
void |
write(int value)
Writes the next byte.
|
void |
writeBinary(byte[] buffer,
int offset,
int length)
Writes a binary.
|
void |
writeBlob(byte[] buffer,
int offset)
Writes a blob.
|
void |
writeBlock(int code,
byte[] buffer,
int offset,
int length)
Writes a string.
|
void |
writeDate(long value)
Writes a date.
|
void |
writeDouble(double dValue)
Writes a double.
|
void |
writeInt(int value)
Writes an long.
|
void |
writeLong(long value)
Writes a long.
|
void |
writeNull()
Writes a null.
|
void |
writeShort(int value)
Writes a short
|
void |
writeString(byte[] buffer,
int offset,
int stringLength)
Writes a string.
|
void |
writeString(java.lang.String s)
Writes a string.
|
public static SelectResult create(Expr[] exprs, com.caucho.db.sql.Order order)
public boolean next() throws java.sql.SQLException
java.sql.SQLException
public Expr[] getExprs()
public int findColumnIndex(java.lang.String name) throws java.sql.SQLException
java.sql.SQLException
public java.lang.String getString(int index) throws java.sql.SQLException
java.sql.SQLException
public byte[] getBytes(int index) throws java.sql.SQLException
java.sql.SQLException
public int getInt(int index) throws java.sql.SQLException
java.sql.SQLException
public long getLong(int index) throws java.sql.SQLException
java.sql.SQLException
public double getDouble(int index) throws java.sql.SQLException
java.sql.SQLException
public long getDate(int index) throws java.sql.SQLException
java.sql.SQLException
public java.io.InputStream getBinaryStream(int index) throws java.sql.SQLException
java.sql.SQLException
public java.sql.Blob getBlob(int index) throws java.sql.SQLException
java.sql.SQLException
public java.sql.Clob getClob(int index) throws java.sql.SQLException
java.sql.SQLException
public boolean wasNull()
public void startRow()
public void writeNull()
public void writeString(java.lang.String s)
public void writeString(byte[] buffer, int offset, int stringLength)
public void writeBinary(byte[] buffer, int offset, int length)
public void writeBlock(int code, byte[] buffer, int offset, int length)
public void writeDouble(double dValue)
public void writeLong(long value)
public void writeDate(long value)
public void writeInt(int value)
public void writeShort(int value)
public void writeBlob(byte[] buffer, int offset)
public void write(int value)
public void write(byte[] buffer, int offset, int length)
public void close()