Javadoc
Deletes the record from the database. Behavior depends by the current running transaction if any. If no transaction is running
then the record is deleted immediately. If an Optimistic transaction is running then the record will be deleted at commit time.
The current transaction will continue to see the record as deleted, while others not. If a Pessimistic transaction is running,
then an exclusive lock is acquired against the record. Current transaction will continue to see the record as deleted, while
others cannot access to it since it's locked.