Hi there!
The rollback will revert all changes to the last persisted state of your object. If it is an new object, the object will be delete. If you previously committed the object in your logic (transaction) it will revert the object to that state. Alternatively, if you did not commit the object in your logic, it will revert to the state that is in the database
Hope it helps!