When called, the Save method determines internally if it should insert or update data to the client database.
//Update an existing customer Customer cust = Customer.findById(101); cust.save(); //Insert a new customer Customer cust = new Customer(); cust.save();