code: public int update(DatabaseConnection databaseConnection, T data, ObjectCache objectCache) throws SQLException {
  		if (mappedUpdate == null) {
  			mappedUpdate = MappedUpdate.build(dao, tableInfo);
  		}
  		int result = mappedUpdate.update(databaseConnection, data, objectCache);
  		if (dao != null && !localIsInBatchMode.get()) {
  			dao.notifyChanges();
  		}
  		return result;
  	}
docs: Update an object in the database.