Package com.funambol.syncclient.blackberry

Examples of com.funambol.syncclient.blackberry.StringVector


     */
    public void setLastTimestamp(long lastTimestamp) throws DataAccessException
    {   
        // FIXME: use J2ME RecordStore here
        mailStore = PersistentStore.getPersistentObject(MAIL_LAST_TIMESTAMP_KEY);
        StringVector data = new StringVector();
        data.insertElementAt(Long.toString(lastTimestamp), 0);
        mailStore.setContents(data);
        mailStore.commit();
    }
View Full Code Here


        // FIXME: use J2ME RecordStore here
        long lastTimestamp = 0l;//this is 0L (long 0)
        mailStore = PersistentStore.getPersistentObject(MAIL_LAST_TIMESTAMP_KEY);
        if (mailStore.getContents() != null)
        {
            StringVector data = (StringVector)mailStore.getContents();
            if (data.elementAt(0) != null)
            {
                lastTimestamp = Long.parseLong((String)data.elementAt(0));
            }
        }
       
        return lastTimestamp;
    }
View Full Code Here

TOP

Related Classes of com.funambol.syncclient.blackberry.StringVector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.