net.anotheria.moskitodemo.sqltrace.persistence
Class CommentsPersistenceServiceImpl

java.lang.Object
  extended by net.anotheria.db.service.BasePersistenceServiceJDBCImpl
      extended by net.anotheria.moskitodemo.sqltrace.persistence.CommentsPersistenceServiceImpl
All Implemented Interfaces:
ICommentsPersistenceService

public class CommentsPersistenceServiceImpl
extends net.anotheria.db.service.BasePersistenceServiceJDBCImpl
implements ICommentsPersistenceService


Field Summary
 
Fields inherited from class net.anotheria.db.service.BasePersistenceServiceJDBCImpl
log
 
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 objects.
 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.
 List<Comment> getCommentsByProperty(net.anotheria.util.slicer.Segment aSegment, QueryProperty... aProperties)
          Returns Comment objects segment which match the given property.
 int getCommentsCount()
          Returns Comments objects count.
 Comment importComment(Comment comment)
          Imports a new Comment object.
 List<Comment> importComments(List<Comment> list)
          Imports multiple new Comment objects.
 void init()
           
 Comment updateComment(Comment comment)
          Updates a Comment object.
 List<Comment> updateComments(List<Comment> list)
          Updates multiple Comment objects.
 
Methods inherited from class net.anotheria.db.service.BasePersistenceServiceJDBCImpl
close, close, close, getConnection, release, release, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

init

public void init()
Overrides:
init in class net.anotheria.db.service.BasePersistenceServiceJDBCImpl

getComments

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

Specified by:
getComments in interface ICommentsPersistenceService
Throws:
CommentsPersistenceServiceException

deleteComment

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

Specified by:
deleteComment in interface ICommentsPersistenceService
Throws:
CommentsPersistenceServiceException

deleteComments

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

Specified by:
deleteComments in interface ICommentsPersistenceService
Throws:
CommentsPersistenceServiceException

getComment

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

Specified by:
getComment in interface ICommentsPersistenceService
Throws:
CommentsPersistenceServiceException

importComment

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

Specified by:
importComment in interface ICommentsPersistenceService
Throws:
CommentsPersistenceServiceException

importComments

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

Specified by:
importComments in interface ICommentsPersistenceService
Throws:
CommentsPersistenceServiceException

createComment

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

Specified by:
createComment in interface ICommentsPersistenceService
Throws:
CommentsPersistenceServiceException

createComments

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

Specified by:
createComments in interface ICommentsPersistenceService
Throws:
CommentsPersistenceServiceException

updateComment

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

Specified by:
updateComment in interface ICommentsPersistenceService
Throws:
CommentsPersistenceServiceException

updateComments

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

Specified by:
updateComments in interface ICommentsPersistenceService
Throws:
CommentsPersistenceServiceException

getCommentsByProperty

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

Specified by:
getCommentsByProperty in interface ICommentsPersistenceService
Throws:
CommentsPersistenceServiceException

getCommentsCount

public int getCommentsCount()
                     throws CommentsPersistenceServiceException
Returns Comments objects count.

Specified by:
getCommentsCount in interface ICommentsPersistenceService
Throws:
CommentsPersistenceServiceException

getComments

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

Specified by:
getComments in interface ICommentsPersistenceService
Throws:
CommentsPersistenceServiceException

getCommentsByProperty

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

Specified by:
getCommentsByProperty in interface ICommentsPersistenceService
Throws:
CommentsPersistenceServiceException


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