Examples of eof()


Examples of org.tmatesoft.sqljet.core.table.ISqlJetCursor.eof()

    public void testRowCountIsStateless() throws SqlJetException {
        db.runReadTransaction(new ISqlJetTransaction() {
            public Object run(SqlJetDb db) throws SqlJetException {
                SqlJetScope scope = new SqlJetScope(new Object[] {"AB"}, new Object[] {"BC"});
                ISqlJetCursor cursor = db.getTable("table").scope("names_idx", scope);
                Assert.assertTrue(!cursor.eof());
                long count = cursor.getRowCount();
                Assert.assertTrue(count > 0);
                Assert.assertTrue(!cursor.eof());
                Assert.assertTrue(!cursor.eof());
                Assert.assertTrue(cursor.getRowCount() > 0);
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.ISqlJetCursor.eof()

                SqlJetScope scope = new SqlJetScope(new Object[] {"AB"}, new Object[] {"BC"});
                ISqlJetCursor cursor = db.getTable("table").scope("names_idx", scope);
                Assert.assertTrue(!cursor.eof());
                long count = cursor.getRowCount();
                Assert.assertTrue(count > 0);
                Assert.assertTrue(!cursor.eof());
                Assert.assertTrue(!cursor.eof());
                Assert.assertTrue(cursor.getRowCount() > 0);
                cursor.close();

                cursor = db.getTable("table").scope("names_idx", scope);
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.ISqlJetCursor.eof()

        Integer count = (Integer) db.runTransaction(new ISqlJetTransaction() {
            public Object run(SqlJetDb arg0) throws SqlJetException {
                ISqlJetTable table = db.getTable("names");
                ISqlJetCursor cur = table.order(null);
                Integer counter = 0;
                if (!cur.eof()) {
                    do {
                        ++counter;
                    } while (cur.next());

                }
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.ISqlJetCursor.eof()

                ISqlJetCursor cursor = db.getTable("table").scope("names_idx", scope);
                Assert.assertTrue(!cursor.eof());
                long count = cursor.getRowCount();
                Assert.assertTrue(count > 0);
                Assert.assertTrue(!cursor.eof());
                Assert.assertTrue(!cursor.eof());
                Assert.assertTrue(cursor.getRowCount() > 0);
                cursor.close();

                cursor = db.getTable("table").scope("names_idx", scope);
                // now at 0.
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.ISqlJetCursor.eof()

        db.runReadTransaction(new ISqlJetTransaction() {
            public Object run(SqlJetDb db) throws SqlJetException {
                ISqlJetCursor open = table.open();
                try {
                    while (!open.eof()) {
                        long id = open.getInteger("id");
                        Assert.assertNotNull(id);
                        open.next();
                    }
                } finally {
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.ISqlJetCursor.eof()

                cursor = db.getTable("table").scope("names_idx", scope);
                // now at 0.
               
                count = cursor.getRowCount();
                Assert.assertTrue(count > 0);
                Assert.assertTrue(!cursor.eof());
                Assert.assertTrue(cursor.getRowCount() > 0);
                Assert.assertTrue(!cursor.eof());
               
                Assert.assertTrue(cursor.next());
                // now at 1.
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.ISqlJetCursor.eof()

               
                count = cursor.getRowCount();
                Assert.assertTrue(count > 0);
                Assert.assertTrue(!cursor.eof());
                Assert.assertTrue(cursor.getRowCount() > 0);
                Assert.assertTrue(!cursor.eof());
               
                Assert.assertTrue(cursor.next());
                // now at 1.
                Assert.assertFalse(cursor.eof());
                Assert.assertTrue(cursor.getRowCount() == 3);
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.ISqlJetCursor.eof()

                Assert.assertTrue(cursor.getRowCount() > 0);
                Assert.assertTrue(!cursor.eof());
               
                Assert.assertTrue(cursor.next());
                // now at 1.
                Assert.assertFalse(cursor.eof());
                Assert.assertTrue(cursor.getRowCount() == 3);
                Assert.assertTrue(cursor.next());
               
                // now at 2.
                Assert.assertFalse(cursor.eof());
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.ISqlJetCursor.eof()

                Assert.assertFalse(cursor.eof());
                Assert.assertTrue(cursor.getRowCount() == 3);
                Assert.assertTrue(cursor.next());
               
                // now at 2.
                Assert.assertFalse(cursor.eof());
                Assert.assertFalse(cursor.eof());
                Assert.assertTrue(cursor.getRowCount() == 3);
                Assert.assertFalse(cursor.next());
                // now at eof
                Assert.assertTrue(cursor.eof());
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.ISqlJetCursor.eof()

                Assert.assertTrue(cursor.getRowCount() == 3);
                Assert.assertTrue(cursor.next());
               
                // now at 2.
                Assert.assertFalse(cursor.eof());
                Assert.assertFalse(cursor.eof());
                Assert.assertTrue(cursor.getRowCount() == 3);
                Assert.assertFalse(cursor.next());
                // now at eof
                Assert.assertTrue(cursor.eof());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.