|
JDBaccess API 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Result
A result is returned by execution of a select object. There is a one to one relationship between select and result. If you end a select also the result is closed and if you close a result also its select is ended. Normally a result is of type Row which means that all elements are of type Row. A result automatically fetches result set meta data such as sql type, precision and scale and uses it to fill the result elements (row objects or data access objects) accordingly.
Method Summary | |
---|---|
void |
close()
You close a result automatically when you end the select of this result. |
java.util.ArrayList |
getAllElements()
Get all the elements of the result. |
java.util.ArrayList |
getFields()
This method delivers all fields (with type, sqlType, scale, precision etc.) as an Arraylist for that select. |
TransferObject |
getFirstElement()
Get the first elements of the result. |
TransferObject |
getNextElement()
Get the next element of the result from actual position forward. |
java.util.ArrayList |
getNextElements()
Get the next elements of the result from actual position forward as the page size is defined. |
java.util.ArrayList |
getNextElements(long count)
Get the next "count" elements of the result from actual position forward. |
long |
getPosition()
Get the actual position of the result |
java.util.ArrayList |
getPreviousElements()
Get the previous elements of the result from actual position backward as the page size is defined. |
java.lang.Long |
getSize()
You call this method here or on the select which belongs to this result. |
boolean |
isEmpty()
|
void |
setPageSize(int pageSize)
Set the page size of the result. |
void |
setPosition(long pos)
Set the actual position of the result |
void |
setReadLobsFull(boolean readLobsFull)
if true, all lob fields are read completely from the database tables, else lob fields are read only to a default size because of performance reasons |
Method Detail |
---|
void close() throws ApplicationException
ApplicationException
TransferObject getNextElement() throws ApplicationException
ApplicationException
java.util.ArrayList getNextElements() throws ApplicationException
ApplicationException
java.util.ArrayList getNextElements(long count) throws ApplicationException
count
- number of elements which should be fetched
ApplicationException
java.util.ArrayList getPreviousElements() throws ApplicationException
ApplicationException
java.util.ArrayList getAllElements() throws ApplicationException
ApplicationException
TransferObject getFirstElement() throws ApplicationException
ApplicationException
java.lang.Long getSize() throws ApplicationException
ApplicationException
boolean isEmpty() throws ApplicationException
ApplicationException
void setPosition(long pos) throws ApplicationException
pos
- position in result (0 == beforeFirst, 1 == first, 2 == second, ..., size == last)
ApplicationException
long getPosition()
void setPageSize(int pageSize)
pageSize
- page size of the resultvoid setReadLobsFull(boolean readLobsFull)
readLobsFull
- java.util.ArrayList getFields()
|
JDBaccess API 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |