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());