com.funambol.email.cache
Class CrcCachedSyncSource
java.lang.Object
com.funambol.framework.engine.source.AbstractSyncSource
com.funambol.email.cache.CrcCachedSyncSource
- All Implemented Interfaces:
- com.funambol.framework.tools.beans.LazyInitBean, java.io.Serializable, com.funambol.framework.engine.source.SyncSource
- Direct Known Subclasses:
- EmailSyncSource
- public abstract class CrcCachedSyncSource
- extends com.funambol.framework.engine.source.AbstractSyncSource
- implements com.funambol.framework.engine.source.SyncSource, java.io.Serializable, com.funambol.framework.tools.beans.LazyInitBean
This class represents a SyncSource that read and store the state of the items
in a support table.
- See Also:
- Serialized Form
Field Summary |
java.util.ArrayList |
itemsSent
keep the items id and the result of send operation |
Fields inherited from class com.funambol.framework.engine.source.AbstractSyncSource |
howManyAdded, howManyDeleted, howManyUpdated, info, LOG_NAME, name, sourceQuery, sourceURI, type |
Methods inherited from class com.funambol.framework.engine.source.AbstractSyncSource |
addSyncItem, getAllSyncItemKeys, getInfo, getName, getSourceQuery, getSourceURI, getSyncItemFromId, getSyncItemKeysFromTwin, getType, isSyncItemInFilterClause, isSyncItemInFilterClause, mergeSyncItems, removeSyncItem, removeSyncItem, setInfo, setName, setOperationStatus, setSourceURI, setType, toString, updateSyncItem |
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 |
addSyncItem, getAllSyncItemKeys, getInfo, getName, getSourceQuery, getSourceURI, getSyncItemFromId, getSyncItemKeysFromTwin, getType, isSyncItemInFilterClause, isSyncItemInFilterClause, mergeSyncItems, removeSyncItem, removeSyncItem, setOperationStatus, updateSyncItem |
itemsSent
public java.util.ArrayList itemsSent
- keep the items id and the result of send operation
CrcCachedSyncSource
public CrcCachedSyncSource()
init
public void init()
throws com.funambol.framework.tools.beans.BeanInitializationException
- Init the syncSource
- Specified by:
init
in interface com.funambol.framework.tools.beans.LazyInitBean
- Throws:
com.funambol.framework.tools.beans.BeanInitializationException
beginSync
public void beginSync(java.security.Principal principal,
int syncMode,
com.funambol.framework.filter.FilterClause filterClause)
throws com.funambol.framework.engine.source.SyncSourceException
- BeginSync
- Specified by:
beginSync
in interface com.funambol.framework.engine.source.SyncSource
- Parameters:
principal
- PrincipalsyncMode
- intfilterClause
- FilterClause
- Throws:
com.funambol.framework.engine.source.SyncSourceException
endSync
public void endSync()
throws com.funambol.framework.engine.source.SyncSourceException
- EndSync
- Specified by:
endSync
in interface com.funambol.framework.engine.source.SyncSource
- Throws:
com.funambol.framework.engine.source.SyncSourceException
getUpdatedSyncItemKeys
public com.funambol.framework.engine.SyncItemKey[] getUpdatedSyncItemKeys(java.sql.Timestamp since,
java.sql.Timestamp to)
throws com.funambol.framework.engine.source.SyncSourceException
- Specified by:
getUpdatedSyncItemKeys
in interface com.funambol.framework.engine.source.SyncSource
- Parameters:
since
- Timestampto
- Timestamp
- Returns:
- SyncItemKey[]
- Throws:
com.funambol.framework.engine.source.SyncSourceException
- See Also:
SyncSource
getNewSyncItemKeys
public com.funambol.framework.engine.SyncItemKey[] getNewSyncItemKeys(java.sql.Timestamp since,
java.sql.Timestamp to)
throws com.funambol.framework.engine.source.SyncSourceException
- Specified by:
getNewSyncItemKeys
in interface com.funambol.framework.engine.source.SyncSource
- Parameters:
since
- Timestampto
- Timestamp
- Returns:
- SyncItemKey[]
- Throws:
com.funambol.framework.engine.source.SyncSourceException
- See Also:
SyncSource
getDeletedSyncItemKeys
public com.funambol.framework.engine.SyncItemKey[] getDeletedSyncItemKeys(java.sql.Timestamp since,
java.sql.Timestamp to)
throws com.funambol.framework.engine.source.SyncSourceException
- Specified by:
getDeletedSyncItemKeys
in interface com.funambol.framework.engine.source.SyncSource
- Parameters:
since
- Timestampto
- Timestamp
- Returns:
- SyncItemKey[]
- Throws:
com.funambol.framework.engine.source.SyncSourceException
- See Also:
SyncSource
getAllSyncItemInfo
public abstract CrcSyncItemInfo[] getAllSyncItemInfo()
throws com.funambol.framework.engine.source.SyncSourceException
- Returns:
- CrcSyncItemInfo[]
- Throws:
com.funambol.framework.engine.source.SyncSourceException
getSyncItemStateFromId
public char getSyncItemStateFromId(com.funambol.framework.engine.SyncItemKey syncItemKey)
throws com.funambol.framework.engine.source.SyncSourceException
- Specified by:
getSyncItemStateFromId
in interface com.funambol.framework.engine.source.SyncSource
- Parameters:
syncItemKey
- SyncItemKey
- Returns:
- char
- Throws:
com.funambol.framework.engine.source.SyncSourceException
insertSentItem
public void insertSentItem(java.lang.String id)
throws com.funambol.framework.engine.source.SyncSourceException
- Parameters:
id
- String
- Throws:
com.funambol.framework.engine.source.SyncSourceException
Copyright © 2003-2006 Funambol.