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

All Known Implementing Classes:
HSQLSyncNumberQueryManager, MSSQLSyncNumberQueryManager, OracleSafeServerSyncNumberQueryManager, PostgreSQLSyncNumberQueryManager

public interface SyncNumberQueryManager

Title: OpenMobileIS project source
Description: Define the operation use to manage synchro Number in the database

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

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

Method Detail

createSyncTable

public void createSyncTable()
                     throws DatabaseException,
                            java.sql.SQLException
check if the sync table exists. IF it does not exist, create it

Throws:
DatabaseException
java.sql.SQLException

create

public void create(java.lang.String[] parameters)
            throws DatabaseException
create() insert a new version number for a user ID. Create the user Id if it does not exist.

Returns:
None
Throws:
None
DatabaseException

delete

public void delete(java.lang.String[] parameters)
            throws DatabaseException
delete() delete a synchronisation from the USERID

Returns:
None
Throws:
None
DatabaseException

update

public void update(java.lang.String[] parameters)
            throws DatabaseException
update() update a synchronisation : Not used here (same as create)

Returns:
None
Throws:
None
DatabaseException

getLastSyncNumber

public java.sql.ResultSet getLastSyncNumber()
                                     throws DatabaseException
getLastSyncNumber() get the last sync number

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

getSyncNumberbysn

public java.sql.ResultSet getSyncNumberbysn(java.lang.String[] parameters)
                                     throws DatabaseException
getLastSyncNumberbysn() get the sync number with specified ns

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


Copyright 2006 OpenMobileIS. All Rights Reserved.