# JSelectList (jremote API)

Read Time: 2 minute(s)

# Interface JSelectList

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


public interface JSelectList
extends Iterable<String>
1
2

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()
1

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

# getKey

String getKey()
1

Returns the current key Returns:key

# getFetchSize

int getFetchSize()
1

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

# setFetchSize

void setFetchSize(int fetchSize)
1

Sets the fetch size. Parameters:fetchSize - fetch size

# next

boolean next()
      throws JRemoteException
1
2

Move to next item Returns:true if OK, false otherwiseThrows:JRemoteException

# previous

boolean previous()
          throws JRemoteException
1
2

Move to previous item Returns:true if OK, false otherwiseThrows:JRemoteException

# hasNext

boolean hasNext()
         throws JRemoteException
1
2

Returns whether it is possible to move forward. Returns:true if YES, false otherwiseThrows:JRemoteException

# hasPrevious

boolean hasPrevious()
             throws JRemoteException
1
2

Returns whether it is possible to move backwards. Returns:true if YES, false otherwiseThrows:JRemoteException

# getPosition

int getPosition()
1

Returns the current position. The first item in the list has position 1. Returns:position

# goToPosition

void goToPosition(int targetPos)
           throws JRemoteException
1
2

Move to the specified position. The first item in the list has position 1. Parameters:targetPos -Throws:JRemoteException

# close

void close()
    throws JRemoteException
1
2

Close select list. Requests server to release all resources associated to this object. Throws:JRemoteException

Back to jRemote API