jremote jbase5.2.1

com.jbase.jremote
Interface JSelectList

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

public interface JSelectList
extends java.lang.Iterable<java.lang.String>

A select list to a jBASE file.

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


Method Summary
 void close()
          Close select list.
 int getFetchSize()
          Returns the fetch size.
 java.lang.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.
 java.util.Iterator<java.lang.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.
 

Method Detail

iterator

java.util.Iterator<java.lang.String> iterator()
Returns an iterator to the select list

Specified by:
iterator in interface java.lang.Iterable<java.lang.String>
Returns:
iterator

getKey

java.lang.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

jremote jbase5.2.1

Copyright © 2010 TEMENOS. All Rights Reserved.