Interface ISqlCursor
- All Superinterfaces:
ICursor, IDisposable, IEntity
Represents a database cursor.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCursorClosedListener(CursorClosedListener listener) Registers the CursorClosedListener.fetch(int position, int numberOfRows) Fetches rows in the cursor and returns the rows fetched from the database.The SQL Runner that created the cursor.voidUnregisters the CursorClosedListener.voidReopens a cursor executing the select statement.Methods inherited from interface ICursor
close, closeOnIdleTimeout, closeOnSessionCleared, getId, getStateMethods inherited from interface IDisposable
addDisposedListener, removeDisposedListenerMethods inherited from interface IEntity
getUserContext, setUserContext
-
Method Details
-
addCursorClosedListener
Registers the CursorClosedListener.- Parameters:
listener- Event listener to add.
-
removeCursorClosedListener
Unregisters the CursorClosedListener.- Parameters:
listener- Event listener to remove.
-
fetch
ResultSet fetch(int position, int numberOfRows) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Fetches rows in the cursor and returns the rows fetched from the database.- Parameters:
position- Index of the first row to fetch. The index is zero-based.numberOfRows- Number of rows to fetch.- Returns:
- The rows fetched from the database.
- Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-
getSqlRunner
The SQL Runner that created the cursor.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISException
-
reopen
void reopen(String statement) throws Exception, altitude.integrationServer.exceptions.ISException, altitude.integrationServer.exceptions.ISSqlException Reopens a cursor executing the select statement.- Parameters:
statement- SQL statement to execute on the instance.- Throws:
Exceptionaltitude.integrationServer.exceptions.ISExceptionaltitude.integrationServer.exceptions.ISSqlException
-