com.dhtmlx.connector
Class PGSQLDBDataWrapper

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

public class PGSQLDBDataWrapper
extends DBDataWrapper

The Class PGSQLDBDataWrapper.


Field Summary
 
Fields inherited from class com.dhtmlx.connector.DataWrapper
config, connection
 
Constructor Summary
PGSQLDBDataWrapper()
           
 
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
protected  java.sql.Statement getStatement()
          Gets the statement
protected  java.lang.String select_query(java.lang.String select, java.lang.String from, java.lang.String where, java.lang.String sort, java.lang.String start, java.lang.String count)
          Generates sql for select query
 
Methods inherited from class com.dhtmlx.connector.DBDataWrapper
attach, begin_transaction, build_order, build_where, commit_transaction, delete, get_connection, get_size, get_sql, get_variants, insert_query, insert, query, rollback_transaction, select, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PGSQLDBDataWrapper

public PGSQLDBDataWrapper()
Method Detail

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

select_query

protected java.lang.String select_query(java.lang.String select,
                                        java.lang.String from,
                                        java.lang.String where,
                                        java.lang.String sort,
                                        java.lang.String start,
                                        java.lang.String count)
Description copied from class: DBDataWrapper
Generates sql for select query

Overrides:
select_query in class DBDataWrapper
Parameters:
select - the list of fields
from - the name of table
where - the filtering rules
sort - the sorting rules
start - the start index
count - the count of records to fetch
Returns:
the string

getStatement

protected java.sql.Statement getStatement()
                                   throws java.sql.SQLException
Description copied from class: DBDataWrapper
Gets the statement

Overrides:
getStatement in class DBDataWrapper
Returns:
the statement
Throws:
java.sql.SQLException - the SQL exception