Top Description Fields Constructors Methods
org.h2.result

public abstract Class FetchedResult

extends Object
implements ResultInterface
Class Inheritance
All Implemented Interfaces
org.h2.result.ResultInterface, java.lang.AutoCloseable
Known Direct Subclasses
org.h2.result.LazyResult, org.h2.result.ResultRemote
Imports
org.h2.engine.Session, org.h2.value.Value

Abstract fetched result.

Field Summary

Modifier and TypeField and Description
pack-priv boolean
pack-priv Value[]
pack-priv Value[]
pack-priv long

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public final ResultInterface
createShallowCopy(Session
the session of the copy
targetSession
)

Implements org.h2.result.ResultInterface.createShallowCopy.

Create a shallow copy of the result set.

public final Value[]
currentRow()

Implements org.h2.result.ResultInterface.currentRow.

Get the current row.

public final long
getRowId()

Implements org.h2.result.ResultInterface.getRowId.

Get the current row id, starting with 0.

public final boolean
isAfterLast()

Implements org.h2.result.ResultInterface.isAfterLast.

Check if the current position is after last row.

public final boolean
needToClose()

Implements org.h2.result.ResultInterface.needToClose.

Check if this result set should be closed, for example because it is buffered using a temporary file.

public final boolean
next()

Implements org.h2.result.ResultInterface.next.

Go to the next row.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

afterLastback to summary
pack-priv boolean afterLast
currentRowback to summary
pack-priv Value[] currentRow
nextRowback to summary
pack-priv Value[] nextRow
rowIdback to summary
pack-priv long rowId

Constructor Detail

FetchedResultback to summary
pack-priv FetchedResult()

Method Detail

createShallowCopyback to summary
public final ResultInterface createShallowCopy(Session targetSession)

Implements org.h2.result.ResultInterface.createShallowCopy.

Doc from org.h2.result.ResultInterface.createShallowCopy.

Create a shallow copy of the result set. The data and a temporary table (if there is any) is not copied.

Parameters
targetSession:Session

the session of the copy

Returns:ResultInterface

the copy if possible, or null if copying is not possible

Annotations
@Override
currentRowback to summary
public final Value[] currentRow()

Implements org.h2.result.ResultInterface.currentRow.

Doc from org.h2.result.ResultInterface.currentRow.

Get the current row.

Returns:Value[]

the row

Annotations
@Override
getRowIdback to summary
public final long getRowId()

Implements org.h2.result.ResultInterface.getRowId.

Doc from org.h2.result.ResultInterface.getRowId.

Get the current row id, starting with 0. -1 is returned when next() was not called yet.

Returns:long

the row id

Annotations
@Override
isAfterLastback to summary
public final boolean isAfterLast()

Implements org.h2.result.ResultInterface.isAfterLast.

Doc from org.h2.result.ResultInterface.isAfterLast.

Check if the current position is after last row.

Returns:boolean

true if after last

Annotations
@Override
needToCloseback to summary
public final boolean needToClose()

Implements org.h2.result.ResultInterface.needToClose.

Doc from org.h2.result.ResultInterface.needToClose.

Check if this result set should be closed, for example because it is buffered using a temporary file.

Returns:boolean

true if close should be called.

Annotations
@Override
nextback to summary
public final boolean next()

Implements org.h2.result.ResultInterface.next.

Doc from org.h2.result.ResultInterface.next.

Go to the next row.

Returns:boolean

true if a row exists

Annotations
@Override