com.funambol.domino.engine.cache
Class ExampleSyncSource

java.lang.Object
  extended bycom.funambol.framework.engine.source.AbstractSyncSource
      extended bycom.funambol.domino.engine.cache.CachedSyncSource
          extended bycom.funambol.domino.engine.cache.ExampleSyncSource
All Implemented Interfaces:
com.funambol.framework.tools.beans.LazyInitBean, com.funambol.framework.engine.source.MergeableSyncSource, java.io.Serializable, com.funambol.framework.engine.source.SyncSource

public class ExampleSyncSource
extends CachedSyncSource
implements com.funambol.framework.engine.source.SyncSource

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.funambol.domino.engine.cache.CachedSyncSource
principal, PRODUCT_NAME, syncMode
 
Fields inherited from class com.funambol.framework.engine.source.AbstractSyncSource
howManyAdded, howManyDeleted, howManyUpdated, info, LOG_NAME, name, sourceQuery, sourceURI, type
 
Constructor Summary
ExampleSyncSource()
           
 
Method Summary
 com.funambol.framework.engine.SyncItem addSyncItem(com.funambol.framework.engine.SyncItem syncItem)
           
 void beginSync(java.security.Principal principal, int _int)
          beginSync
 void endSync(java.security.Principal principal)
          endSync
 SyncItemInfo[] getAllSyncItemInfo()
           
 com.funambol.framework.engine.SyncItemKey[] getAllSyncItemKeys()
           
 com.funambol.framework.engine.SyncItem[] getAllSyncItems(java.security.Principal principal)
          getAllSyncItems
 com.funambol.framework.engine.SyncItem getSyncItemFromId(java.security.Principal principal, com.funambol.framework.engine.SyncItemKey syncItemKey)
          getSyncItemFromId
 com.funambol.framework.engine.SyncItem getSyncItemFromId(com.funambol.framework.engine.SyncItemKey syncItemKey)
           
 com.funambol.framework.engine.SyncItem getSyncItemFromTwin(java.security.Principal principal, com.funambol.framework.engine.SyncItem syncItem)
          getSyncItemFromTwin
 com.funambol.framework.engine.SyncItemKey[] getSyncItemKeysFromTwin(com.funambol.framework.engine.SyncItem syncItem)
           
 com.funambol.framework.engine.SyncItem[] getSyncItemsFromIds(java.security.Principal principal, com.funambol.framework.engine.SyncItemKey[] syncItemKeyArray)
          getSyncItemsFromIds
 boolean isSyncItemInFilterClause(com.funambol.framework.engine.SyncItem syncItem)
           
 boolean isSyncItemInFilterClause(com.funambol.framework.engine.SyncItemKey syncItemKey)
           
 boolean mergeSyncItems(com.funambol.framework.engine.SyncItemKey syncItemKey, com.funambol.framework.engine.SyncItem syncItem)
           
protected  void removeAllItems()
           
 void removeSyncItem(java.security.Principal principal, com.funambol.framework.engine.SyncItem syncItem)
          removeSyncItem
 void removeSyncItem(com.funambol.framework.engine.SyncItemKey syncItemKey, java.sql.Timestamp timestamp)
           
 void removeSyncItem(com.funambol.framework.engine.SyncItemKey syncItemKey, java.sql.Timestamp timestamp, boolean b)
           
 void removeSyncItems(java.security.Principal principal, com.funambol.framework.engine.SyncItem[] syncItemArray)
          removeSyncItems
 void setOperationStatus(java.lang.String string, int i, com.funambol.framework.engine.SyncItemKey[] syncItemKey)
           
 com.funambol.framework.engine.SyncItem setSyncItem(java.security.Principal principal, com.funambol.framework.engine.SyncItem syncItem)
          setSyncItem
 com.funambol.framework.engine.SyncItem[] setSyncItems(java.security.Principal principal, com.funambol.framework.engine.SyncItem[] syncItemArray)
          setSyncItems
 com.funambol.framework.engine.SyncItem updateSyncItem(com.funambol.framework.engine.SyncItem syncItem)
           
 
Methods inherited from class com.funambol.domino.engine.cache.CachedSyncSource
beginSync, endSync, getDeletedSyncItemKeys, getJndiDataSourceName, getNewSyncItemKeys, getUpdatedSyncItemKeys, init, setJndiDataSourceName
 
Methods inherited from class com.funambol.framework.engine.source.AbstractSyncSource
commitSync, getInfo, getName, getSourceQuery, getSourceURI, getType, setInfo, setName, setSourceURI, setType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.funambol.framework.engine.source.SyncSource
beginSync, commitSync, endSync, getDeletedSyncItemKeys, getInfo, getName, getNewSyncItemKeys, getSourceURI, getType, getUpdatedSyncItemKeys
 

Constructor Detail

ExampleSyncSource

public ExampleSyncSource()
Method Detail

beginSync

public void beginSync(java.security.Principal principal,
                      int _int)
               throws com.funambol.framework.engine.source.SyncSourceException
beginSync

Parameters:
principal - Principal
_int - int
Throws:
com.funambol.framework.engine.source.SyncSourceException

endSync

public void endSync(java.security.Principal principal)
             throws com.funambol.framework.engine.source.SyncSourceException
endSync

Parameters:
principal - Principal
Throws:
com.funambol.framework.engine.source.SyncSourceException

setSyncItem

public com.funambol.framework.engine.SyncItem setSyncItem(java.security.Principal principal,
                                                          com.funambol.framework.engine.SyncItem syncItem)
                                                   throws com.funambol.framework.engine.source.SyncSourceException
setSyncItem

Parameters:
principal - Principal
syncItem - SyncItem
Returns:
SyncItem
Throws:
com.funambol.framework.engine.source.SyncSourceException

setSyncItems

public com.funambol.framework.engine.SyncItem[] setSyncItems(java.security.Principal principal,
                                                             com.funambol.framework.engine.SyncItem[] syncItemArray)
                                                      throws com.funambol.framework.engine.source.SyncSourceException
setSyncItems

Parameters:
principal - Principal
syncItemArray - SyncItem[]
Returns:
SyncItem[]
Throws:
com.funambol.framework.engine.source.SyncSourceException

removeSyncItem

public void removeSyncItem(java.security.Principal principal,
                           com.funambol.framework.engine.SyncItem syncItem)
                    throws com.funambol.framework.engine.source.SyncSourceException
removeSyncItem

Parameters:
principal - Principal
syncItem - SyncItem
Throws:
com.funambol.framework.engine.source.SyncSourceException

removeSyncItems

public void removeSyncItems(java.security.Principal principal,
                            com.funambol.framework.engine.SyncItem[] syncItemArray)
                     throws com.funambol.framework.engine.source.SyncSourceException
removeSyncItems

Parameters:
principal - Principal
syncItemArray - SyncItem[]
Throws:
com.funambol.framework.engine.source.SyncSourceException

getAllSyncItems

public com.funambol.framework.engine.SyncItem[] getAllSyncItems(java.security.Principal principal)
                                                         throws com.funambol.framework.engine.source.SyncSourceException
getAllSyncItems

Parameters:
principal - Principal
Returns:
SyncItem[]
Throws:
com.funambol.framework.engine.source.SyncSourceException

getSyncItemsFromIds

public com.funambol.framework.engine.SyncItem[] getSyncItemsFromIds(java.security.Principal principal,
                                                                    com.funambol.framework.engine.SyncItemKey[] syncItemKeyArray)
                                                             throws com.funambol.framework.engine.source.SyncSourceException
getSyncItemsFromIds

Parameters:
principal - Principal
syncItemKeyArray - SyncItemKey[]
Returns:
SyncItem[]
Throws:
com.funambol.framework.engine.source.SyncSourceException

getSyncItemFromId

public com.funambol.framework.engine.SyncItem getSyncItemFromId(java.security.Principal principal,
                                                                com.funambol.framework.engine.SyncItemKey syncItemKey)
                                                         throws com.funambol.framework.engine.source.SyncSourceException
getSyncItemFromId

Parameters:
principal - Principal
syncItemKey - SyncItemKey
Returns:
SyncItem
Throws:
com.funambol.framework.engine.source.SyncSourceException

getSyncItemFromTwin

public com.funambol.framework.engine.SyncItem getSyncItemFromTwin(java.security.Principal principal,
                                                                  com.funambol.framework.engine.SyncItem syncItem)
                                                           throws com.funambol.framework.engine.source.SyncSourceException
getSyncItemFromTwin

Parameters:
principal - Principal
syncItem - SyncItem
Returns:
SyncItem
Throws:
com.funambol.framework.engine.source.SyncSourceException

getAllSyncItemInfo

public SyncItemInfo[] getAllSyncItemInfo()
                                  throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
getAllSyncItemInfo in class CachedSyncSource
Returns:
SyncItemInfo[]
Throws:
com.funambol.framework.engine.source.SyncSourceException

getAllSyncItemKeys

public com.funambol.framework.engine.SyncItemKey[] getAllSyncItemKeys()
                                                               throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
getAllSyncItemKeys in interface com.funambol.framework.engine.source.SyncSource
Overrides:
getAllSyncItemKeys in class CachedSyncSource
Throws:
com.funambol.framework.engine.source.SyncSourceException

getSyncItemFromId

public com.funambol.framework.engine.SyncItem getSyncItemFromId(com.funambol.framework.engine.SyncItemKey syncItemKey)
                                                         throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
getSyncItemFromId in interface com.funambol.framework.engine.source.SyncSource
Throws:
com.funambol.framework.engine.source.SyncSourceException

removeSyncItem

public void removeSyncItem(com.funambol.framework.engine.SyncItemKey syncItemKey,
                           java.sql.Timestamp timestamp,
                           boolean b)
                    throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
removeSyncItem in interface com.funambol.framework.engine.source.SyncSource
Throws:
com.funambol.framework.engine.source.SyncSourceException

removeSyncItem

public void removeSyncItem(com.funambol.framework.engine.SyncItemKey syncItemKey,
                           java.sql.Timestamp timestamp)
                    throws com.funambol.framework.engine.source.SyncSourceException
Throws:
com.funambol.framework.engine.source.SyncSourceException

updateSyncItem

public com.funambol.framework.engine.SyncItem updateSyncItem(com.funambol.framework.engine.SyncItem syncItem)
                                                      throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
updateSyncItem in interface com.funambol.framework.engine.source.SyncSource
Throws:
com.funambol.framework.engine.source.SyncSourceException

addSyncItem

public com.funambol.framework.engine.SyncItem addSyncItem(com.funambol.framework.engine.SyncItem syncItem)
                                                   throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
addSyncItem in interface com.funambol.framework.engine.source.SyncSource
Throws:
com.funambol.framework.engine.source.SyncSourceException

getSyncItemKeysFromTwin

public com.funambol.framework.engine.SyncItemKey[] getSyncItemKeysFromTwin(com.funambol.framework.engine.SyncItem syncItem)
                                                                    throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
getSyncItemKeysFromTwin in interface com.funambol.framework.engine.source.SyncSource
Throws:
com.funambol.framework.engine.source.SyncSourceException

mergeSyncItems

public boolean mergeSyncItems(com.funambol.framework.engine.SyncItemKey syncItemKey,
                              com.funambol.framework.engine.SyncItem syncItem)
                       throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
mergeSyncItems in interface com.funambol.framework.engine.source.MergeableSyncSource
Throws:
com.funambol.framework.engine.source.SyncSourceException

isSyncItemInFilterClause

public boolean isSyncItemInFilterClause(com.funambol.framework.engine.SyncItem syncItem)
                                 throws com.funambol.framework.engine.source.SyncSourceException
Throws:
com.funambol.framework.engine.source.SyncSourceException

isSyncItemInFilterClause

public boolean isSyncItemInFilterClause(com.funambol.framework.engine.SyncItemKey syncItemKey)
                                 throws com.funambol.framework.engine.source.SyncSourceException
Throws:
com.funambol.framework.engine.source.SyncSourceException

setOperationStatus

public void setOperationStatus(java.lang.String string,
                               int i,
                               com.funambol.framework.engine.SyncItemKey[] syncItemKey)
Specified by:
setOperationStatus in interface com.funambol.framework.engine.source.SyncSource
Overrides:
setOperationStatus in class CachedSyncSource

removeAllItems

protected void removeAllItems()
                       throws com.funambol.framework.engine.source.SyncSourceException
Specified by:
removeAllItems in class CachedSyncSource
Throws:
com.funambol.framework.engine.source.SyncSourceException


Copyright © 2003-2006 Funambol.