com.tekann.remotesync.pda
Class PDASyncHandler

java.lang.Object
  extended by com.tekann.remotesync.pda.PDASyncHandler

public class PDASyncHandler
extends java.lang.Object

This class has some useful methods for maintaining the tables

Author:
gfrantz

Constructor Summary
PDASyncHandler()
           
 
Method Summary
static int insertNewDataFromDB(java.lang.String creatorID, totalcross.util.Vector sqlCommands)
          Inserts the sqlCommands in a table
static int updateRangesTable(totalcross.util.Hashtable serverRangesHashtable)
          Updates the ranges table by the passed server ranges
static int updateTablesToSynced(java.lang.String creatorID, PDASyncTableSettings[] tables)
          Updates all the passed tables to synchronized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDASyncHandler

public PDASyncHandler()
Method Detail

insertNewDataFromDB

public static int insertNewDataFromDB(java.lang.String creatorID,
                                      totalcross.util.Vector sqlCommands)
                               throws java.lang.Exception
Inserts the sqlCommands in a table

Parameters:
creatorID -
sqlCommands -
Returns:
Throws:
java.lang.Exception

updateRangesTable

public static int updateRangesTable(totalcross.util.Hashtable serverRangesHashtable)
                             throws java.lang.Exception
Updates the ranges table by the passed server ranges

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

updateTablesToSynced

public static int updateTablesToSynced(java.lang.String creatorID,
                                       PDASyncTableSettings[] tables)
                                throws java.lang.Exception
Updates all the passed tables to synchronized.

Parameters:
creatorID -
tables -
Returns:
Throws:
java.lang.Exception