Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

org.openmobileis.synchro.algo.syncnumber.impl.PostgreSQLSyncNumberQueryManager Class Reference

Inheritance diagram for org.openmobileis.synchro.algo.syncnumber.impl.PostgreSQLSyncNumberQueryManager:

org.openmobileis.common.util.database.AbstractQueryManager org.openmobileis.synchro.algo.syncnumber.impl.SyncNumberQueryManager List of all members.

Detailed Description

Title: OpenMobileIS project source
Description: This class manages the synchronization number For each user, a number is associated with the synchronization to manage the incremental sync.

Data mapping is made for InstantDB database

Author:
Philippe Delrieu
Since:
JDK 1.1
Version:
1.0.

Definition at line 45 of file PostgreSQLSyncNumberQueryManager.java.

Public Member Functions

void create (String parameters[]) throws ServiceException
 create() insert a new version number for a user ID.
void createSyncTable () throws ServiceException, java.sql.SQLException
 check if the sync table exists.
void delete (String parameters[]) throws ServiceException
 delete() delete a synchronisation from the USERID
void update (String parameters[]) throws ServiceException
 update() update a synchronisation : Not used here (same as create)
ResultSet getTimeStampForsn (String parameters[]) throws ServiceException
 getLastSyncNumberbysn() get the sync number with specified ns
ResultSet getLastSyncNumber () throws ServiceException
 getLastSyncNumber() get the last sync number
ResultSet getSyncNumberbysn (String parameters[]) throws ServiceException
 getLastSyncNumberbysn() get the sync number with specified ns


Member Function Documentation

void org.openmobileis.synchro.algo.syncnumber.impl.PostgreSQLSyncNumberQueryManager.create String  parameters[]  )  throws ServiceException
 

create() insert a new version number for a user ID.

Create the user Id if it does not exist.

Parameters:
Array containing a String parameters representing the variable values giving the USERID, VERSION_NB Refer to the database schema for more details
Returns:
None
Exceptions:
None 

Implements org.openmobileis.synchro.algo.syncnumber.impl.SyncNumberQueryManager.

Definition at line 90 of file PostgreSQLSyncNumberQueryManager.java.

void org.openmobileis.synchro.algo.syncnumber.impl.PostgreSQLSyncNumberQueryManager.createSyncTable  )  throws ServiceException, java.sql.SQLException
 

check if the sync table exists.

IF it does not exist, create it

Implements org.openmobileis.synchro.algo.syncnumber.impl.SyncNumberQueryManager.

Definition at line 97 of file PostgreSQLSyncNumberQueryManager.java.

void org.openmobileis.synchro.algo.syncnumber.impl.PostgreSQLSyncNumberQueryManager.delete String  parameters[]  )  throws ServiceException
 

delete() delete a synchronisation from the USERID

Parameters:
Array containing a String parameters : USERID
Returns:
None
Exceptions:
None 

Implements org.openmobileis.synchro.algo.syncnumber.impl.SyncNumberQueryManager.

Definition at line 127 of file PostgreSQLSyncNumberQueryManager.java.

ResultSet org.openmobileis.synchro.algo.syncnumber.impl.PostgreSQLSyncNumberQueryManager.getLastSyncNumber  )  throws ServiceException
 

getLastSyncNumber() get the last sync number

Returns:
ResultSet : A unique row containing the sunc num (int)
Exceptions:
None 

Implements org.openmobileis.synchro.algo.syncnumber.impl.SyncNumberQueryManager.

Definition at line 157 of file PostgreSQLSyncNumberQueryManager.java.

References org.openmobileis.common.util.database.AbstractQueryManager.executeQuery().

ResultSet org.openmobileis.synchro.algo.syncnumber.impl.PostgreSQLSyncNumberQueryManager.getSyncNumberbysn String  parameters[]  )  throws ServiceException
 

getLastSyncNumberbysn() get the sync number with specified ns

Parameters:
: array containing sync number
Returns:
ResultSet : A unique row containing the sunc num (int)
Exceptions:
None 

Implements org.openmobileis.synchro.algo.syncnumber.impl.SyncNumberQueryManager.

Definition at line 167 of file PostgreSQLSyncNumberQueryManager.java.

ResultSet org.openmobileis.synchro.algo.syncnumber.impl.PostgreSQLSyncNumberQueryManager.getTimeStampForsn String  parameters[]  )  throws ServiceException
 

getLastSyncNumberbysn() get the sync number with specified ns

Parameters:
: array containing sync number
Returns:
ResultSet : A unique row containing the sunc num (int)
Exceptions:
None 

Definition at line 148 of file PostgreSQLSyncNumberQueryManager.java.

References org.openmobileis.common.util.database.AbstractQueryManager.executeQuery().

void org.openmobileis.synchro.algo.syncnumber.impl.PostgreSQLSyncNumberQueryManager.update String  parameters[]  )  throws ServiceException
 

update() update a synchronisation : Not used here (same as create)

Parameters:
Array containing a String parameters
Returns:
None
Exceptions:
None 

Implements org.openmobileis.synchro.algo.syncnumber.impl.SyncNumberQueryManager.

Definition at line 137 of file PostgreSQLSyncNumberQueryManager.java.


The documentation for this class was generated from the following file:
Generated on Wed Dec 14 21:05:39 2005 for OpenMobileIS by  doxygen 1.4.4