Package com.impetus.client.twitter.entities

Examples of com.impetus.client.twitter.entities.PreferenceCassandra


     * Save preference.
     */
    protected void savePreference()
    {
        twitter.createEntityManager();
        twitter.savePreference(userId1, new PreferenceCassandra("P1", "Motif", "2"));
        twitter.closeEntityManager();

        twitter.createEntityManager();
        twitter.savePreference(userId2, new PreferenceCassandra("P2", "High Contrast", "3"));
        twitter.closeEntityManager();
    }
View Full Code Here


                        .parseLong("1344079061111")).getTime()), new java.sql.Time(new Date(Long
                        .parseLong("1344079062222")).getTime()), new java.sql.Timestamp(new Date(Long
                        .parseLong("13440790653333")).getTime()), new BigInteger("123456789"),
                new BigDecimal(123456789), cal));

        user1.setPreference(new PreferenceCassandra("P1", "Motif", "2"));

        user1.addExternalLink(new ExternalLinkCassandra("L1", "Facebook", "http://facebook.com/coolnerd"));
        user1.addExternalLink(new ExternalLinkCassandra("L2", "LinkedIn", "http://linkedin.com/in/devilmate"));

        user1.addTweet(new TweetCassandra("Here is my first tweet", "Web"));
View Full Code Here

                        .parseLong("1344079064444")).getTime()), new java.sql.Time(new Date(Long
                        .parseLong("1344079065555")).getTime()), new java.sql.Timestamp(new Date(Long
                        .parseLong("1344079066666")).getTime()), new BigInteger("123456790"),
                new BigDecimal(123456790), cal));

        user2.setPreference(new PreferenceCassandra("P2", "High Contrast", "3"));

        user2.addExternalLink(new ExternalLinkCassandra("L3", "GooglePlus", "http://plus.google.com/inviteme"));
        user2.addExternalLink(new ExternalLinkCassandra("L4", "Yahoo", "http://yahoo.com/profiles/itsmeamry"));

        user2.addTweet(new TweetCassandra("Saurabh tweets for the first time", "Phone"));
View Full Code Here

TOP

Related Classes of com.impetus.client.twitter.entities.PreferenceCassandra

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.