apply

abstract fun apply(): Boolean(source)

Called right before a transaction commits. Returns true to convert the commit into a rollback instead, or false to let it proceed normally.