CustomCursor
The CustomCursor interface returns a cursor type. All custom cursors must implement this interface.
public interface CustomCursor
A custom procedure with just one output cursor can implement both the
CustomProcedure and the CustomCursor interfaces to avoid needing another class. A custom procedure with more than one output cursor should use inner classes or separate classes.
Class Summary |
| Lets a procedure interact with the TDV Server. |
Method Summary |
void | closeFrees the resources. |
ParameterInfo[] | getColumnInfoReturns the metadata for the cursor. |
Object[] | nextReturns the next row, or NULL when done. |
Method Detail
close
public void close()
This method is called to free resources. Calling this method multiple times has no effect, and no exception is thrown.
Throws
getColumnInfo
public ParameterInfo[] getColumnInfo()
This method is called to get the metadata for the custom cursor.
Returns
This method returns the metadata for the cursor. A NULL value might be returned to indicate that the caller should retrieve the metadata information by calling ProcedureReference.
getParameterInfo.
Throws
This method throws
CustomProcedureException if the cursor has been closed. This method throws
CustomProcedureException or SQLException if an error occurs while fetching the metadata.
next
public Object[] next()
This method is called when more metadata is needed.
Returns
This method returns the next row, or NULL when done.
Throws
This method throws
CustomProcedureException if the cursor has been closed. This method throws
CustomProcedureException or SQLException if an error occurs while fetching the metadata.