com.tekann.webservice.client
Interface TKNMSWSClient

All Known Implementing Classes:
WSHandler

public interface TKNMSWSClient

This interface describes the web service used to synchronize data.

Author:
evandro

Method Summary
 int delete(com.tekann.codegen.pda.db.IDTO dto)
          Executes the delete method.
 int delete(java.lang.String tableName, java.lang.String whereClause)
          Executes the delete method
 long getNextId(java.lang.String columnName, java.lang.String tableName)
          Executes the getNextID method.
 totalcross.util.Hashtable getRangesByPDAContext(java.lang.String dataExchangeProjectName)
          Gets the ranges XML of a PDA
 totalcross.util.Vector getSyncTables(java.lang.String dataExchangeProjectName)
          Gets the tables to synchronize
 int insert(com.tekann.codegen.pda.db.IDTO dto)
          Executes the insert.
 java.lang.Object select(java.lang.String query)
          Executes the select.
 java.lang.Object select(java.lang.String tableName, java.lang.String pdaTableName, java.lang.String whereClause)
          Executes the select.
 java.lang.Object select(java.lang.String tableName, java.lang.String pdaTableName, java.lang.String columns, java.lang.String whereClause)
          Executes the select.
 java.lang.Object syncDBtoPDA(java.lang.String dataExchangeProjectName)
          Extract the database data from the server according to the synchronization project
 int syncPDAtoDB(java.lang.Object[] dtos, java.lang.String dataExchangeProjectName)
          Executes the syncPDAtoDB
 int update(com.tekann.codegen.pda.db.IDTO dto, java.lang.String whereClause)
          Executes the update.
 

Method Detail

delete

int delete(com.tekann.codegen.pda.db.IDTO dto)
Executes the delete method.

Parameters:
dto -
Returns:
status code.

delete

int delete(java.lang.String tableName,
           java.lang.String whereClause)
Executes the delete method

Parameters:
tableName -
whereClause -
Returns:
status code.

getNextId

long getNextId(java.lang.String columnName,
               java.lang.String tableName)
Executes the getNextID method.

Parameters:
columnName -
tableName -
Returns:
the generated ID

getRangesByPDAContext

totalcross.util.Hashtable getRangesByPDAContext(java.lang.String dataExchangeProjectName)
Gets the ranges XML of a PDA

Parameters:
dataExchangeProjectName -
Returns:

getSyncTables

totalcross.util.Vector getSyncTables(java.lang.String dataExchangeProjectName)
Gets the tables to synchronize

Parameters:
dataExchangeProjectName -
Returns:
A PDASyncTableSettings array.

insert

int insert(com.tekann.codegen.pda.db.IDTO dto)
Executes the insert.

Parameters:
dto -
Returns:
status code

select

java.lang.Object select(java.lang.String query)
Executes the select.

Parameters:
query -
Returns:
A vector with the DTOs

select

java.lang.Object select(java.lang.String tableName,
                        java.lang.String pdaTableName,
                        java.lang.String whereClause)
Executes the select.

Parameters:
tableName -
whereClause -
Returns:
A vector with the DTOs

select

java.lang.Object select(java.lang.String tableName,
                        java.lang.String pdaTableName,
                        java.lang.String columns,
                        java.lang.String whereClause)
Executes the select.

Parameters:
tableName -
columns -
whereClause -
Returns:
A vector with the DTOs

syncDBtoPDA

java.lang.Object syncDBtoPDA(java.lang.String dataExchangeProjectName)
Extract the database data from the server according to the synchronization project

Parameters:
dataExchangeProjectName -
Returns:

syncPDAtoDB

int syncPDAtoDB(java.lang.Object[] dtos,
                java.lang.String dataExchangeProjectName)
Executes the syncPDAtoDB

Parameters:
dtos - DTOs array to be synchronized

update

int update(com.tekann.codegen.pda.db.IDTO dto,
           java.lang.String whereClause)
Executes the update.

Parameters:
dto -
whereClause -
Returns:
status code.