Examples of eof()


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

      table.insertOr(SqlJetConflictAction.REPLACE, 2, "test note", 1);

      db.beginTransaction(SqlJetTransactionMode.READ_ONLY);
      try {
        ISqlJetCursor cursor = table.lookup(table.getPrimaryKeyIndexName(), 1);
        assertFalse(cursor.eof());
      } finally {
        db.commit();
      }

    }
View Full Code Here

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

        long start = System.currentTimeMillis();
        long end = start + _batch_millis;
        long now;
        ISqlJetCursor cursor = _table.open();
        try {
            boolean more = !cursor.eof();
            while ((now = System.currentTimeMillis()) < end && more) {
                n_read++;
                cursor.getInteger(0);
                more = cursor.next();
            }
View Full Code Here

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

            public Object run(SqlJetDb db) throws SqlJetException {
                List<Object> valuesInScope = new ArrayList<Object>()
                ISqlJetCursor scopeCursor = db.getTable(tableName).scope(indexName, scope);
                Assert.assertNotNull(scopeCursor);
                try {
                    while(!scopeCursor.eof()) {
                        if (scopeCursor.getFieldsCount() == 1 || !allFields) {
                            valuesInScope.add(scopeCursor.getValue(0));
                        } else {
                            Object[] values = new Object[scopeCursor.getFieldsCount()];
                            for (int i = 0; i < values.length; i++) {
View Full Code Here

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

         db.runTransaction(new ISqlJetTransaction() {
            public Object run(SqlJetDb db) throws SqlJetException {
              ISqlJetTable table = db.getTable("beans");
              ISqlJetCursor cur = table.lookup(table.getPrimaryKeyIndexName(),1);
              if (!cur.eof()) {
                long v = cur.getInteger(0);
                Assert.assertEquals(1, v);
                boolean isNull = cur.isNull(0); // -> returns true
                Assert.assertFalse(isNull);
              }
View Full Code Here

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

        public Object run(SqlJetDb db) throws SqlJetException {
            final ISqlJetTable table = db.getTable(TABLE);
            int n_read = 0;
            final ISqlJetCursor cursor = table.open();
            try {
                boolean more = !cursor.eof();
                while (n_read < TOTAL && more  && !exit.get()) {
                    n_read++;
                    cursor.getInteger(0);
                    more = cursor.next();
                }
View Full Code Here

Examples of sos.scheduler.InstallationService.batchInstallationModel.JSInstallations.eof()

    setText(edGlobalSSHUser,globals.getSsh().getUser());
    setText(edGlobalSSHAuthFile,globals.getSsh().getAuthFile());
    setText(edGlobalSSHPassword,globals.getSsh().getPassword());
    setText(edGlobalSSHSudoPassword,globals.getSsh().getSudoPassword());
    
    while (!jsInstallations.eof()) {
      JSinstallation installation = jsInstallations.next();
      }
  }
 
  public static void main(String[] args) {
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.