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
 com.tekann.codegen.pda.ILogger getLogger()
          Get the logger.
 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.
 int insert(totalcross.util.Vector dtos)
          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)
           throws java.lang.Exception
Executes the delete method.

Parameters:
dto -
Returns:
status code.
Throws:
java.lang.Exception

delete

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

Parameters:
tableName -
whereClause -
Returns:
status code.
Throws:
java.lang.Exception

getNextId

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

Parameters:
columnName -
tableName -
Returns:
the generated ID
Throws:
java.lang.Exception

getRangesByPDAContext

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

Parameters:
dataExchangeProjectName -
Returns:
Throws:
java.lang.Exception

getSyncTables

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

Parameters:
dataExchangeProjectName -
Returns:
A PDASyncTableSettings array.
Throws:
java.lang.Exception

insert

int insert(com.tekann.codegen.pda.db.IDTO dto)
           throws java.lang.Exception
Executes the insert.

Parameters:
dto -
Returns:
status code
Throws:
java.lang.Exception

insert

int insert(totalcross.util.Vector dtos)
           throws java.lang.Exception
Executes the insert.

Parameters:
dtos -
Returns:
status code
Throws:
java.lang.Exception

select

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

Parameters:
query -
Returns:
A vector with the DTOs
Throws:
java.lang.Exception

select

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

Parameters:
tableName -
whereClause -
Returns:
A vector with the DTOs
Throws:
java.lang.Exception

select

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

Parameters:
tableName -
columns -
whereClause -
Returns:
A vector with the DTOs
Throws:
java.lang.Exception

syncDBtoPDA

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

Parameters:
dataExchangeProjectName -
Returns:
Throws:
java.lang.Exception

syncPDAtoDB

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

Parameters:
dtos - DTOs array to be synchronized
Throws:
java.lang.Exception

update

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

Parameters:
dto -
whereClause -
Returns:
status code.
Throws:
java.lang.Exception

getLogger

com.tekann.codegen.pda.ILogger getLogger()
Get the logger.

Returns: