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