public class ResultRemote extends Object implements ResultInterface
Constructor and Description |
---|
ResultRemote(SessionRemote session,
Transfer transfer,
int id,
int columnCount,
int fetchSize) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the result and delete any temporary files
|
boolean |
containsDistinct(Value[] values)
Check if this result set contains the given row.
|
ResultInterface |
createShallowCopy(SessionInterface targetSession)
Create a shallow copy of the result set.
|
Value[] |
currentRow()
Get the current row.
|
String |
getAlias(int i)
Get the column alias name for the column.
|
String |
getColumnName(int i)
Get the column name.
|
long |
getColumnPrecision(int i)
Get the precision for this column.
|
int |
getColumnScale(int i)
Get the scale for this column.
|
int |
getColumnType(int i)
Get the column data type.
|
int |
getDisplaySize(int i)
Get the display size for this column.
|
int |
getFetchSize()
Get the current fetch size for this result set.
|
int |
getNullable(int i)
Check if this column is nullable.
|
int |
getRowCount()
Get the number of rows in this object.
|
int |
getRowId()
Get the current row id, starting with 0.
|
String |
getSchemaName(int i)
Get the schema name for the column, if one exists.
|
String |
getTableName(int i)
Get the table name for the column, if one exists.
|
int |
getVisibleColumnCount()
Get the number of visible columns.
|
boolean |
hasNext()
Check if this result has more rows to fetch.
|
boolean |
isAfterLast()
Check if the current position is after last row.
|
boolean |
isAutoIncrement(int i)
Check if this is an auto-increment column.
|
boolean |
isClosed()
Check if this result set is closed.
|
boolean |
isLazy()
Check if this a lazy execution result.
|
boolean |
needToClose()
Check if this result set should be closed, for example because it is
buffered using a temporary file.
|
boolean |
next()
Go to the next row.
|
void |
reset()
Go to the beginning of the result, that means
before the first row.
|
void |
setFetchSize(int fetchSize)
Set the fetch size for this result set.
|
String |
toString() |
public ResultRemote(SessionRemote session, Transfer transfer, int id, int columnCount, int fetchSize) throws IOException
IOException
public boolean isLazy()
ResultInterface
isLazy
in interface ResultInterface
public String getAlias(int i)
ResultInterface
getAlias
in interface ResultInterface
i
- the column number (starting with 0)public String getSchemaName(int i)
ResultInterface
getSchemaName
in interface ResultInterface
i
- the column number (starting with 0)public String getTableName(int i)
ResultInterface
getTableName
in interface ResultInterface
i
- the column number (starting with 0)public String getColumnName(int i)
ResultInterface
getColumnName
in interface ResultInterface
i
- the column number (starting with 0)public int getColumnType(int i)
ResultInterface
getColumnType
in interface ResultInterface
i
- the column number (starting with 0)public long getColumnPrecision(int i)
ResultInterface
getColumnPrecision
in interface ResultInterface
i
- the column number (starting with 0)public int getColumnScale(int i)
ResultInterface
getColumnScale
in interface ResultInterface
i
- the column number (starting with 0)public int getDisplaySize(int i)
ResultInterface
getDisplaySize
in interface ResultInterface
i
- the column number (starting with 0)public boolean isAutoIncrement(int i)
ResultInterface
isAutoIncrement
in interface ResultInterface
i
- the column number (starting with 0)public int getNullable(int i)
ResultInterface
getNullable
in interface ResultInterface
i
- the column number (starting with 0)public void reset()
ResultInterface
reset
in interface ResultInterface
public Value[] currentRow()
ResultInterface
currentRow
in interface ResultInterface
public boolean next()
ResultInterface
next
in interface ResultInterface
public int getRowId()
ResultInterface
getRowId
in interface ResultInterface
public boolean isAfterLast()
ResultInterface
isAfterLast
in interface ResultInterface
public int getVisibleColumnCount()
ResultInterface
getVisibleColumnCount
in interface ResultInterface
public int getRowCount()
ResultInterface
getRowCount
in interface ResultInterface
public boolean hasNext()
ResultInterface
hasNext
in interface ResultInterface
public void close()
ResultInterface
close
in interface AutoCloseable
close
in interface ResultInterface
public int getFetchSize()
ResultInterface
getFetchSize
in interface ResultInterface
public void setFetchSize(int fetchSize)
ResultInterface
setFetchSize
in interface ResultInterface
fetchSize
- the new fetch sizepublic boolean needToClose()
ResultInterface
needToClose
in interface ResultInterface
public ResultInterface createShallowCopy(SessionInterface targetSession)
ResultInterface
createShallowCopy
in interface ResultInterface
targetSession
- the session of the copypublic boolean isClosed()
ResultInterface
isClosed
in interface ResultInterface
public boolean containsDistinct(Value[] values)
ResultInterface
containsDistinct
in interface ResultInterface
values
- the rowCopyright © 2020 JBoss by Red Hat. All rights reserved.