com.dhtmlx.connector
Class ArrayDBDataWrapper

java.lang.Object
  extended by com.dhtmlx.connector.DataWrapper
      extended by com.dhtmlx.connector.DBDataWrapper
          extended by com.dhtmlx.connector.ArrayDBDataWrapper

public class ArrayDBDataWrapper
extends DBDataWrapper


Constructor Summary
ArrayDBDataWrapper(java.lang.Iterable<java.lang.Object> data)
           
 
Method Summary
 java.lang.String escape(java.lang.String data)
          Escape the data, befor using in SQL
 java.lang.String get_new_id(ConnectorResultSet result)
          Gets the new id
 ConnectorResultSet select(DataRequest source)
          Select data from storage
 
Methods inherited from class com.dhtmlx.connector.DBDataWrapper
attach, begin_transaction, commit_transaction, delete, get_size, get_sql, get_variants, insert, query, rollback_transaction, sequence, update
 
Methods inherited from class com.dhtmlx.connector.DataWrapper
init, is_global_transaction, is_record_transaction, set_transaction_mode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayDBDataWrapper

public ArrayDBDataWrapper(java.lang.Iterable<java.lang.Object> data)
Method Detail

select

public ConnectorResultSet select(DataRequest source)
                          throws ConnectorOperationException
Description copied from class: DataWrapper
Select data from storage

Overrides:
select in class DBDataWrapper
Parameters:
source - the source defined by DataRequest object
Returns:
the connector result set
Throws:
ConnectorOperationException - the connector operation exception

escape

public java.lang.String escape(java.lang.String data)
Description copied from class: DBDataWrapper
Escape the data, befor using in SQL

Specified by:
escape in class DBDataWrapper
Parameters:
data - the incoming data
Returns:
the escaped string

get_new_id

public java.lang.String get_new_id(ConnectorResultSet result)
                            throws ConnectorOperationException
Description copied from class: DBDataWrapper
Gets the new id

Specified by:
get_new_id in class DBDataWrapper
Parameters:
result - the resultset, which contains the new ID
Returns:
the new id value
Throws:
ConnectorOperationException - the connector operation exception