public class CommentQueryImpl extends AbstractQuery<CommentQuery,Comment> implements CommentQuery, CacheAwareQuery<CommentEntity>
ListQueryParameterObject.OrderBy, ListQueryParameterObject.ResultType
Query.NullHandlingOnOrder
Modifier and Type | Field and Description |
---|---|
protected String |
content |
protected String |
contentLike |
protected Date |
created |
protected Date |
createdAfter |
protected Date |
createdBefore |
protected String |
id |
protected String |
scopeId |
protected String |
scopeType |
protected Date |
updated |
protected Date |
updatedAfter |
protected Date |
updatedBefore |
protected String |
userId |
commandContext, commandExecutor
databaseType, DEFAULT_ORDER_BY, defaultOrderBy, firstResult, maxResults, nullHandlingColumn, nullHandlingOnOrder, orderByCollection, orderProperty, parameter, resultType, SORTORDER_ASC, SORTORDER_DESC
Constructor and Description |
---|
CommentQueryImpl(CommandExecutor commandExecutor) |
Modifier and Type | Method and Description |
---|---|
CommentQuery |
content(String content) |
CommentQuery |
contentLike(String contentLike) |
CommentQuery |
created(Date created) |
CommentQuery |
createdAfter(Date createdAfter) |
CommentQuery |
createdBefore(Date createdBefore) |
long |
executeCount(CommandContext commandContext) |
List<Comment> |
executeList(CommandContext commandContext) |
String |
getContent() |
String |
getContentLike() |
Date |
getCreated() |
Date |
getCreatedAfter() |
Date |
getCreatedBefore() |
String |
getId() |
String |
getScopeId() |
String |
getScopeType() |
Date |
getUpdated() |
Date |
getUpdatedAfter() |
Date |
getUpdatedBefore() |
String |
getUserId() |
CommentQuery |
id(String id) |
CommentQuery |
orderByCreatedTime() |
CommentQuery |
orderByUpdatedTime() |
CommentQuery |
scopeId(String scopeId) |
CommentQuery |
scopeType(String scopeType) |
CommentQuery |
updated(Date updated) |
CommentQuery |
updatedAfter(Date updatedAfter) |
CommentQuery |
updatedBefore(Date updatedBefore) |
CommentQuery |
userId(String userId) |
asc, checkQueryOk, count, desc, direction, execute, executeSingleResult, list, listPage, orderBy, orderBy, setCommandExecutor, singleResult
addOrder, buildOrderBy, getDatabaseType, getFirstResult, getFirstRow, getLastRow, getMaxResults, getNullHandlingColumn, getOrderBy, getOrderByCollectionSafe, getOrderByForWindow, getOuterJoinOrderBy, getParameter, hasOrderBy, hasOrderByForColumn, isNeedsPaging, mapOrderByToSql, setDatabaseType, setFirstResult, setMaxResults, setNullHandlingColumn, setParameter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asc, count, desc, list, listPage, orderBy, orderBy, singleResult
enhanceCachedValue
protected String id
protected String scopeId
protected String scopeType
protected String userId
protected String content
protected String contentLike
protected Date created
protected Date updated
protected Date createdBefore
protected Date createdAfter
protected Date updatedBefore
protected Date updatedAfter
public CommentQueryImpl(CommandExecutor commandExecutor)
public long executeCount(CommandContext commandContext)
executeCount
in class AbstractQuery<CommentQuery,Comment>
public List<Comment> executeList(CommandContext commandContext)
executeList
in class AbstractQuery<CommentQuery,Comment>
public CommentQuery id(String id)
id
in interface CommentQuery
public CommentQuery scopeId(String scopeId)
scopeId
in interface CommentQuery
public CommentQuery scopeType(String scopeType)
scopeType
in interface CommentQuery
public CommentQuery userId(String userId)
userId
in interface CommentQuery
public CommentQuery content(String content)
content
in interface CommentQuery
public CommentQuery contentLike(String contentLike)
contentLike
in interface CommentQuery
public CommentQuery created(Date created)
created
in interface CommentQuery
public CommentQuery updated(Date updated)
updated
in interface CommentQuery
public CommentQuery createdBefore(Date createdBefore)
createdBefore
in interface CommentQuery
public CommentQuery updatedBefore(Date updatedBefore)
updatedBefore
in interface CommentQuery
public CommentQuery createdAfter(Date createdAfter)
createdAfter
in interface CommentQuery
public CommentQuery updatedAfter(Date updatedAfter)
updatedAfter
in interface CommentQuery
public CommentQuery orderByUpdatedTime()
orderByUpdatedTime
in interface CommentQuery
public CommentQuery orderByCreatedTime()
orderByCreatedTime
in interface CommentQuery
public String getId()
getId
in interface CacheAwareQuery<CommentEntity>
public String getScopeId()
public String getScopeType()
public String getUserId()
public String getContent()
public String getContentLike()
public Date getCreated()
public Date getUpdated()
public Date getCreatedBefore()
public Date getCreatedAfter()
public Date getUpdatedBefore()
public Date getUpdatedAfter()