Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

JSelectList (jremote API)

Interface JSelectList

All Superinterfaces:
Iterable<String>
All Known Subinterfaces:
JCursor
All Known Implementing Classes:
JCursorImpl, JSelectListImpl


public interface JSelectList
extends Iterable<String>

A select list to a jBASE file.

This object represents a list of record keys to a jBASE file.

Method Summary

Modifier and Type
Method and Description
void
close()
Close select list.
int
getFetchSize()
Returns the fetch size.
String
getKey()
Returns the current key
int
getPosition()
Returns the current position.
void
goToPosition(int targetPos)
Move to the specified position.
boolean
hasNext()
Returns whether it is possible to move forward.
boolean
hasPrevious()
Returns whether it is possible to move backwards.
Iterator<String>
iterator()
Returns an iterator to the select list
boolean
next()
Move to next item
boolean
previous()
Move to previous item
void
setFetchSize(int fetchSize)
Sets the fetch size.
  • Methods inherited from interface java.lang.Iterable
    • forEach, spliterator


Method Detail


iterator

Iterator<String> iterator()
Returns an iterator to the select list
Specified by:
iterator in interface Iterable<String>
Returns:
iterator



getKey

String getKey()
Returns the current key
Returns:
key


getFetchSize

int getFetchSize()
Returns the fetch size. This value represents the number of items fetched simultaneously from the server.
Returns:
fetch size


setFetchSize

void setFetchSize(int fetchSize)
Sets the fetch size.
Parameters:
fetchSize - fetch size


next

boolean next()
      throws JRemoteException
Move to next item
Returns:
true if OK, false otherwise
Throws:
JRemoteException


previous

boolean previous()
          throws JRemoteException
Move to previous item
Returns:
true if OK, false otherwise
Throws:
JRemoteException


hasNext

boolean hasNext()
         throws JRemoteException
Returns whether it is possible to move forward.
Returns:
true if YES, false otherwise
Throws:
JRemoteException


hasPrevious

boolean hasPrevious()
             throws JRemoteException
Returns whether it is possible to move backwards.
Returns:
true if YES, false otherwise
Throws:
JRemoteException


getPosition

int getPosition()
Returns the current position. The first item in the list has position 1.
Returns:
position


goToPosition

void goToPosition(int targetPos)
           throws JRemoteException
Move to the specified position. The first item in the list has position 1.
Parameters:
targetPos -
Throws:
JRemoteException


close

void close()
    throws JRemoteException
Close select list. Requests server to release all resources associated to this object.
Throws:
JRemoteException


Back to jREMOTE API

Was this article helpful?