public class CommentEntityManagerImpl extends AbstractEngineEntityManager<PlatformEngineConfiguration,CommentEntity,CommentDataManager> implements CommentEntityManager
engineConfiguration
dataManager, engineType
Constructor and Description |
---|
CommentEntityManagerImpl(PlatformEngineConfiguration configuration,
CommentDataManager commentDataManager) |
Modifier and Type | Method and Description |
---|---|
long |
countByCriteria(CommentQuery commentQuery) |
CommentQuery |
createCommentQuery() |
void |
deleteByScopeIdAndScopeType(String scopeId,
String scopeType) |
List<Comment> |
findByCriteria(CommentQuery commentQuery) |
List<Comment> |
findByScopeIdAndScopeType(String scopeId,
String scopeType) |
List<Comment> |
findByUserId(String userId) |
getClock, getCommandExecutor, getEngineConfiguration, getEventDispatcher
create, createEntityEvent, delete, delete, delete, findById, fireEntityDeletedEvent, fireEntityInsertedEvent, fireEntityUpdatedEvent, getDataManager, insert, insert, setDataManager, update, update
public CommentEntityManagerImpl(PlatformEngineConfiguration configuration, CommentDataManager commentDataManager)
public CommentQuery createCommentQuery()
createCommentQuery
in interface CommentEntityManager
public List<Comment> findByScopeIdAndScopeType(String scopeId, String scopeType)
findByScopeIdAndScopeType
in interface CommentEntityManager
public List<Comment> findByUserId(String userId)
findByUserId
in interface CommentEntityManager
public long countByCriteria(CommentQuery commentQuery)
countByCriteria
in interface CommentEntityManager
public List<Comment> findByCriteria(CommentQuery commentQuery)
findByCriteria
in interface CommentEntityManager
public void deleteByScopeIdAndScopeType(String scopeId, String scopeType)
deleteByScopeIdAndScopeType
in interface CommentEntityManager