1
我想從記錄20條記錄的爲30如何從表中的行號記錄到30 20之間,JDO查詢Apache中ISI
我有回報JDO查詢看起來像
@javax.jdo.annotations.Queries({
@javax.jdo.annotations.Query(
name="message_getByUsername", language="JDOQL",
value="SELECT FROM com.message.pojo.MessagePojo WHERE to== :username order by SendDate "),
@javax.jdo.annotations.Query(
name="message_getByGroup", language="JDOQL",
value="SELECT FROM com.message.pojo.MessagePojo WHERE group== :group order by SendDate ")
})
像
public List<MessageConversationPojo> retriveInbox(@Named("username") String username) {
List<MessageConversationPojo> listOfMessage = allMatches(new QueryDefault<MessageConversationPojo>(
MessageConversationPojo.class, "message_inbox", "username", retriveUserByUsername(username)));
if (listOfMessage.size() != 0) {
return listOfMessage;
}
return null;
}
現在
和我打電話詢問我怎麼能得到從記錄行數20〜30