Package cx.fbn.nevernote.sql.driver

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


  }
  public void expungeAll() {
        NSqlQuery query = new NSqlQuery(db.getConnection());
    if (!query.exec("delete from WatchFolders")) {
      logger.log(logger.MEDIUM, "Expunge all WatchFolder failed.");
      logger.log(logger.MEDIUM, query.lastError());
    }
  }
  public List<WatchFolderRecord> getAll() {
    logger.log(logger.HIGH, "Entering RWatchFolders.getAll");
   
View Full Code Here


      "hashCode=:hashCode, name=:name, isDirty=:isDirty "
      +"where guid=:guid");
     
    if (!check) {
      logger.log(logger.EXTREME, "Tag SQL update prepare has failed.");
      logger.log(logger.EXTREME, query.lastError());
    }
    query.bindValue(":parentGuid", tempTag.getParentGuid());
    query.bindValue(":sequence", tempTag.getUpdateSequenceNum());
    query.bindValue(":hashCode", tempTag.hashCode());
    query.bindValue(":name", tempTag.getName());
View Full Code Here

         check = query.prepare("delete from Tag "
           +"where guid=:guid");
    if (!check) {
      logger.log(logger.EXTREME, "Tag SQL delete prepare has failed.");
      logger.log(logger.EXTREME, query.lastError());
    }
    query.bindValue(":guid", guid);
    check = query.exec();
    if (!check)
      logger.log(logger.MEDIUM, "Tag delete failed.");
View Full Code Here

   
         check = query.prepare("delete from NoteTags "
           +"where tagGuid=:guid");
    if (!check) {
      logger.log(logger.EXTREME, "NoteTags SQL delete prepare has failed.");
      logger.log(logger.EXTREME, query.lastError());
    }
   
    query.bindValue(":guid", guid);
    check = query.exec();
    if (!check)
View Full Code Here

        NSqlQuery query = new NSqlQuery(db.getConnection());
    check = query.prepare("Insert Into Tag (guid, parentGuid, sequence, hashCode, name, isDirty, linked, realName, notebookGuid)"
        +" Values(:guid, :parentGuid, :sequence, :hashCode, :name, :isDirty, :linked, :realName, :notebookGuid)");
    if (!check) {
      logger.log(logger.EXTREME, "Tag SQL insert prepare has failed.");
      logger.log(logger.EXTREME, query.lastError());
    }
    query.bindValue(":guid", tempTag.getGuid());
    query.bindValue(":parentGuid", tempTag.getParentGuid());
    query.bindValue(":sequence", tempTag.getUpdateSequenceNum());
    query.bindValue(":hashCode", tempTag.hashCode());
View Full Code Here

    query.bindValue(":notebookGuid", notebookGuid);
   
    check = query.exec();
    if (!check) {
      logger.log(logger.MEDIUM, "Tag Table insert failed.");
      logger.log(logger.MEDIUM, query.lastError());
    }
  }
  // Update a tag's parent
  public void updateTagParent(String guid, String parentGuid) {
    boolean check;
View Full Code Here

    
        NSqlQuery query = new NSqlQuery(db.getConnection());
    check = query.prepare("Update Tag set parentGuid=:parentGuid where guid=:guid");
    if (!check) {
      logger.log(logger.EXTREME, "Tag SQL tag parent update prepare has failed.");
      logger.log(logger.EXTREME, query.lastError());
    }

    query.bindValue(":parentGuid", parentGuid);
    query.bindValue(":guid", guid);
   
View Full Code Here

    query.bindValue(":guid", guid);
   
    check = query.exec();
    if (!check) {
      logger.log(logger.MEDIUM, "Tag parent update failed.");
      logger.log(logger.MEDIUM, query.lastError());
    }
  }
  //Save tags from Evernote
  public void saveTags(List<Tag> tags) {
    Tag tempTag;
View Full Code Here

    query.bindValue(":guid", guid);
   
    query.exec();
    if (!check) {
      logger.log(logger.MEDIUM, "Tag sequence update failed.");
      logger.log(logger.MEDIUM, query.lastError());
    }
    
  }
  // Update a tag sequence number
  public void updateTagGuid(String oldGuid, String newGuid) {
View Full Code Here

    query.bindValue(":newGuid", newGuid);
    query.bindValue(":oldGuid", oldGuid);
    query.exec();
    if (!check) {
      logger.log(logger.MEDIUM, "Tag guid update failed.");
      logger.log(logger.MEDIUM, query.lastError());
    }
   
    check = query.prepare("Update Tag set parentGuid=:newGuid where parentGuid=:oldGuid");
    query.bindValue(":newGuid", newGuid);
    query.bindValue(":oldGuid", oldGuid);
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.