public class RDBMSQueryResult extends Object implements QueryResultIF
Modifier and Type | Field and Description |
---|---|
protected boolean |
lookup_identities |
protected ResultSet |
rs |
protected SQLStatementIF |
stm |
protected TicketIF |
ticket |
Constructor and Description |
---|
RDBMSQueryResult(SQLStatementIF stm,
TicketIF ticket,
ResultSet rs) |
RDBMSQueryResult(SQLStatementIF stm,
TicketIF ticket,
ResultSet rs,
boolean lookup_identities) |
Modifier and Type | Method and Description |
---|---|
void |
close()
INTERNAL: Closes the query result, which allows it to free its
resources.
|
protected void |
finalize() |
String |
getColumnName(int ix)
PUBLIC: Returns the name of the given column.
|
String[] |
getColumnNames()
PUBLIC: Returns the names of the columns.
|
Object |
getValue(int index)
INTERNAL: Get the value of the field with the specified index
from the current result row.
|
Object[] |
getValues()
INTERNAL: Get the values of all fields from the current result
row.
|
Object[] |
getValues(Object[] values)
INTERNAL: Reads the values of all fields from the current result
row into the specified array.
|
int |
getWidth()
INTERNAL: Returns the number of fields that each row in the query
result set have.
|
boolean |
next()
INTERNAL: Skip to the next row in the query result set.
|
protected SQLStatementIF stm
protected TicketIF ticket
protected ResultSet rs
protected boolean lookup_identities
public RDBMSQueryResult(SQLStatementIF stm, TicketIF ticket, ResultSet rs)
public RDBMSQueryResult(SQLStatementIF stm, TicketIF ticket, ResultSet rs, boolean lookup_identities)
public int getWidth()
QueryResultIF
getWidth
in interface QueryResultIF
public String[] getColumnNames()
QueryResultIF
getColumnNames
in interface QueryResultIF
public String getColumnName(int ix)
QueryResultIF
getColumnName
in interface QueryResultIF
public Object getValue(int index)
QueryResultIF
getValue
in interface QueryResultIF
public Object[] getValues()
QueryResultIF
getValues
in interface QueryResultIF
public Object[] getValues(Object[] values)
QueryResultIF
getValues
in interface QueryResultIF
public boolean next()
QueryResultIF
next
in interface QueryResultIF
public void close()
QueryResultIF
close
in interface QueryResultIF