public class PersistenceManagerImpl extends Object implements PersistenceManager
| Constructor and Description |
|---|
PersistenceManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
deleteComment(String commentId) |
boolean |
deletePost(Post post) |
List<Post> |
getAllPost(QueryBean query) |
List<Post> |
getAllPost(QueryBean query,
boolean populate) |
Comment |
getComment(String commentId) |
Commons |
getCommons(String commonsId) |
Post |
getPost(String postId,
boolean loadComments) |
void |
init() |
boolean |
postExists(String postId) |
Comment |
saveComment(Comment comment) |
Post |
savePost(Post post) |
public void init()
public boolean postExists(String postId)
postExists in interface PersistenceManagerpublic List<Post> getAllPost(QueryBean query) throws Exception
getAllPost in interface PersistenceManagerExceptionpublic List<Post> getAllPost(QueryBean query, boolean populate) throws Exception
getAllPost in interface PersistenceManagerExceptionpublic Comment getComment(String commentId)
getComment in interface PersistenceManagerpublic Comment saveComment(Comment comment)
saveComment in interface PersistenceManagerpublic boolean deleteComment(String commentId)
deleteComment in interface PersistenceManagerpublic Post savePost(Post post)
savePost in interface PersistenceManagerpublic boolean deletePost(Post post)
deletePost in interface PersistenceManagerpublic Post getPost(String postId, boolean loadComments)
getPost in interface PersistenceManagerpublic Commons getCommons(String commonsId)
getCommons in interface PersistenceManagerCopyright © 2003–2018 Noodle Partners, Inc.. All rights reserved.