com.dhtmlx.connector
Class ConnectorResultSet

java.lang.Object
  extended by com.dhtmlx.connector.ConnectorResultSet

public class ConnectorResultSet
extends java.lang.Object

The Class ConnectorResultSet. Wrapper around result set , which allows to use it with different data wrappers


Field Summary
private  java.sql.ResultSet result
          The result
 
Constructor Summary
ConnectorResultSet(java.sql.ResultSet external_result)
          Instantiates a new connector result set.
 
Method Summary
 java.lang.String get_last_id()
          Gets the id of previously inserted record
 java.util.HashMap<java.lang.String,java.lang.String> get_next()
          Gets the next record in result set
 java.lang.String get(java.lang.String name)
          Gets the named field from top record in result set
 void jump_to(int start_from)
          change pointer of result set to specified position
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

private java.sql.ResultSet result
The result

Constructor Detail

ConnectorResultSet

public ConnectorResultSet(java.sql.ResultSet external_result)
Instantiates a new connector result set.

Parameters:
external_result - native result set object
Method Detail

get_last_id

public java.lang.String get_last_id()
                             throws ConnectorOperationException
Gets the id of previously inserted record

Returns:
the id of previously inserted record
Throws:
ConnectorOperationException - the connector operation exception

get_next

public java.util.HashMap<java.lang.String,java.lang.String> get_next()
                                                              throws ConnectorOperationException
Gets the next record in result set

Returns:
the hash of data for the next record in result set
Throws:
ConnectorOperationException - the connector operation exception

get

public java.lang.String get(java.lang.String name)
                     throws ConnectorOperationException
Gets the named field from top record in result set

Parameters:
name - the name of field in question
Returns:
value of named field as the string
Throws:
ConnectorOperationException - the connector operation exception

jump_to

public void jump_to(int start_from)
             throws ConnectorOperationException
change pointer of result set to specified position

Parameters:
start_from - the new pointer position
Throws:
ConnectorOperationException - the connector operation exception