railo.runtime.type
Interface Iterator

All Known Subinterfaces:
Query, QueryPro, QueryTable
All Known Implementing Classes:
QueryCacheQuery, QueryImpl, SimpleQuery, TOQuery

public interface Iterator

Interface for a simple Iterator


Method Summary
 int getCurrentrow()
          return the current position of the internal pointer
 int getRecordcount()
          return recordcount of the iterator object
 boolean go(int index)
          Deprecated. use instead go(int,int)
 boolean go(int index, int pid)
          set the internal pointer to defined position
 boolean isEmpty()
           
 boolean next()
          Deprecated. use instead next(int)
 boolean next(int pid)
          set the intern pointer of the iterator to the next position, return true if next position exist otherwise false.
 void reset()
          Deprecated. use instead reset(int)
 void reset(int pid)
          reset ther intern pointer
 

Method Detail

next

boolean next()
             throws PageException
Deprecated. use instead next(int)

set the intern pointer of the iterator to the next position, return true if next position exist otherwise false.

Returns:
boolean
Throws:
PageException

next

boolean next(int pid)
             throws PageException
set the intern pointer of the iterator to the next position, return true if next position exist otherwise false.

Returns:
boolean
Throws:
PageException

reset

void reset()
           throws PageException
Deprecated. use instead reset(int)

reset ther intern pointer

Throws:
PageException

reset

void reset(int pid)
           throws PageException
reset ther intern pointer

Throws:
PageException

getRecordcount

int getRecordcount()
return recordcount of the iterator object

Returns:
int

getCurrentrow

int getCurrentrow()
return the current position of the internal pointer

Returns:
int

go

boolean go(int index)
           throws PageException
Deprecated. use instead go(int,int)

set the internal pointer to defined position

Parameters:
index -
Returns:
int
Throws:
PageException

go

boolean go(int index,
           int pid)
           throws PageException
set the internal pointer to defined position

Parameters:
index -
Returns:
int
Throws:
PageException

isEmpty

boolean isEmpty()
Returns:
returns if iterator is empty or not


Copyright © 2012 Railo