net.anotheria.moskitodemo.annotation
Interface ICommentsPersistenceService

All Known Implementing Classes:
CommentsPersistenceServiceImpl

public interface ICommentsPersistenceService


Method Summary
 Comment createComment(Comment comment)
          Creates a new Comment object.
 List<Comment> createComments(List<Comment> list)
          Creates multiple new Comment objects.
 void deleteComment(String id)
          Deletes a Comment object by id.
 void deleteComments(List<Comment> list)
          Deletes multiple Comment object.
 Comment getComment(String id)
          Returns the Comment object with the specified id.
 List<Comment> getComments()
          Returns all Comments objects stored.
 List<Comment> getComments(net.anotheria.util.slicer.Segment aSegment)
          Returns Comments objects segment.
 List<Comment> getCommentsByProperty(QueryProperty... properties)
          Returns all Comment objects which match the given property or properties.
 List<Comment> getCommentsByProperty(net.anotheria.util.slicer.Segment aSegment, QueryProperty... properties)
          Returns Comment objects segment which match the given property or properties.
 int getCommentsCount()
          Returns all Comments count.
 Comment importComment(Comment comment)
          Imports a new Comment object.
 List<Comment> importComments(List<Comment> list)
          Imports multiple new Comment objects.
 Comment updateComment(Comment comment)
          Updates a Comment object.
 List<Comment> updateComments(List<Comment> list)
          Updates multiple Comment object.
 

Method Detail

getComments

List<Comment> getComments()
                          throws CommentsPersistenceServiceException
Returns all Comments objects stored.

Throws:
CommentsPersistenceServiceException

deleteComment

void deleteComment(String id)
                   throws CommentsPersistenceServiceException
Deletes a Comment object by id.

Throws:
CommentsPersistenceServiceException

deleteComments

void deleteComments(List<Comment> list)
                    throws CommentsPersistenceServiceException
Deletes multiple Comment object.

Throws:
CommentsPersistenceServiceException

getComment

Comment getComment(String id)
                   throws CommentsPersistenceServiceException
Returns the Comment object with the specified id.

Throws:
CommentsPersistenceServiceException

importComment

Comment importComment(Comment comment)
                      throws CommentsPersistenceServiceException
Imports a new Comment object. Returns the imported version.

Throws:
CommentsPersistenceServiceException

importComments

List<Comment> importComments(List<Comment> list)
                             throws CommentsPersistenceServiceException
Imports multiple new Comment objects. Returns the imported versions.

Throws:
CommentsPersistenceServiceException

createComment

Comment createComment(Comment comment)
                      throws CommentsPersistenceServiceException
Creates a new Comment object. Returns the created version.

Throws:
CommentsPersistenceServiceException

createComments

List<Comment> createComments(List<Comment> list)
                             throws CommentsPersistenceServiceException
Creates multiple new Comment objects. Returns the created versions.

Throws:
CommentsPersistenceServiceException

updateComment

Comment updateComment(Comment comment)
                      throws CommentsPersistenceServiceException
Updates a Comment object. Returns the updated version.

Throws:
CommentsPersistenceServiceException

updateComments

List<Comment> updateComments(List<Comment> list)
                             throws CommentsPersistenceServiceException
Updates multiple Comment object. Returns the updated versions.

Throws:
CommentsPersistenceServiceException

getCommentsByProperty

List<Comment> getCommentsByProperty(QueryProperty... properties)
                                    throws CommentsPersistenceServiceException
Returns all Comment objects which match the given property or properties.

Throws:
CommentsPersistenceServiceException

getCommentsCount

int getCommentsCount()
                     throws CommentsPersistenceServiceException
Returns all Comments count.

Throws:
CommentsPersistenceServiceException

getComments

List<Comment> getComments(net.anotheria.util.slicer.Segment aSegment)
                          throws CommentsPersistenceServiceException
Returns Comments objects segment.

Throws:
CommentsPersistenceServiceException

getCommentsByProperty

List<Comment> getCommentsByProperty(net.anotheria.util.slicer.Segment aSegment,
                                    QueryProperty... properties)
                                    throws CommentsPersistenceServiceException
Returns Comment objects segment which match the given property or properties.

Throws:
CommentsPersistenceServiceException


Copyright © 2010-2012 anotheria.net. All Rights Reserved.