|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A sequence of XQuery values representing the result of evaluating a single XQuery statement.
The result sequence is used as an Iterator which retrieves the values sequentially in the order of evaluation by the XQuery.
When retrieving the sequence values as Java types, maximum fidelity is preserved whenever possible.
| Field Summary | |
static int |
XDBC_AnyURI
Constant indicating the XML Schema type AnyURI |
static int |
XDBC_Base64Binary
Constant indicating the XML Schema type Base64Binary |
static int |
XDBC_Binary
Constant indicating the special type Binary |
static int |
XDBC_Boolean
Constant indicating the XML Schema type Boolean |
static int |
XDBC_CONCUR_READ_ONLY
Constant indicating the concurrency mode for an XDBCResultSequence containing items that can NOT be updated through the result sequence. |
static int |
XDBC_CONCUR_UPDATABLE
Constant indicating the concurrency mode for an XDBCResultSequence containing items that may be updated through the result sequence. |
static int |
XDBC_Date
Constant indicating the XML Schema type Date |
static int |
XDBC_DateTime
Constant indicating the XML Schema type DateTime |
static int |
XDBC_DayTimeDuration
Constant indicating the XML Schema type Schema |
static int |
XDBC_Decimal
Constant indicating the XML Schema type Decimal |
static int |
XDBC_Double
Constant indicating the XML Schema type Double |
static int |
XDBC_Duration
Constant indicating the XML Schema type Duration |
static int |
XDBC_Float
Constant indicating the XML Schema type Float |
static int |
XDBC_GDay
Constant indicating the XML Schema type GDay |
static int |
XDBC_GMonth
Constant indicating the XML Schema type GMonth |
static int |
XDBC_GMonthDay
Constant indicating the XML Schema type GMonthDay |
static int |
XDBC_GYear
Constant indicating the XML Schema type GYear |
static int |
XDBC_GYearMonth
Constant indicating the XML Schema type GYearMonth |
static int |
XDBC_HexBinary
Constant indicating the XML Schema type HexBinary |
static int |
XDBC_Integer
Constant indicating the XML Schema type Integer |
static int |
XDBC_Node
Constant indicating the XML Schema type Node |
static int |
XDBC_QName
Constant indicating the XML Schema type QName |
static int |
XDBC_String
Constant indicating the XML Schema type String |
static int |
XDBC_Text
Constant indicating the special type Text |
static int |
XDBC_Time
Constant indicating the XML Schema type Time |
static int |
XDBC_YearMonthDuration
Constant indicating the XML Schema type YearMonthDuration |
| Method Summary | |
void |
clearWarnings()
Clear all the warnings reported on this XQuery statement. |
void |
close()
Releases this XDBCResultSequence object's database and XDBC resources immediately instead of waiting for this to be done by the Java runtime. |
boolean |
get_boolean()
Returns the item as a Java primitive boolean type. |
Date |
get_Date()
Returns the item as a Java Date type. |
BigDecimal |
get_Decimal()
Returns the item as a Java BigDecimal type. |
double |
get_double()
Returns the item as a Java primitive double type. |
float |
get_float()
Returns the item as a Java primitive float type. |
int |
get_int()
Returns the item as a Java primitive int type. |
long |
get_long()
Returns the item as a Java primitive long type. |
String |
get_String()
Returns the item as a Java String type. |
XDBCSchemaTypes.AnyURI |
getAnyURI()
Schema type item accessor |
XDBCSchemaTypes.Base64Binary |
getBase64Binary()
Schema type item accessor |
XDBCSchemaTypes.Binary |
getBinary()
Special type item accessor |
XDBCSchemaTypes.Boolean |
getBoolean()
Schema type item accessor |
int |
getBufferSize()
Returns the current buffer size, which is the number of bytes that that should be fetched from the database in a single read of results. |
XDBCSchemaTypes.Date |
getDate()
Schema type item accessor |
XDBCSchemaTypes.DateTime |
getDateTime()
Schema type item accessor |
XDBCSchemaTypes.DayTimeDuration |
getDayTimeDuration()
Schema type item accessor |
XDBCSchemaTypes.Decimal |
getDecimal()
Schema type item accessor |
XDBCSchemaTypes.Double |
getDouble()
Schema type item accessor |
XDBCSchemaTypes.Duration |
getDuration()
Schema type item accessor |
XDBCSchemaTypes.Float |
getFloat()
Schema type item accessor |
XDBCSchemaTypes.GDay |
getGDay()
Schema type item accessor |
XDBCSchemaTypes.GMonth |
getGMonth()
Schema type item accessor |
XDBCSchemaTypes.GMonthDay |
getGMonthDay()
Schema type item accessor |
XDBCSchemaTypes.GYear |
getGYear()
Schema type item accessor |
XDBCSchemaTypes.GYearMonth |
getGYearMonth()
Schema type item accessor |
XDBCSchemaTypes.HexBinary |
getHexBinary()
Schema type item accessor |
InputStream |
getInputStream()
Returns a java.io.InputStream that can be used to read the item. |
XDBCSchemaTypes.Integer |
getInteger()
Schema type item accessor |
int |
getItemType()
Returns the type of the current item as a constant integer. |
int |
getNextType()
Returns the type of the next item as a constant integer. |
XDBCSchemaTypes.Node |
getNode()
Schema type item accessor |
XDBCSchemaTypes.QName |
getQName()
Schema type item accessor |
BufferedReader |
getReader()
Returns a java.io.BufferedReader that can be used to read the current sequence item. |
int |
getResultSequenceConcurrency()
Gets the concurrency setting for this XDBCResultSequence object. |
XDBCStatement |
getStatement()
Returns the XDBCStatement object that produced this XDBCResultSequence object. |
XDBCSchemaTypes.String |
getString()
Schema type item accessor |
XDBCSchemaTypes.Text |
getText()
Special type item accessor |
XDBCSchemaTypes.Time |
getTime()
Schema type item accessor |
XDBCWarning |
getWarnings()
Retrieves the warnings reported by calls on this XQuery statement. |
XDBCSchemaTypes.YearMonthDuration |
getYearMonthDuration()
Schema type item accessor |
boolean |
hasNext()
Returns true if this XDBCResultSequence has more items. |
boolean |
isClosed()
Tests if this XDBCResultSequence is closed. |
Iterator |
iterator()
Returns a java.util.Iterator wrapper for this XDBCResultSequence object. |
Object |
next()
Returns the next item of the result sequence. |
InputStream |
nextInputStream()
Returns the next item of the result sequence as a java.io.InputStream object. |
BufferedReader |
nextReader()
Returns the next item of the result sequence as a java.io.BufferedReader object. |
void |
setBufferSize(int size)
Gives the XDBC driver a hint about the number of bytes that should be fetched from the database in a single read of results. |
| Field Detail |
public static final int XDBC_CONCUR_READ_ONLY
public static final int XDBC_CONCUR_UPDATABLE
public static final int XDBC_AnyURI
public static final int XDBC_Base64Binary
public static final int XDBC_Boolean
public static final int XDBC_Date
public static final int XDBC_DateTime
public static final int XDBC_Decimal
public static final int XDBC_Integer
public static final int XDBC_Double
public static final int XDBC_Duration
public static final int XDBC_DayTimeDuration
public static final int XDBC_YearMonthDuration
public static final int XDBC_Float
public static final int XDBC_GDay
public static final int XDBC_GMonth
public static final int XDBC_GMonthDay
public static final int XDBC_GYear
public static final int XDBC_GYearMonth
public static final int XDBC_HexBinary
public static final int XDBC_Node
public static final int XDBC_QName
public static final int XDBC_String
public static final int XDBC_Time
public static final int XDBC_Text
public static final int XDBC_Binary
| Method Detail |
public void close()
throws XDBCException
Calling this method frees up resources immediately and its use is strongly encouraged.
XDBCException - if a database access error occurs.
public XDBCStatement getStatement()
throws XDBCException
XDBCException - if a database access error occurs.
public int getResultSequenceConcurrency()
throws XDBCException
XDBCException - if a database access error occurs.XDBC_CONCUR_READ_ONLY,
XDBC_CONCUR_UPDATABLEpublic int getItemType()
XDBC_AnyURI,
XDBC_Base64Binary,
XDBC_Boolean,
XDBC_Date,
XDBC_DateTime,
XDBC_Decimal,
XDBC_Integer,
XDBC_Double,
XDBC_Duration,
XDBC_DayTimeDuration,
XDBC_YearMonthDuration,
XDBC_Float,
XDBC_GDay,
XDBC_GMonth,
XDBC_GMonthDay,
XDBC_GYear,
XDBC_GYearMonth,
XDBC_HexBinary,
XDBC_Node,
XDBC_QName,
XDBC_String,
XDBC_Time,
XDBC_Text,
XDBC_Binary
public int getNextType()
throws XDBCException
XDBCException - if a conversion or fetch error occurs.XDBC_AnyURI,
XDBC_Base64Binary,
XDBC_Boolean,
XDBC_Date,
XDBC_DateTime,
XDBC_Decimal,
XDBC_Integer,
XDBC_Double,
XDBC_Duration,
XDBC_DayTimeDuration,
XDBC_YearMonthDuration,
XDBC_Float,
XDBC_GDay,
XDBC_GMonth,
XDBC_GMonthDay,
XDBC_GYear,
XDBC_GYearMonth,
XDBC_HexBinary,
XDBC_Node,
XDBC_QName,
XDBC_String,
XDBC_Time,
XDBC_Text,
XDBC_Binary
public Object next()
throws XDBCException
XDBCException - if a database access error occurs.
public boolean hasNext()
throws XDBCException
XDBCException - if a database access error occurs.public Iterator iterator()
Iteratorpublic void setBufferSize(int size)
This setting may be changed during the fetching of the items in the sequence, if necessary.
Since this is a hint only, the XDBC driver may choose to ignore this value.
size - the integer number of bytes to fetch at one time; must be
greater than zero.getBufferSize()public int getBufferSize()
setBufferSize(int)
public XDBCWarning getWarnings()
throws XDBCException
XDBCException - if a database access error occurs.
public void clearWarnings()
throws XDBCException
XDBCException - if a database access error occurs.
public boolean isClosed()
throws XDBCException
XDBCException - if a database access error occurspublic XDBCSchemaTypes.AnyURI getAnyURI()
public XDBCSchemaTypes.Base64Binary getBase64Binary()
public XDBCSchemaTypes.Boolean getBoolean()
public XDBCSchemaTypes.Date getDate()
public XDBCSchemaTypes.DateTime getDateTime()
public XDBCSchemaTypes.Decimal getDecimal()
public XDBCSchemaTypes.Integer getInteger()
public XDBCSchemaTypes.Double getDouble()
public XDBCSchemaTypes.Duration getDuration()
public XDBCSchemaTypes.DayTimeDuration getDayTimeDuration()
public XDBCSchemaTypes.YearMonthDuration getYearMonthDuration()
public XDBCSchemaTypes.Float getFloat()
public XDBCSchemaTypes.GDay getGDay()
public XDBCSchemaTypes.GMonth getGMonth()
public XDBCSchemaTypes.GMonthDay getGMonthDay()
public XDBCSchemaTypes.GYear getGYear()
public XDBCSchemaTypes.GYearMonth getGYearMonth()
public XDBCSchemaTypes.HexBinary getHexBinary()
public XDBCSchemaTypes.Node getNode()
public XDBCSchemaTypes.QName getQName()
public XDBCSchemaTypes.String getString()
public XDBCSchemaTypes.Time getTime()
public XDBCSchemaTypes.Binary getBinary()
public XDBCSchemaTypes.Text getText()
public float get_float()
throws XDBCException
XDBCException - if a conversion or fetch error occurs.
public double get_double()
throws XDBCException
XDBCException - if a conversion or fetch error occurs.
public int get_int()
throws XDBCException
XDBCException - if a conversion or fetch error occurs.
public long get_long()
throws XDBCException
XDBCException - if a conversion or fetch error occurs.
public boolean get_boolean()
throws XDBCException
XDBCException - if a conversion or fetch error occurs.
public Date get_Date()
throws XDBCException
XDBCException - if a conversion or fetch error occurs.java.util.Date
public BigDecimal get_Decimal()
throws XDBCException
XDBCException - if a conversion or fetch error occurs.java.math.BigDecimal
public String get_String()
throws XDBCException
XDBCException - if a conversion or fetch error occurs.
public InputStream getInputStream()
throws XDBCException
XDBCException - if a conversion or fetch error occurs.
public BufferedReader getReader()
throws XDBCException
XDBCException - if a conversion or fetch error occurs.
public BufferedReader nextReader()
throws XDBCException
XDBCException - if a conversion or fetch error occursjava.io.BufferedReader
public InputStream nextInputStream()
throws XDBCException
XDBCException - if a conversion or fetch error occursjava.io.InputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||