本文整理了Java中org.hibernate.ScrollableResults.isLast()
方法的一些代码示例,展示了ScrollableResults.isLast()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ScrollableResults.isLast()
方法的具体详情如下:
包路径:org.hibernate.ScrollableResults
类名称:ScrollableResults
方法名:isLast
[英]Is this the last result?
[中]这是最后的结果吗?
代码示例来源:origin: hibernate/hibernate-orm
assertFalse( results.isLast() );
assertFalse( results.isLast() );
assertFalse( results.isLast() );
assertFalse( results.isLast() );
assertFalse( results.next() );
assertFalse( results.isLast() );
assertFalse( results.next() );
assertFalse( results.isLast() );
assertFalse( results.next() );
assertFalse( results.isLast() );
assertFalse( results.next() );
assertFalse( results.scroll( i ) );
assertFalse( results.isFirst() );
assertFalse( results.isLast() );
assertFalse( results.isLast() );
assertFalse( results.isLast() );
assertFalse( results.isLast() );
代码示例来源:origin: hibernate/hibernate-orm
assertFalse( results.isLast() );
assertFalse( results.previous() );
assertTrue( results.isLast() );
assertFalse( results.isLast() );
assertTrue( results.isLast() );
assertFalse( results.isLast() );
assertTrue( results.isLast() );
assertFalse( results.isLast() );
assertFalse( results.previous() );
assertTrue( results.isLast() );
assertFalse( results.next() );
assertFalse( results.isLast() );
assertFalse( results.next() );
assertTrue( results.isLast() );
assertFalse( results.next() );
assertTrue( results.isLast() );
assertTrue( results.isLast() );
代码示例来源:origin: com.atlassian.hibernate/hibernate.adapter
@Override
public boolean isLast() throws HibernateException {
try {
return results.isLast();
} catch (final PersistenceException ex) {
throw HibernateExceptionAdapter.adapt(ex);
}
}
代码示例来源:origin: hibernate/hibernate-search
assertEquals( "branchnetwork incorrect", "St. George 1D", projection[2] );
assertTrue( "incorrect result count returned", projections.isLast() );
代码示例来源:origin: hibernate/hibernate-search
assertTrue( "afterLast() pointer incorrect", results.isLast() );
assertTrue( "large positive scroll() pointer incorrect", results.isLast() );
代码示例来源:origin: hibernate/hibernate-search
@Test
public void testScrollableResultSet() throws Exception {
FullTextSession fullTextSession = Search.getFullTextSession( openSession() );
Transaction tx = fullTextSession.beginTransaction();
QueryParser parser = new QueryParser( "title", TestConstants.stopAnalyzer );
Query query = parser.parse( "summary:noword" );
org.hibernate.query.Query hibQuery = fullTextSession.createFullTextQuery( query, Clock.class, Book.class );
ScrollableResults result = hibQuery.scroll();
assertNotNull( result );
assertEquals( -1, result.getRowNumber() );
assertEquals( false, result.next() );
result.close();
query = parser.parse( "summary:Festina Or brand:Seiko" );
hibQuery = fullTextSession.createFullTextQuery( query, Clock.class, Book.class );
result = hibQuery.scroll();
assertEquals( -1, result.getRowNumber() );
result.beforeFirst();
assertEquals( true, result.next() );
assertTrue( result.isFirst() );
assertTrue( result.scroll( 1 ) );
assertTrue( result.isLast() );
assertFalse( result.scroll( 1 ) );
tx.commit();
fullTextSession.close();
}
代码示例来源:origin: hibernate/hibernate-search
projection = projections.get();
checkProjectionLast( projection, s );
assertTrue( projections.isLast() );
内容来源于网络,如有侵权,请联系作者删除!