<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def commit(self):
 """ Commits the changes to the current database connection. :return <bool> success """

        with self.native(writeAccess=True) as conn:
            if not self._closed(conn):
                return self._commit(conn)