Examples of lastError()


Examples of cx.fbn.nevernote.sql.driver.NSqlQuery.lastError()

    query.prepare("Update "+dbName+" set guid=:newGuid where guid=:oldGuid");
    query.bindValue(":oldGuid", oldGuid);
    query.bindValue(":newGuid", newGuid);
    if (!query.exec()) {
      logger.log(logger.MEDIUM, dbName+" guid update failed.");
      logger.log(logger.MEDIUM, query.lastError());
    }
    
    // Update any notes containing the notebook guid
    query.prepare("Update Note set notebookGuid=:newGuid where notebookGuid=:oldGuid");
    query.bindValue(":oldGuid", oldGuid);
View Full Code Here

Examples of cx.fbn.nevernote.sql.driver.NSqlQuery.lastError()

    query.prepare("Update Note set notebookGuid=:newGuid where notebookGuid=:oldGuid");
    query.bindValue(":oldGuid", oldGuid);
    query.bindValue(":newGuid", newGuid);
    if (!query.exec()) {
      logger.log(logger.MEDIUM, dbName+" guid update for note failed.");
      logger.log(logger.MEDIUM, query.lastError());
    }
   
    // Update any watch folders with the new guid
    query = new NSqlQuery(db.getConnection());
    query.prepare("Update WatchFolders set notebook=:newGuid where notebook=:oldGuid");
View Full Code Here

Examples of cx.fbn.nevernote.sql.driver.NSqlQuery.lastError()

    query.prepare("Update WatchFolders set notebook=:newGuid where notebook=:oldGuid");
    query.bindValue(":oldGuid", oldGuid);
    query.bindValue(":newGuid", newGuid);
    if (!query.exec()) {
      logger.log(logger.MEDIUM, "Update WatchFolder notebook failed.");
      logger.log(logger.MEDIUM, query.lastError().toString());
    }
  }
  // Get a list of notes that need to be updated
  public List <Notebook> getDirty() {
    Notebook tempNotebook;
View Full Code Here

Examples of cx.fbn.nevernote.sql.driver.NSqlQuery.lastError()

           else
             return;
    }
    query.bindValue(":guid", guid);
    if (!query.exec())
      logger.log(logger.LOW, "Error setting "+dbName+" icon. " +query.lastError());
  }
  // Set the notebooks custom icon
  public void setReadOnly(String guid, boolean readOnly) {
    NSqlQuery query = new NSqlQuery(db.getConnection());
    if (!query.prepare("update "+dbName+" set readOnly=:readOnly where guid=:guid"))
View Full Code Here

Examples of cx.fbn.nevernote.sql.driver.NSqlQuery.lastError()

    if (!query.prepare("update "+dbName+" set readOnly=:readOnly where guid=:guid"))
      logger.log(logger.EXTREME, "Error preparing "+dbName+" read only.");
    query.bindValue(":guid", guid);
    query.bindValue(":readOnly", readOnly);
    if (!query.exec())
      logger.log(logger.LOW, "Error setting "+dbName+" read only. " +query.lastError());
  }

  // does a record exist?
  public String findNotebookByName(String newname) {
    
View Full Code Here

Examples of cx.fbn.nevernote.sql.driver.NSqlQuery.lastError()

    query.bindValue(":newGuid", newGuid);
    query.bindValue(":oldGuid", oldGuid);
    query.exec();
    if (!check) {
      logger.log(logger.MEDIUM, "SavedSearch guid update failed.");
      logger.log(logger.MEDIUM, query.lastError());
    }
  }
  // Get dirty tags
  public List<SavedSearch> getDirty() {
    SavedSearch search;
View Full Code Here

Examples of cx.fbn.nevernote.sql.driver.NSqlQuery.lastError()

           else
             return;
    }
    query.bindValue(":guid", guid);
    if (!query.exec())
      logger.log(logger.LOW, "Error setting SavedSearch icon. " +query.lastError());
  }

  // Get a list of all icons
  public HashMap<String, QIcon> getAllIcons() {
    HashMap<String, QIcon> values = new HashMap<String, QIcon>();
View Full Code Here

Examples of cx.fbn.nevernote.sql.driver.NSqlQuery.lastError()

        query.prepare("Update Sync set value=:value where key=:key");
        query.bindValue(":key", key);
        query.bindValue(":value", value);
    if (!query.exec()) {
      logger.log(logger.MEDIUM, "setRecord from sync failed.");
      logger.log(logger.MEDIUM, query.lastError());
    }
    return;
  }

  // Set the last sequence date
View Full Code Here

Examples of cx.fbn.nevernote.sql.driver.NSqlQuery.lastError()

  public List<String> getIgnoreRecords(String type) {
    List<String> values = new ArrayList<String>();
        NSqlQuery query = new NSqlQuery(db.getConnection());
        if (!query.prepare("Select value from Sync where key like :type")) {
      logger.log(logger.MEDIUM, "getIgnoreRecords from sync failed.");
      logger.log(logger.MEDIUM, query.lastError());
      return null;
    }
        query.bindValue(":type", "IGNORE" +type +"-%");
        query.exec();
    while (query.next()) {
View Full Code Here

Examples of cx.fbn.nevernote.sql.driver.NSqlQuery.lastError()

        NSqlQuery query = new NSqlQuery(db.getConnection());
    query.prepare("delete from WatchFolders where folder=:folder");
    query.bindValue(":folder", folder);
    if (!query.exec()) {
      logger.log(logger.MEDIUM, "Expunge WatchFolder failed.");
      logger.log(logger.MEDIUM, query.lastError());
    }
  }
  public void expungeAll() {
        NSqlQuery query = new NSqlQuery(db.getConnection());
    if (!query.exec("delete from WatchFolders")) {
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.