org.openmobileis.synchro.sync4j.client
Class Sync4jFODBSyncSource

java.lang.Object
  extended byorg.openmobileis.synchro.sync4j.client.Sync4jFODBSyncSource

public final class Sync4jFODBSyncSource
extends java.lang.Object

Title: OpenMobileIS project source
Description: Default Sync4j Source

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

Constructor Summary
Sync4jFODBSyncSource()
           
 
Method Summary
 void beginSync(int arg0)
           
 void commitSync()
           
protected  char convertActionStateToSyncItem(ActionDB action)
           
protected  SyncItem encodeActionInSyncItem(ActionDB action)
           
 SyncItem[] getAllSyncItems(java.security.Principal arg0)
           
 SyncItem[] getDeletedSyncItems(java.security.Principal arg0, java.util.Date arg1)
           
 java.lang.String getName()
           
 SyncItem[] getNewSyncItems(java.security.Principal arg0, java.util.Date arg1)
           
 java.lang.String getSourceURI()
          Getter for property uri.
protected  SyncItem[] getSyncItemForState(int state)
           
 java.lang.String getType()
           
 SyncItem[] getUpdatedSyncItems(java.security.Principal arg0, java.util.Date arg1)
           
 void registerSynchroListener(SynchroFODBReturnListener listener)
           
 void removeSyncItem(java.security.Principal arg0, SyncItem syncItem)
           
 void setName(java.lang.String name)
           
 void setSourceURI(java.lang.String sourceURI)
          Setter for property uri.
 SyncItem setSyncItem(java.security.Principal arg0, SyncItem syncItem)
           
 void setType(java.lang.String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sync4jFODBSyncSource

public Sync4jFODBSyncSource()
Method Detail

registerSynchroListener

public void registerSynchroListener(SynchroFODBReturnListener listener)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getSourceURI

public java.lang.String getSourceURI()
Getter for property uri.

Returns:
Value of property uri.

setSourceURI

public void setSourceURI(java.lang.String sourceURI)
Setter for property uri.

Parameters:
sourceURI - New value of property uri.

getType

public java.lang.String getType()

setType

public void setType(java.lang.String type)

getAllSyncItems

public SyncItem[] getAllSyncItems(java.security.Principal arg0)
                           throws SyncException
Throws:
SyncException

getDeletedSyncItems

public SyncItem[] getDeletedSyncItems(java.security.Principal arg0,
                                      java.util.Date arg1)
                               throws SyncException
Throws:
SyncException

getNewSyncItems

public SyncItem[] getNewSyncItems(java.security.Principal arg0,
                                  java.util.Date arg1)
                           throws SyncException
Throws:
SyncException

getUpdatedSyncItems

public SyncItem[] getUpdatedSyncItems(java.security.Principal arg0,
                                      java.util.Date arg1)
                               throws SyncException
Throws:
SyncException

removeSyncItem

public void removeSyncItem(java.security.Principal arg0,
                           SyncItem syncItem)
                    throws SyncException
Throws:
SyncException

setSyncItem

public SyncItem setSyncItem(java.security.Principal arg0,
                            SyncItem syncItem)
                     throws SyncException
Throws:
SyncException

beginSync

public void beginSync(int arg0)
               throws SyncException
Throws:
SyncException

commitSync

public void commitSync()
                throws SyncException
Throws:
SyncException

convertActionStateToSyncItem

protected char convertActionStateToSyncItem(ActionDB action)

encodeActionInSyncItem

protected SyncItem encodeActionInSyncItem(ActionDB action)
                                   throws SyncException
Throws:
SyncException

getSyncItemForState

protected SyncItem[] getSyncItemForState(int state)
                                  throws SyncException
Throws:
SyncException


Copyright 2006 OpenMobileIS. All Rights Reserved.