Update

Examples of io.daobab.Update class usage:

Update whole entity:

	//without transaction
	Update.to(daoPizza).executeUpdate(myPizza);
	Update.to(daoPizza,new Pizza());								
								
	//within transaction
	Update.to(daoPizza).executeUpdateTransactional(myPizza);
	Update.transactionalTo(daoPizza,new Pizza());

Update single field

	Update.column(daoPizza.colDescription(), "my description")
		.executeUpdate(); //or executeUpdateTransactional() for transactional

Update few fields

	Update.to(daoPizza)
		.set(new SetFields()
			.setField(daoPizza.colDescription(), "my description")
			.setField(daoPizza.colName(), "my name")
		.executeUpdate(); //or executeUpdateTransactional() for transactional

Update set null

	Update.to(daoPizza)
		.set(new SetFields()
			.setNull(daoPizza.colDescription())
			.setNull(daoPizza.colName())
		.executeUpdate(); //or executeUpdateTransactional() for transactional

Update with where

	Update.to(daoPizza)
		.set(new SetFields()
			.setNull(daoPizza.colDescription())
			.setNull(daoPizza.colName())
		.where(dao.Pizza.colName(),"PEPPERONI")
		.executeUpdate(); //or executeUpdateTransactional() for transactional

Any Update refresh cache automatically in case of cached DAO.