Examples of lastError()


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

      query.bindValue(":isDirty", false);

    check = query.exec();
    if (!check) {
      logger.log(logger.MEDIUM, "SharedNotebook Table insert failed.");
      logger.log(logger.MEDIUM, query.lastError().toString());
    }
  }
  // Check if a notebook exists
  public boolean exists(long id) {
        NSqlQuery query = new NSqlQuery(db.getConnection());
View Full Code Here

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

         boolean check = query.prepare("Select id from sharednotebook where id=:id");
         query.bindValue(":id", id);
    check = query.exec();
    if (!check) {
      logger.log(logger.MEDIUM, "SharedNotebook Table exists check failed.");
      logger.log(logger.MEDIUM, query.lastError().toString());
    }
    if (query.next())
      return true;
        logger.log(logger.EXTREME, "Shared notebook " +id +" does not exist");   
    return false;
View Full Code Here

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

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

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

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

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

    query.bindValue(":isDirty", isDirty);
   
    check = query.exec();
    if (!check) {
      logger.log(logger.MEDIUM, "SharedNotebook Table update failed.");
      logger.log(logger.MEDIUM, query.lastError().toString());
    }
  }
  // Load notebooks from the database
  public List<SharedNotebook> getAll() {
    SharedNotebook tempNotebook;
View Full Code Here

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

    query.prepare("delete from DeletedItems where guid=:guid and type=:type");
    query.bindValue(":guid", guid);
    query.bindValue(":type", type);
    if (!query.exec()) {
      logger.log(logger.LOW, "Expunge deleted items failed.");
      logger.log(logger.LOW, query.lastError());
    }
  }
  public List<DeletedItemRecord> getAllDeleted() {
    logger.log(logger.HIGH, "Entering DeletedTable.getAllDeleted");
    List<DeletedItemRecord> list = new ArrayList<DeletedItemRecord>();
View Full Code Here

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

    query.prepare("Select NoteGuid from NoteTags where tagGuid = :guid");
   
    query.bindValue(":guid", tagGuid);
    if (!query.exec()) {
      logger.log(logger.EXTREME, "getTagNotes SQL select has failed.");
      logger.log(logger.MEDIUM, query.lastError());
      return notes;
    }
    while (query.next()) {
      notes.add(query.valueString(0));
   
View Full Code Here

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

    List<NoteTagsRecord> tags = new ArrayList<NoteTagsRecord>();
   
    NSqlQuery query = new NSqlQuery(db.getConnection());
    if (!query.exec("Select TagGuid, NoteGuid from NoteTags")) {
      logger.log(logger.EXTREME, "NoteTags SQL select has failed.");
      logger.log(logger.MEDIUM, query.lastError());
      return null;
    }
    while (query.next()) {
      NoteTagsRecord record = new NoteTagsRecord();
      record.tagGuid = query.valueString(0);
View Full Code Here

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

    query.bindValue(":tagGuid", tagGuid);
    query.exec();
   
    if (!check) {
      logger.log(logger.EXTREME, "checkNoteTags SQL select has failed.");
      logger.log(logger.MEDIUM, query.lastError());
      return false;
    }
   
    if (query.next()) {
      return true;
View Full Code Here

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

    query.bindValue(":tagGuid", tagGuid);
           
    check = query.exec();
    if (!check) {
      logger.log(logger.MEDIUM, "NoteTags Table insert failed.");   
      logger.log(logger.MEDIUM, query.lastError());
    }
    check = query.prepare("Update Note set isDirty=:isDirty where guid=:guid");
    if (!check)
      logger.log(logger.EXTREME, "RNoteTagsTable.saveNoteTag prepare has failed.");
    query.bindValue(":isDirty", isDirty);
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.