|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Vector
com.sybase.collections.ObjectList
com.sybase.persistence.QueryResultSet
public class QueryResultSet
A QueryResultSet object represents the result set from a dynamic query. This type of object is returned by a package's database class method executeQuery, and by MBO named query methods that return result sets instead of MBO lists. A QueryResultSet contains attributes representing the names and types of the columns selected in the query that produced the result set.
Field Summary | |
---|---|
protected StringList |
__columnNames
|
protected ObjectList |
__columnTypes
|
protected DataValue |
__columnValue
|
protected ColumnIndexMap |
__nameToIndex
|
protected int |
__rowIndex
|
Fields inherited from class java.util.Vector |
---|
capacityIncrement, elementCount, elementData |
Constructor Summary | |
---|---|
QueryResultSet()
Initializes a new instance of the QueryResultSet class. |
|
QueryResultSet(int capacity)
Initializes a new instance of the QueryResultSet class with specified capacity. |
Method Summary | |
---|---|
boolean |
absolute(int index)
Moves to the specified row of the result set and returns true if succeed. |
int |
add(DataValueList x)
Sybase internal use only. |
void |
afterLast()
Moves the cursor to the end of this ResultSet object, just after the last row . |
void |
beforeFirst()
Moves the cursor to the front of this ResultSet object, just before the first row. |
void |
checkIndex(int index)
Sybase internal use only. |
int |
findColumn(java.lang.String name)
Sybase internal use only. |
QueryResultSet |
finishInit()
Sybase internal use only. |
boolean |
first()
Moves the cursor to the first row in this ResultSet object. |
byte[] |
getBinary(int index)
Retrieves the value of the designated column in the current row of this ResultSet object as a byte array. |
byte[] |
getBinaryByName(java.lang.String name)
Retrieves the value of the designated column by column name in the current row of this ResultSet object as a byte array. |
boolean |
getBoolean(int index)
Retrieves the value of the designated column in the current row of this ResultSet object as a boolean. |
boolean |
getBooleanByName(java.lang.String name)
Retrieves the value of the designated column by column name in the current row of this ResultSet object as a boolean. |
byte |
getByte(int index)
Retrieves the value of the designated column in the current row of this ResultSet object as a byte. |
byte |
getByteByName(java.lang.String name)
Retrieves the value of the designated column by column name in the current row of this ResultSet object as a byte. |
char |
getChar(int index)
Retrieves the value of the designated column in the current row of this ResultSet object as a char. |
char |
getCharByName(java.lang.String name)
Retrieves the value of the designated column by column name in the current row of this ResultSet object as a char. |
int |
getColumnCount()
Sybase internal use only. |
java.lang.String |
getColumnName(int index)
Gets name of the specified column. |
StringList |
getColumnNames()
Gets the names of the columns selected in the query. |
DataType |
getColumnType(int index)
Gets type of the specified column. |
ObjectList |
getColumnTypes()
Gets the types of the columns selected in the query. |
DataValue |
getDataValue(int index)
Sybase internal use only. |
DataValue |
getDataValueByName(java.lang.String name)
Sybase internal use only. |
java.util.Date |
getDate(int index)
Retrieves the value of the designated column in the current row of this ResultSet object as a Date object. |
java.util.Date |
getDateByName(java.lang.String name)
Retrieves the value of the designated column by column name in the current row of this ResultSet object as a Date object. |
java.util.Date |
getDateTime(int index)
Retrieves the value of the designated column in the current row of this ResultSet object as a Date object. |
java.util.Date |
getDateTimeByName(java.lang.String name)
Retrieves the value of the designated column by column name in the current row of this ResultSet object as a Date object. |
java.lang.String |
getDecimal(int index)
Retrieves the value of the designated column in the current row of this ResultSet object as a String object. |
java.lang.String |
getDecimalByName(java.lang.String name)
Retrieves the value of the designated column by column name in the current row of this ResultSet object as a String object. |
double |
getDouble(int index)
Retrieves the value of the designated column in the current row of this ResultSet object as a double. |
double |
getDoubleByName(java.lang.String name)
Retrieves the value of the designated column by column name in the current row of this ResultSet object as a doulbe. |
float |
getFloat(int index)
Retrieves the value of the designated column in the current row of this ResultSet object as a float. |
float |
getFloatByName(java.lang.String name)
Retrieves the value of the designated column by column name in the current row of this ResultSet object as a float. |
int |
getInt(int index)
Retrieves the value of the designated column in the current row of this ResultSet object as an int. |
int |
getIntByName(java.lang.String name)
Retrieves the value of the designated column by column name in the current row of this ResultSet object as an int. |
java.lang.String |
getInteger(int index)
Retrieves the value of the designated column in the current row of this ResultSet object as a String object. |
java.lang.String |
getIntegerByName(java.lang.String name)
Retrieves the value of the designated column by column name in the current row of this ResultSet object as a String object. |
long |
getLong(int index)
Retrieves the value of the designated column in the current row of this ResultSet object as a long. |
long |
getLongByName(java.lang.String name)
Retrieves the value of the designated column by column name in the current row of this ResultSet object as a long. |
int |
getRow()
Sybase internal use only. |
int |
getRowCount()
Gets the row count of the query result. |
short |
getShort(int index)
Retrieves the value of the designated column in the current row of this ResultSet object as a short. |
short |
getShortByName(java.lang.String name)
Retrieves the value of the designated column by column name in the current row of this ResultSet object as a short. |
java.lang.String |
getString(int index)
Retrieves the value of the designated column in the current row of this ResultSet object as a String object. |
java.lang.String |
getStringByName(java.lang.String name)
Retrieves the value of the designated column by column name in the current row of this ResultSet object as a String object. |
java.util.Date |
getTime(int index)
Retrieves the value of the designated column in the current row of this ResultSet object as a Date object. |
java.util.Date |
getTimeByName(java.lang.String name)
Retrieves the value of the designated column by column name in the current row of this ResultSet object as a Date object. |
boolean |
last()
Moves the cursor to the last row in this ResultSet object.. |
boolean |
next()
Moves the cursor down one row from its current position. |
void |
populate(ianywhere.ultralitej.ResultSet rs)
|
boolean |
previous()
Moves the cursor to the previous row in this ResultSet object. |
boolean |
relative(int delta)
Moves the cursor a relative number of rows, either positive or negative. |
void |
setColumnNames(StringList _columnNames)
Sets the names of the columns selected in the query. |
void |
setColumnTypes(ObjectList _columnTypes)
Sets the types of the columns selected in the query. |
boolean |
wasNull()
Returns true if current column value is null. |
Methods inherited from class com.sybase.collections.ObjectList |
---|
add, addThis, count, getByIndex, insert, item, remove, slice |
Methods inherited from class java.util.Vector |
---|
addElement, capacity, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, removeAllElements, removeElement, removeElementAt, setElementAt, setSize, size, toString, trimToSize |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected StringList __columnNames
protected ObjectList __columnTypes
protected ColumnIndexMap __nameToIndex
protected int __rowIndex
protected DataValue __columnValue
Constructor Detail |
---|
public QueryResultSet()
public QueryResultSet(int capacity)
Method Detail |
---|
public StringList getColumnNames()
public void setColumnNames(StringList _columnNames)
public ObjectList getColumnTypes()
public void setColumnTypes(ObjectList _columnTypes)
public int findColumn(java.lang.String name)
public int getColumnCount()
public java.lang.String getColumnName(int index)
public DataType getColumnType(int index)
public int getRowCount()
public int getRow()
public boolean absolute(int index)
public boolean relative(int delta)
public boolean next()
public boolean previous()
public void beforeFirst()
public void afterLast()
public boolean first()
public boolean last()
public boolean getBoolean(int index)
public java.lang.String getString(int index)
public byte[] getBinary(int index)
public char getChar(int index)
public byte getByte(int index)
public short getShort(int index)
public int getInt(int index)
public long getLong(int index)
public java.lang.String getInteger(int index)
public java.lang.String getDecimal(int index)
public float getFloat(int index)
public double getDouble(int index)
public java.util.Date getDate(int index)
public java.util.Date getTime(int index)
public java.util.Date getDateTime(int index)
public DataValue getDataValue(int index)
public boolean getBooleanByName(java.lang.String name)
name
- Column namepublic java.lang.String getStringByName(java.lang.String name)
name
- Column namepublic byte[] getBinaryByName(java.lang.String name)
name
- Column namepublic char getCharByName(java.lang.String name)
name
- Column namepublic byte getByteByName(java.lang.String name)
name
- Column namepublic short getShortByName(java.lang.String name)
name
- Column namepublic int getIntByName(java.lang.String name)
name
- Column namepublic long getLongByName(java.lang.String name)
name
- Column namepublic java.lang.String getIntegerByName(java.lang.String name)
name
- Column namepublic java.lang.String getDecimalByName(java.lang.String name)
name
- Column namepublic float getFloatByName(java.lang.String name)
name
- Column namepublic double getDoubleByName(java.lang.String name)
name
- Column namepublic java.util.Date getDateByName(java.lang.String name)
name
- Column namepublic java.util.Date getTimeByName(java.lang.String name)
name
- Column namepublic java.util.Date getDateTimeByName(java.lang.String name)
name
- Column namepublic DataValue getDataValueByName(java.lang.String name)
public boolean wasNull()
public void checkIndex(int index)
public QueryResultSet finishInit()
public int add(DataValueList x)
public void populate(ianywhere.ultralitej.ResultSet rs) throws ianywhere.ultralitej.ULjException
ianywhere.ultralitej.ULjException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |