|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.rocketsoftware.mvapi.ResultSet.AbstractResultSet com.rocketsoftware.mvapi.ResultSet.MVResultSet
public class MVResultSet
Provides an implementation of Java.sql.ResultSet for handling Multivalue result sets.
Field Summary |
---|
Fields inherited from interface java.sql.ResultSet |
---|
CLOSE_CURSORS_AT_COMMIT, CONCUR_READ_ONLY, CONCUR_UPDATABLE, FETCH_FORWARD, FETCH_REVERSE, FETCH_UNKNOWN, HOLD_CURSORS_OVER_COMMIT, TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, TYPE_SCROLL_SENSITIVE |
Constructor Summary | |
---|---|
MVResultSet()
Construct an empty MVResultSet. |
|
MVResultSet(java.lang.String result)
Construct an MVResultSet from the result string. |
Method Summary | |
---|---|
void |
close()
Closes the result set. |
boolean |
first()
Moves the cursor to the first row in this ResultSet object. |
int |
getColumnCount()
Returns the number of columns in the current result set. |
java.lang.String[] |
getColumns()
Returns the column names in the current result set. |
java.lang.String |
getCurrentRow()
Returns the current row. |
int |
getRow()
Retrieves the current row number. |
int |
getRowCount()
Returns the number of rows in this result set. |
java.lang.String[] |
getRows()
Returns the result set. |
java.lang.String |
getString(int columnIndex)
Retrieves the value of the designated column in the current row of this ResultSet object as
a String in the Java programming language. |
java.lang.String |
getString(java.lang.String columnName)
Retrieves the value of the designated column in the current row of this ResultSet object as
a String in the Java programming language. |
boolean |
isQuery()
Returns true if this result set has been generated from an AQL query. |
boolean |
next()
Moves the cursor down one row from its current position. |
void |
setResults(java.lang.String result)
Populates the result set from the result string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MVResultSet()
public MVResultSet(java.lang.String result) throws MVException
result
- an Attribute mark delimited string.
Each attribute in the result string will generate one row in the MVResultSet.
MVException
Method Detail |
---|
public boolean next() throws MVException
ResultSet
cursor is initially positioned
before the first row; the first call to the method
next
makes the first row the current row; the
second call makes the second row the current row, and so on.
next
in interface java.sql.ResultSet
next
in class AbstractResultSet
true
if the new current row is valid;
false
if there are no more rows
MVException
- if a database access error occurspublic void close() throws MVException
close
in interface java.sql.ResultSet
close
in class AbstractResultSet
MVException
- if a database access error occurspublic java.lang.String getString(java.lang.String columnName) throws MVException
ResultSet
object as
a String
in the Java programming language.
getString
in interface java.sql.ResultSet
getString
in class AbstractResultSet
columnName
- the Column name
MVException
- if current row is not validpublic java.lang.String getString(int columnIndex) throws MVException
ResultSet
object as
a String
in the Java programming language.
getString
in interface java.sql.ResultSet
getString
in class AbstractResultSet
columnIndex
- the first column is 1, the second is 2, ...
MVException
- if current row is not validpublic boolean first() throws MVException
ResultSet
object.
first
in interface java.sql.ResultSet
first
in class AbstractResultSet
true
if the cursor is on a valid row;
false
if there are no rows in the result set
MVException
- if any errors occurpublic int getRow() throws MVException
getRow
in interface java.sql.ResultSet
getRow
in class AbstractResultSet
MVException
- if any errors occurpublic void setResults(java.lang.String result) throws MVException
result
- an Attribute mark delimited string
Each attribute in the result string will generate one row in the MVResultSet.
MVException
- if any errors occurpublic int getRowCount()
public java.lang.String[] getRows()
public java.lang.String getCurrentRow() throws MVException
MVException
- if any errors occurpublic int getColumnCount()
public java.lang.String[] getColumns()
public boolean isQuery()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |