Package com.simpletwitter.common

Examples of com.simpletwitter.common.DatabaseManager.createObject()


  }

  private static TwitterUser createNewUser(TwitterUser tuser) {
    DatabaseManager da = DatabaseManager.getInstance();
    tuser.setDateCreated(new Date());
    TwitterUser createObject = da.createObject(tuser);
    return createObject;
  }
}
View Full Code Here


public class TweetService {

  public static Tweet createTweet(Tweet tweet) {
    DatabaseManager da = DatabaseManager.getInstance();
    return da.createObject(tweet);
  }

  public static Set<Tweet> getTweets(Long userId) {
    DatabaseManager da = DatabaseManager.getInstance();
    List<Tweet> tweetList = da.getChildrenForParent(userId,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.