ScrollableDataSource external type

ScrollableDataSource lists functions for scrolling through a result set.

EGL package name

eglx.persistence

Example use
Type detail
externalType ScrollableDataSource extends DataSource type NativeType
   private constructor();

   // identifies the current position in a result set.  the first is 1.
   function getPosition() returns (int);

   // indicates whether the current position is position 1.
   function isFirst() returns (boolean);

   // indicates whether the current position is the last.
   function isLast() returns (boolean);

   // sets the current position by number. the first position is 1.
   // returns a value that indicates whether the setting was successful.
   // returns false if the invocation references a non-existent position. 
   function setAbsolute(row int in) returns (boolean);

   // sets the position to the first row in the result set.
   // returns a value that indicates whether the setting was successful.
   // returns false if the result set is empty.
   function setFirst() returns (boolean);

   // sets the position to the last row in the result set.
   // returns a value that indicates whether the setting was successful.
   // returns false if the result set is empty.
   function setLast() returns (boolean);

   // sets the position to the row subsequent to the current position.
   // returns a value that indicates whether the setting was successful.
   // returns false if the invocation references a non-existent position. 
   function setNext() returns (boolean);

   // sets the position to the row previous to the current position.
   // returns a value that indicates whether the setting was successful.
   // returns false if the invocation references a non-existent position. 
   function setPrevious() returns (boolean);

   // sets a position relative to the current one.  
   // the function argument can be positive or negative.
   // returns a value that indicates whether the setting was successful.
   // returns false if the invocation references a non-existent position. 
   function setRelative(rows int in) returns (boolean);
end
Comments
A subtype of ScrollableDataSource is eglx.persistence.sql.SQLScrollableDataSource. A value based on SQLScrollableDataSource represents a result set that was returned from an SQL query.
Compatibility
Table 1. Compatibility
Target Issue
Java No issues.
JavaScript Access of persisted data is not supported.