Package cx.fbn.nevernote.sql.driver

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


    NSqlQuery query = new NSqlQuery(db.getConnection());
   
    if (!query.prepare("Select icon from SystemIcon where name=:name and type=:type"))
      logger.log(logger.EXTREME, "Error preparing system icon select.");
    query.bindValue(":name", name);
    query.bindValue(":type", type);
    if (!query.exec())
      logger.log(logger.EXTREME, "Error finding system icon.");
    if (!query.next() || query.getBlob(0) == null)
      return false;
    return true;
View Full Code Here


          QImage i = p.toImage();
           i.save(buffer, filetype.toUpperCase());
           buffer.close();
           QByteArray b = new QByteArray(buffer.buffer());
           if (!b.isNull() && !b.isEmpty())
             query.bindValue(":icon", b.toByteArray());
           else
             return;
    }
    query.bindValue(":name", name);
    query.bindValue(":type", rectype);
View Full Code Here

           if (!b.isNull() && !b.isEmpty())
             query.bindValue(":icon", b.toByteArray());
           else
             return;
    }
    query.bindValue(":name", name);
    query.bindValue(":type", rectype);
    if (!query.exec())
      logger.log(logger.LOW, "Error setting system icon. " +query.lastError());
  }
 
View Full Code Here

             query.bindValue(":icon", b.toByteArray());
           else
             return;
    }
    query.bindValue(":name", name);
    query.bindValue(":type", rectype);
    if (!query.exec())
      logger.log(logger.LOW, "Error setting system icon. " +query.lastError());
  }
 
 
View Full Code Here

          QImage i = p.toImage();
           i.save(buffer, filetype.toUpperCase());
           buffer.close();
           QByteArray b = new QByteArray(buffer.buffer());
           if (!b.isNull() && !b.isEmpty())
             query.bindValue(":icon", b.toByteArray());
           else
             return;
    }
    query.bindValue(":name", name);
    query.bindValue(":type", rectype);
View Full Code Here

           if (!b.isNull() && !b.isEmpty())
             query.bindValue(":icon", b.toByteArray());
           else
             return;
    }
    query.bindValue(":name", name);
    query.bindValue(":type", rectype);
    if (!query.exec())
      logger.log(logger.LOW, "Error setting system icon. " +query.lastError());
  }
View Full Code Here

             query.bindValue(":icon", b.toByteArray());
           else
             return;
    }
    query.bindValue(":name", name);
    query.bindValue(":type", rectype);
    if (!query.exec())
      logger.log(logger.LOW, "Error setting system icon. " +query.lastError());
  }

}
View Full Code Here

        +"notebookModifiable, requireLogin, serviceCreated, shareKey, username, isDirty) "  
        + " Values("
        +":id, :userid, :notebookGuid, :email, "
        +":notebookModifiable, :requireLogin, :serviceCreated, "
        +":shareKey, :username, :isDirty)");
    query.bindValue(":id", tempNotebook.getId());
    query.bindValue(":userid", tempNotebook.getUserId());
    query.bindValue(":notebookGuid", tempNotebook.getNotebookGuid());
    query.bindValue(":email", tempNotebook.getEmail());
    query.bindValue(":notebookModifiable", tempNotebook.isNotebookModifiable());
    query.bindValue(":requireLogin", tempNotebook.isRequireLogin());
View Full Code Here

        + " Values("
        +":id, :userid, :notebookGuid, :email, "
        +":notebookModifiable, :requireLogin, :serviceCreated, "
        +":shareKey, :username, :isDirty)");
    query.bindValue(":id", tempNotebook.getId());
    query.bindValue(":userid", tempNotebook.getUserId());
    query.bindValue(":notebookGuid", tempNotebook.getNotebookGuid());
    query.bindValue(":email", tempNotebook.getEmail());
    query.bindValue(":notebookModifiable", tempNotebook.isNotebookModifiable());
    query.bindValue(":requireLogin", tempNotebook.isRequireLogin());
View Full Code Here

        +":id, :userid, :notebookGuid, :email, "
        +":notebookModifiable, :requireLogin, :serviceCreated, "
        +":shareKey, :username, :isDirty)");
    query.bindValue(":id", tempNotebook.getId());
    query.bindValue(":userid", tempNotebook.getUserId());
    query.bindValue(":notebookGuid", tempNotebook.getNotebookGuid());
    query.bindValue(":email", tempNotebook.getEmail());
    query.bindValue(":notebookModifiable", tempNotebook.isNotebookModifiable());
    query.bindValue(":requireLogin", tempNotebook.isRequireLogin());

    StringBuilder serviceCreated = new StringBuilder(simple.format(tempNotebook.getServiceCreated()));     
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.