commit

public final void commit()

Applies all the outstanding modifications to the enclosed entity.

Throws

in case the new entity state is not valid

in case of a generic error