Skip to content

Commit

Permalink
Rename CommentEntryRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBestPessimist committed Apr 24, 2020
1 parent ce5e4d6 commit c99c1c7
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -50,12 +50,12 @@
* There can be multiple Comments for a record.
*/
@Repository
public class CommentsRepository
public class CommentEntryRepository
{
private final IQueryBL queryBL = Services.get(IQueryBL.class);
private final IADTableDAO tableDAO = Services.get(IADTableDAO.class);

public void createComment(final @NonNull String characterData, @NonNull final TableRecordReference tableRecordReference)
public void createCommentEntry(final @NonNull String characterData, @NonNull final TableRecordReference tableRecordReference)
{
final CommentId commentId = getOrCreateChat(tableRecordReference);

Expand All @@ -68,7 +68,7 @@ public void createComment(final @NonNull String characterData, @NonNull final Ta
}

@NonNull
public List<CommentEntry> retrieveLastComments(@NonNull final TableRecordReference tableRecordReference, final int maxNumberOfRecords)
public List<CommentEntry> retrieveLastCommentEntries(@NonNull final TableRecordReference tableRecordReference, final int maxNumberOfRecords)
{
final CommentId commentId = getChatIdOrNull(tableRecordReference);

Expand All @@ -83,7 +83,7 @@ public List<CommentEntry> retrieveLastComments(@NonNull final TableRecordReferen
.setLimit(maxNumberOfRecords)
.create()
.iterateAndStream()
.map(CommentsRepository::toRecordComment)
.map(CommentEntryRepository::toRecordComment)
.collect(GuavaCollectors.toImmutableList());
}

Expand Down

0 comments on commit c99c1c7

Please sign in to comment.